News for hackers. Stuff that matters.
Re:Welcome to a New Gist by SeoxyS on Tuesday December 11, 2012 @04:16PM (#4906874)
My favorite new feature: you can finally search through your own gists!

I use gists all day every day: it's where I dump and share pieces of reusable code. It's always been a huge pain to search for something you know you gisted, but can no longer find without browsing through 20 pages of 3-line excerpts. Search makes this a million times better.

The new code editor is also pretty sweet!

Re:Welcome to a New Gist by 1qaz2wsx3edc on Tuesday December 11, 2012 @06:06PM (#4907518)
I like the update to gists.

--- Somewhat OT:

I find that github has always had poor to okay search capabilities.

For example, have you ever tried to search for a repo name, only to find 1000 forks? wat. Ever tried to search issues for a specific issue, only to find no results, removing a word or two to get a less accurate search.

Search for me is about discoverability. And github is for developers for the most part.

As a developer I want discoverability for code! I want regex features (like in google code search), better matches. Ways to compress my search results down. Search tags code:'if Awesome()'.

I just feel they could be doing so much better in this area.

Re:Welcome to a New Gist by holman on Tuesday December 11, 2012 @10:17PM (#4908418)
Gist is our first entry into Better Search. With the amount of code we index (and the unique problems of searching source code as opposed to prose), it's not something we can change overnight.
Re:Welcome to a New Gist by yuchi on Wednesday December 12, 2012 @06:30AM (#4909579)
(Totally OT: And the best part is that you guys are here with us listening to our feedback)
Re:Welcome to a New Gist by ryandaigle on Wednesday December 12, 2012 @08:22AM (#4909896)
The lack of search is the main reason I created http://gistedapp.herokuapp.com. Unfortunately I still find their search lacking in a few fundamental ways:

* it is (surprisingly?) case sensitive * it only searches titles, not file contents * the UI feels disconnected from the main gist area, making it unclear whether its a search of all Gists (like the previous version) or a personal search.

Fortunately, this update indicates they're paying attention to a much-used part of their product that was starting to feel neglected. At their pace of improvement I can't see these holes remaining for too long.

Now, hope they add back the ability to be notified when there's a comment on your gist (which Gisted supports)!

Re:Welcome to a New Gist by kibwen on Tuesday December 11, 2012 @05:05PM (#4907139)
Happy to see, Gist has been lagging behind for a while now. And my Gist usage has exploded since installing this Vim plugin:

https://github.com/mattn/gist-vim

Re:Welcome to a New Gist by fbuilesv on Tuesday December 11, 2012 @06:42PM (#4907678)
And in case you're an Emacs user, here's an equivalent: https://github.com/defunkt/gist.el :)
Re:Welcome to a New Gist by JasonFruit on Wednesday December 12, 2012 @07:15AM (#4909701)
Available via marmalade as well.
Re:Welcome to a New Gist by ment4list on Wednesday December 12, 2012 @01:40AM (#4908958)
For Sublime Text 2: https://github.com/condemil/Gist :)
Re:Welcome to a New Gist by GotNothing on Wednesday December 12, 2012 @10:45AM (#4910588)
Awesome... Thanks!
Re:Welcome to a New Gist by SeoxyS on Tuesday December 11, 2012 @05:39PM (#4907366)
I love you. You just made my day by posting this link!
Re:Welcome to a New Gist by dysoco on Tuesday December 11, 2012 @04:59PM (#4907106)
Github is slowly turning into an IDE for the web.

In my opinion: In a couple of years we will not use Emacs or Visual Studio or anything like that: Most of programming will be done socially in Github via small changes directly from the website, from hundreds of people... it'd simplify the process of collaborative programming a lot.

Re:Welcome to a New Gist by qdot76367 on Tuesday December 11, 2012 @11:08PM (#4908576)
As someone who's been on emacs the better part of a decade now, I find your opinion adorable and invite you to wrestle my editor/ide/im client/mail client/friend/lover from my cold, dead, RSI'd fingers.

As someone who's always worked alone, I also find your opinion adorable, and will code socially when someone manages to hack their way into my ultra secure coding vault. Which I admittedly let people into for pairing. Sometimes.

Collaborative doesn't necessarily mean synchronous. We learned this building the real time building system in second life. Sometimes you just want to sit in your corner and know no one else is gonna come in, and not having that ability cuts off a huge portion of people who just don't work well in that circumstance. It's awesome to work offline, alone.

Re:Welcome to a New Gist by pyre on Tuesday December 11, 2012 @05:15PM (#4907208)

  >  Most of programming will be done socially [...] via
  > small changes [...] from hundreds of people
This seems a little extreme. I'd venture that right now 'most of programming' is private code, or small side projects/toy code (i.e. single-developer projects).
Re:Welcome to a New Gist by dbaupp on Tuesday December 11, 2012 @08:55PM (#4908178)
I'd think that the total SLOC in side/single-developer projects is miniscule compared to the total SLOC in social projects (e.g. Linux, GCC, Emacs, etc.), and even smaller compared to the SLOC in private/corporate code-bases.
Re:Welcome to a New Gist by dysoco on Wednesday December 12, 2012 @11:56AM (#4911107)
I was specifically talking about opensource projects like Linux or Rails: Where most of commits nowadays are small bug fixes.

Of course, I'd never leave Emacs for Github when creating software from scratch or doing anything big.

Re:Welcome to a New Gist by jamesbritt on Tuesday December 11, 2012 @09:20PM (#4908262)
Most of programming will be done socially in Github via small changes directly from the website, from hundreds of people

What a nightmare.

I prefer very small teams whose members each have particular responsibilities so they're not stepping on each other, testing code before pushing out to the public.

Re:Welcome to a New Gist by MBlume on Tuesday December 11, 2012 @11:40PM (#4908676)
Yes, this. Trying to do real work on shared code is painful. Ownership is important.
Re:Welcome to a New Gist by rhizome on Wednesday December 12, 2012 @12:58PM (#4911489)
This touches on a misgiving I have about pair-programming.
Re:Welcome to a New Gist by encoderer on Tuesday December 11, 2012 @06:57PM (#4907742)
Define "a couple of years."

A couple of decades, maybe.

Even then I disagree, but it's at least plausible.

Years though? I think you're over estimating how quickly this could possible happen.

Re:Welcome to a New Gist by rhizome on Tuesday December 11, 2012 @05:25PM (#4907272)
That would violate Separation of Concerns :)
Re:Welcome to a New Gist by dbaupp on Tuesday December 11, 2012 @04:49PM (#4907046)
GitHub seems to be in the midst of a spree of new non-trivial features: in the past week or so, there have been 7 blog posts, every one introducing something new!

(Christmas spirit, maybe?)

Re:Welcome to a New Gist by technoweenie on Tuesday December 11, 2012 @04:57PM (#4907097)
Shipping spirit :) It's definitely nothing planned on our part. We just happened to wrap up some stuff around the same time.
Re:Welcome to a New Gist by Dylanlacey on Tuesday December 11, 2012 @05:50PM (#4907444)
Tidings of serendipitous code, eh? Feliz Navidad!
Re:Welcome to a New Gist by misnome on Tuesday December 11, 2012 @06:37PM (#4907652)
I'm hoping (or at least correlating in my mind) that this has something to do with them stepping up their game in response to Bitbucket's overhaul.
Re:Welcome to a New Gist by kevingadd on Tuesday December 11, 2012 @05:15PM (#4907206)
This broke embedding single files from gists :( That's what I get for using Gist in blog posts and websites, I guess.
Re:Welcome to a New Gist by technoweenie on Tuesday December 11, 2012 @05:35PM (#4907333)
Sorry about that. We'll get a fix out there ASAP.
Re:Welcome to a New Gist by kingfishr on Tuesday December 11, 2012 @06:04PM (#4907510)
Oh shoot:

http://gist.io/3135754

http://bl.ocks.org/1353700

Two of my favorite gist frontends, broken :(

Re:Welcome to a New Gist by mbostock on Tuesday December 11, 2012 @06:27PM (#4907624)
The API is currently down: https://status.github.com/

Fortunately, I implemented a cache layer on top of GitHub's API recently, so many examples are working on http://bl.ocks.org. But only those that are lucky enough not to get a connection timeout. Hopefully the API will be back up soon!

Re:Welcome to a New Gist by gbadman on Tuesday December 11, 2012 @06:08PM (#4907530)
It seems like the Gist component of the API is either having a hard time or no longer works with JSONP.

I'm also having an issue with Plunker as legacy templates are pulled from Gist and are currently broken.

Re:Welcome to a New Gist by davidwparker on Tuesday December 11, 2012 @05:35PM (#4907340)
Agreed- I've used gists heavily in my blog posts and they look pretty terrible right now. I sent feedback to Github via Twitter. Hopefully they'll fix it quickly.
Re:Welcome to a New Gist by huskyr on Wednesday December 12, 2012 @06:00AM (#4909521)
I'm also a bit sad that they're still using document.write for the embeds. That breaks on any site that uses Ajax-like page loading and is bad practice in general.
Re:Welcome to a New Gist by desbest on Tuesday December 11, 2012 @05:23PM (#4907260)
It was broke for me with the old Gist system. They only let me hotlink a .css file like 5 times.
Re:Welcome to a New Gist by kevingadd on Tuesday December 11, 2012 @05:25PM (#4907275)
I don't mean using gists as raw files. I mean embedding gists, using the javascript embed link they give you on the gist site.
Re:Welcome to a New Gist by jcampbell1 on Tuesday December 11, 2012 @08:59PM (#4908196)
Every comment here seems to be a gist love fest. I develop fulltime and use git and github, but have never understood why or how people use gist. Can someone explain how gist is valuable to them?

Clicking "discover" at gist.github.com is unenlightening.

Re:Welcome to a New Gist by Sidnicious on Tuesday December 11, 2012 @09:28PM (#4908295)
I use it for snippets of code that I want to save (and, maybe, make publicly available and link to) but aren’t serious enough for a repo. Here are some examples from [my gists](https://gist.github.com/Sidnicious):

- https://gist.github.com/1173880: A chunk of code to get information about running processes.

- https://gist.github.com/1082933: A little JavaScript function to decode quoted-printable encoding

- https://gist.github.com/842476: A chunk of code that blocks (I wrote it for a startup daemon) until the OS’s network stack is ready.

- https://gist.github.com/c980470f5ef244c4b4d3: My and a friend’s solution to the last level of Stripe’s CTF (may not be the final version)

- https://gist.github.com/2586751: A patch against a JSON library that to make it handle escapes in a spec-compliant way.

…Some of them are useful as-is, others are useful as reminders of how I dealt with a particular problem in case I run into it again.

Re:Welcome to a New Gist by LawnGnome on Tuesday December 11, 2012 @09:05PM (#4908216)
Most users (myself included) seem to use it primarily as a better pastebin than most of the pastebins on the Web. It's tied to your account (so you can manage previously posted Gists easily), it's versioned and available over git as an ad hoc repository, and the highlighting is pretty good.
Re:Welcome to a New Gist by jamesbritt on Tuesday December 11, 2012 @09:15PM (#4908250)
What I find puzzling is seeing what appear to be blog posts published as gists.

What's the reasoning for this? I imagine if you don't have a blog of any kind it fills in, but it seems a odd place to publish lengthy essays.

Re:Welcome to a New Gist by voltagex_ on Wednesday December 12, 2012 @01:00AM (#4908868)
I think there's a couple of sites that take markdown in a Gist and put them up as formatted posts.

Add Disqus and you've got a neat little product.

Re:Welcome to a New Gist by reledi on Wednesday December 12, 2012 @12:39AM (#4908825)
Looking through both my secret and public gists, I've used it for

- lecture notes

- collection of resources

- snippets of code (for myself or remote teammates)

- todo lists

- tutoring

- and more...

Re:Welcome to a New Gist by chii on Tuesday December 11, 2012 @09:13PM (#4908244)
its a slightly better looking http://pastie.org/. sharing snippets of code is quite useful, especially if the team is a remote team.
Re:Welcome to a New Gist by artursapek on Tuesday December 11, 2012 @04:52PM (#4907058)
I love "Secret Gist" vs. "Public Gist"

gist.github was way behind the rest of Github for a long time. It's good to see they've finally released this because they've no doubt been working on it for a while.

Re:Welcome to a New Gist by fishtoaster on Tuesday December 11, 2012 @05:06PM (#4907142)
I think "Secret Gist" is just a renaming of "Private Gist" which has existed for a while: only people with the url will see it. It's a better and more accurate name, for sure.

I do wish there was a true "private" gist, though, for easily preventing people I don't specify from seeing it. I'd love to be able to use it to trade code examples for work, but there's nothing to prevent someone from accidentally pasting the url into the wrong irc window and showing the world our internals.

Re:Welcome to a New Gist by artursapek on Tuesday December 11, 2012 @06:12PM (#4907545)
I know it's a rename. That's a cool idea. Sort of the way Google Docs handles it by letting you specify emails that can view your document.
Re:Welcome to a New Gist by hcarvalhoalves on Tuesday December 11, 2012 @06:01PM (#4907497)
I'm getting "OAuth Failure" trying to sign-in [1]

[1] https://gist.github.com/auth/failure?message=timeout&ori...

Re:Welcome to a New Gist by ozh on Wednesday December 12, 2012 @02:07AM (#4909033)
Gists are now wrongly named. For instance: https://gist.github.com/4260740 this sounds a bit weird that this gist is named "readme.md"
Re:Welcome to a New Gist by tcdent on Tuesday December 11, 2012 @06:06PM (#4907519)
I'd love to see the ability to print (with the wonderful formating in-tact, and none of the interface) directly from my Gists. There are various bookmarklets out in the wild that attempt to do this, all of which are of course broken after this update.

I just had a need to do this with a bit of documentation I was writing. Ended up modifying the DOM to show/hide what I wanted and allow the screen stylesheet to be used in printing (to PDF).

Re:Welcome to a New Gist by revyver on Tuesday December 11, 2012 @10:21PM (#4908430)
Gists does ship with a print stylesheet which strips most of the interface.
Re:Welcome to a New Gist by haberman on Tuesday December 11, 2012 @10:40PM (#4908492)
I love it -- I've been looking for a place to put trivial programs that is lighter-weight than creating your own repository.

I just wish that the advertising when you embed into another website was a bit more subtle. Right now it's a full line of text "This Gist brought to you by GitHub" that is tagged onto the bottom of every embed. If your blog post has a lot of these, especially short ones, it can quickly become intrusive.

Re:Welcome to a New Gist by minhajuddin on Wednesday December 12, 2012 @04:17AM (#4909298)
Can't upvote this enough, It reminds me of the days when you had to have a banner at the bottom advertising the free site builder you were using. Not cool.
Re:Welcome to a New Gist by shazow on Tuesday December 11, 2012 @04:54PM (#4907073)
Great improvements, love the search.

Still wishing I could get Gist pull requests or merge forks of my Gist from the UI.

Re:Welcome to a New Gist by mehulkar on Tuesday December 11, 2012 @08:33PM (#4908118)
I know HN doesn't believe in a comment where an upvote will suffice, but the first thing I searched this thread was for "pull request" and by golly, I think they would be a great addition also.
Re:Welcome to a New Gist by voltagex_ on Wednesday December 12, 2012 @01:01AM (#4908871)
And a one button gist-to-github repo.
Re:Welcome to a New Gist by gbadman on Tuesday December 11, 2012 @05:17PM (#4907217)
As many have already said, Github just keeps delivering quality, well-conceived and well-integrated updates. I hope they keep coming.

Now for my shameless plug:

If you use Gist as a means to share web-related snippets, you might be amazed by the Plunker editor (http://plnkr.co/edit/). It was inspired by Gist, but will let you actually 'run' your code (and will do some other cool stuff like real-time collaboration, previewing and linting). This tool has become quite popular in the AngularJS community and I hope to see more groups get on board in the future!

Re:Welcome to a New Gist by gbadman on Tuesday December 11, 2012 @05:27PM (#4907289)
Also, since we're talking about Gist, you can get your gists into Plunker very easily:

http://plnkr.co/edit/gist:1136236?p=preview is a snippet by the unbelievable Mike Bostock pulled directly from Gist.

Re:Welcome to a New Gist by Oompa on Tuesday December 11, 2012 @09:06PM (#4908220)
I looked at Plunker, and then I got sperm on my screen.
Re:Welcome to a New Gist by halayli on Tuesday December 11, 2012 @05:52PM (#4907455)
It's great but I wish they added the ability to comment on a line.
Re:Welcome to a New Gist by avolcano on Tuesday December 11, 2012 @04:33PM (#4906962)
Here's the blog post about the redesign: https://github.com/blog/1276-welcome-to-a-new-gist
Re:Welcome to a New Gist by rhizome on Tuesday December 11, 2012 @05:25PM (#4907276)
Isn't that what this post is linked to?
Re:Welcome to a New Gist by skeletonjelly on Tuesday December 11, 2012 @05:38PM (#4907361)
Maybe somebody changed the link?
Re:Welcome to a New Gist by avolcano on Tuesday December 11, 2012 @10:35PM (#4908476)
They did; it was originally just a link to a random Gist to show the new design.
Re:Welcome to a New Gist by tedmiston on Wednesday December 12, 2012 @12:29AM (#4908800)
GitHub sees the value in the snippet concept behind Gist and has been giving it serious limelight lately.

I want to see Gist evolve into a Dribbble/Behance gallery but for showing off code snippets of value instead of images. We can already convey advanced ideas simply in few lines. To provide a little more story behind our contribution and share it in a small network could really build a nice broad community whose infrastructure has been laid already.

Re:Welcome to a New Gist by DigitalSea on Tuesday December 11, 2012 @05:47PM (#4907425)
It's about time. I've been waiting for Github to overhaul the Gists functionality, I've been ever-increasingly relying on it to store my snippets as well as posting code in blog posts, and being able to search through your own Gists is a MASSIVE addition.

I've really been loving all of these Github updates the past year, they've been killing it and it's good to see they've finally given Gist some love.

Re:Welcome to a New Gist by bencevans on Tuesday December 11, 2012 @05:30PM (#4907307)
Much needed update and Looking Good but one thing, why is the 'Delete Gist' on the Edit Gist Pages rather than the Main Page?
Re:Welcome to a New Gist by subpixel on Tuesday December 11, 2012 @05:53PM (#4907464)
Doh! I just bought Evercode!

I don't see a way to post gists directly from an editor like Sublime, but I'll be all over that when I find it.

Re:Welcome to a New Gist by chuckharmston on Tuesday December 11, 2012 @05:58PM (#4907483)
The Sublime GitHub plugin for Sublime handles this nicely:

https://github.com/bgreenlee/sublime-github

Re:Welcome to a New Gist by subpixel on Tuesday December 25, 2012 @12:34PM (#4966468)
Awesome, thanks
Re:Welcome to a New Gist by dergachev on Tuesday December 11, 2012 @05:13PM (#4907195)
I love these guys! Yesterday I came across an annoying bug related to embedded gists and markdown files, and this fixes it.

Related discussion: http://stackoverflow.com/questions/11456558/markdown-not-ren...

Re:Welcome to a New Gist by pauletienney on Tuesday December 11, 2012 @04:46PM (#4907023)
Github has been on fire for one week.
Re:Welcome to a New Gist by farslan on Tuesday December 11, 2012 @05:25PM (#4907273)
I just wish a way to label or organize my gists. I have dozens of them. That would be great!
Re:Welcome to a New Gist by charlieok on Wednesday December 12, 2012 @11:08AM (#4910737)
I don't understand the benefit of gists. If they're full git repos, why not just use a normal github project?

Having a pasteboard type gist makes me wonder things like,

- Can a gist have multiple files in it?

- What is a file inside a gist named?

- Can I convert a gist to a normal project?

- Can I convert a normal project to a gist?

Re:Welcome to a New Gist by minikomi on Tuesday December 11, 2012 @08:27PM (#4908096)
Thanks github team!!

When I'm learning a new framework / lib / language I love to look at other people's gists for good (and bad!) working examples. That said, I would LOVE the ability to sort search results by date / number of comments / forks etc.

Re:Welcome to a New Gist by JaggedJax on Tuesday December 11, 2012 @06:20PM (#4907583)
I like the changes, except that it broke syntax highlighting for php gists without open and close tags. For example: https://gist.github.com/3837352
Re:Welcome to a New Gist by bonjourmr on Tuesday December 11, 2012 @05:59PM (#4907487)
Heads up, opening a Gist to edit/view from my list in a new tab (CTRL + clicking) doesn't work in Chrome 21.0.1180.75. The Stylesheet doesn't seem to load, not sure if this is an individual issue on my system.
Re:Welcome to a New Gist by kmfrk on Tuesday December 11, 2012 @05:15PM (#4907201)
I hope we get to see Collections for gists, because I am finding them really unmanageable otherwise, and there is little incentive for people to browse through them otherwise.
Re:Welcome to a New Gist by farslan on Tuesday December 11, 2012 @05:27PM (#4907286)
Same here. I have lots of snippets (in JS, Python, Go,etc..). Managing them is a pain. Also I have some that I use for my blog examples however executing them alone doesnt do anything. It would be great if I could organize them.
Re:Welcome to a New Gist by kmfrk on Tuesday December 11, 2012 @06:19PM (#4907581)
Oh yeah, right. I forget the concept of using gists in blog posts, but I guess it's because I quit that thought because of how much of a mess it leaves behind in your gist list.
Re:Welcome to a New Gist by johns on Tuesday December 11, 2012 @05:17PM (#4907219)
Wouldn't that be a GitHub repository?
Re:Welcome to a New Gist by kmfrk on Tuesday December 11, 2012 @05:23PM (#4907258)
No. Repo lists are cluttered enough as it is. :)

A collection would just be a category of gists in a category like "Idiomatic Python examples", "Django snippets", and so on.

I think people use gists in a fundamentally different way (I do), and I guess you could argue that gists are mainly for viewing and sharing whereas repos are for cloning/downloads.

Think Collections as Pinterest boards for code, perhaps. :)

Gists could be social, whereas repos are more self-serving and utilitarian in the sense of scratching an itch. Or at least they could be.

Re:Welcome to a New Gist by zhuzhuor on Tuesday December 18, 2012 @12:14AM (#4936168)
Does any one have problems to create or modify a gist? I am having the problem since this new face of gist.

Now it's still not fixed in my case. What happened to github?

Re:Welcome to a New Gist by RyanMcGreal on Wednesday December 12, 2012 @07:42AM (#4909779)
I'm currently getting HTTP 500 errors when I try to load https://gist.github.com/
Re:Welcome to a New Gist by nachteilig on Tuesday December 11, 2012 @09:07PM (#4908227)
Am I missing it, or can anonymous gists no longer be claimed and deleted by the person that created them while still in the session?
Re:Welcome to a New Gist by milkmiruku on Tuesday December 11, 2012 @08:34PM (#4908120)
Whoops, horizontal scrollbar on 1024*768.
Re:Welcome to a New Gist by josteink on Wednesday December 12, 2012 @08:21AM (#4909891)
Tried it out. It's bloody fantastic.

As long as whatever you're editing is supported by the editor, that leaves little to be desired.

Nice work.

Re:Welcome to a New Gist by nickpresta on Tuesday December 11, 2012 @05:17PM (#4907220)
There is no preview mode for a gist :-(
Re:Welcome to a New Gist by gbadman on Tuesday December 11, 2012 @05:23PM (#4907261)
Re:Welcome to a New Gist by chadscira on Tuesday December 11, 2012 @04:48PM (#4907041)
I was hoping that they would finally add the ability to put a gist in a folder or tag one :(
Re:Welcome to a New Gist by VMG on Tuesday December 11, 2012 @07:54PM (#4907983)
automatic language detection would be great
Re:Welcome to a New Gist by stickhandle on Tuesday December 11, 2012 @10:24PM (#4908439)
this is good ... but, frankly, i was hoping for the ability to tag gists + ability to get a feed from a tag
Re:Welcome to a New Gist by c4urself on Tuesday December 11, 2012 @09:09PM (#4908234)
is there any way to collaborate on gists?