An introduction to curl using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
| # Video: http://rubyhoedown2008.confreaks.com/08-chris-wanstrath-keynote.html | |
| Hi everyone, I'm Chris Wanstrath. | |
| When Jeremy asked me to come talk, I said yes. Hell yes. Immediately. But | |
| then I took a few moments and thought, Wait, why? Why me? What am I supposed | |
| to say that's interesting? Something about Ruby, perhaps. Maybe the | |
| future of it. The future of something, at least. That sounds | |
| keynote-y. | |
| #Newbie programmer | |
| def factorial(x): | |
| if x == 0: | |
| return 1 | |
| else: | |
| return x * factorial(x - 1) | |
| print factorial(6) | |
| #First year programmer, studied Pascal |
| /* | |
| This is my hacked up copy of Marked.app/Contents/Resources/gridless.css | |
| Changes: | |
| 1. Smaller headings | |
| 2. ~~No scrollbars~~ (I now prefer the Lion default behavior) | |
| 3. Styling of definition lists ala LaTeX description lists. | |
| 4. Centering h1.title, h3.author, h4.date (pandoc's title/author/date block). | |
| #!/usr/bin/env ruby -wKU | |
| class Object | |
| def destruct! | |
| print "This message will self-destruct in..." | |
| 5.downto(0) {|i| print "#{i}..."; $stdout.flush; sleep(1)} | |
| File.open(__FILE__, 'w') { } | |
| end | |
| end |
An introduction to curl using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
| NAME=project | |
| VERSION=0.0.1 | |
| DIRS=etc lib bin sbin share | |
| INSTALL_DIRS=`find $(DIRS) -type d 2>/dev/null` | |
| INSTALL_FILES=`find $(DIRS) -type f 2>/dev/null` | |
| DOC_FILES=*.md *.txt | |
| PKG_DIR=pkg | |
| PKG_NAME=$(NAME)-$(VERSION) |
This gist is a collection of my rough notes from Strange Loop 2012.