gist

How to delete a specific revision of a github gist?

丶灬走出姿态 提交于 2019-11-30 10:32:09
问题 I created a Gist on GitHub and I saw informations I don't want anyone to see. I updated the file since, but everybody can still access the old revision of the file. Except deleting the Gist, is there a way to delete that particular revision definitely? I saw that I'm not the only one having that kind of problem (Git: delete a single remote revision) but I didn't manage to remove the revision. The process indicated here seems to help remove some files. I want to remove the whole revision. 回答1:

How do you manage your gists on GitHub? [closed]

≯℡__Kan透↙ 提交于 2019-11-30 10:03:11
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . I love GitHub and their gist service, and that's why I'm keeping a lot of code snippets and even development notes as a gist on my GitHub account. It also makes it easy to share them with my colleagues. The problem is that it doesn't scale!! The GitHub features for gist are primitive, and I have lots of gists

Github gist page won't load in iframe

六月ゝ 毕业季﹏ 提交于 2019-11-30 04:13:15
问题 I want to list all my gists on a single page and an iframe seemed like the quickest and easiest solution, the problem is that it won't load. My example show the same html used to make gist.github.com and google.com show in an iframe. Google will load but github won't. Is this a limitation that Github imposes, is there a better way to list embed all my gists on a single page without adding each gist individually? I want it to show up automatically when I create a new one. http://jsfiddle.net

How do you control the order in which files appear in a GitHub gist

点点圈 提交于 2019-11-29 20:49:49
Is there a way to control the order in which files appear in a gist? They don't seem to be alphabetical or chronological. I'd like to have a README.md appear as the first file in a multi-file gist , but no amount of "deleting" a file and re-adding it seems to change anything. Is there an order to these files that I'm not seeing, or does GitHub maintain an internal filetype priority list? VonC Since at least 2018, the order is alphabetical, with periods and numbers coming before letters. Around 2013-2014 a different order was used. They are ordered automatically by name, following the ASCII

Can I make a pull request on a gist on GitHub?

ぃ、小莉子 提交于 2019-11-29 19:28:47
Can I make a pull request on some else's gist on GitHub? I'm aware of the fork, clone and commit workflow for a gist I own. I'd like to know if I can request to update someone else's gist with my fork. You cannot currently open a pull request on a Gist. You can comment though on the Gist and ask the author to update the Gist from your fork. studgeek As @Kevin said, unfortunately GitHub doesn't expose a GUI for pull requests on gists. You can however fork the gist, make your changes in the fork, then share a link to your fork with the original author. If the original author is keeping a local

How do I embed a single file from a GitHub gist with the new gist interface?

主宰稳场 提交于 2019-11-29 19:13:39
The new GitHub Gist interface has one embed snippet for the entire gist which embeds all files in the gist. The old interface had embed code for each file in the gist. Anyone know if there's a trick to embed a single file? Take the gist URL from the left-hand side and after the .js add a query string like ?file=myFile.blah , e.g. <script src="https://gist.github.com/4505639.js?file=macroBuild.scala" type="text/javascript"></script> Just for other people reference that might be looking into this. If you are using Wordpress you may achieve this with the plugin oEmbed-gist and shortcode style:

How do you manage your gists on GitHub? [closed]

廉价感情. 提交于 2019-11-29 18:33:38
I love GitHub and their gist service, and that's why I'm keeping a lot of code snippets and even development notes as a gist on my GitHub account. It also makes it easy to share them with my colleagues. The problem is that it doesn't scale!! The GitHub features for gist are primitive, and I have lots of gists there which make it really difficult to find some of my old gists. There's no search, no tagging, or anything. Do you know any application that can handle this mess? I would like an application that could Search my gists List my gists by source type and date Let me edit or copy them Let

Gist — how to set the height and width of an embedded Gist

元气小坏坏 提交于 2019-11-29 00:16:16
问题 For purposes of embedding very long Gists from Github in a Wordpress blog, what code will permit me to set the height so that vertical scroll-bars are generated? Something around 500px would be perfect. EDIT : The issue is now resolved, but I spent so much time on this issue, I believe it would be helpful to have a thread dedicated to that issue. I've posted an answer below that is working. 回答1: <style type="text/css"> .gist {width:500px !important;} .gist-file .gist-data {max-height: 500px

Make Gist from Github repo for display on bl.ocks.org

给你一囗甜甜゛ 提交于 2019-11-28 23:44:24
I have created a data visualization app and posted it as a Github page . I would now like to display this on the bl.ocks.org site that aggregates D3.js visualizations. How can I start from the github repo and create a gist that maintains the relative dependencies of the repo code? Will I need to refactor all the code to make a single-file app that points to only CDN sources? It's easiest to learn by example. Take the example on the bl.ocks home page: http://bl.ocks.org/mbostock/1353700 Now to see the gist that generated it, just take the id number from the end of the url and appent it the gist

Can I make a pull request on a gist on GitHub?

喜你入骨 提交于 2019-11-28 14:56:34
问题 Can I make a pull request on some else's gist on GitHub? I'm aware of the fork, clone and commit workflow for a gist I own. I'd like to know if I can request to update someone else's gist with my fork. 回答1: You cannot currently open a pull request on a Gist. You can comment though on the Gist and ask the author to update the Gist from your fork. 回答2: As @Kevin said, unfortunately GitHub doesn't expose a GUI for pull requests on gists. You can however fork the gist, make your changes in the