An introduction to curl using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
| @echo off | |
| :: This script will setup dropbox to sync Chrome's User Stylesheets. | |
| :: It is a shim since Chromium probably won't add this file to Chrome-Sync in the future. | |
| :: See http://code.google.com/p/chromium/issues/detail?id=136479 for more details. | |
| :: | |
| :: The main purpose of this script is to sync the style sheet used for Dev Tools. | |
| :: See http://darcyclarke.me/design/skin-your-chrome-inspector/ for more information | |
| :: on stylying your Chrome Dev Tools. | |
| :: |
| # Rime setting | |
| patch: | |
| "menu/page_size": 9 | |
| schema_list: | |
| - schema: luna_pinyin | |
| - schema: cangjie5 | |
| - schema: luna_pinyin_fluency | |
| - schema: luna_pinyin_simp | |
| - schema: double_pinyin_flypy |
| # default.custom.yaml | |
| # save it to: | |
| # ~/.config/ibus/rime (linux) | |
| # ~/Library/Rime (macos) | |
| # %APPDATA%\Rime (windows) | |
| patch: | |
| schema_list: | |
| - schema: luna_pinyin # 朙月拼音 | |
| - schema: luna_pinyin_simp # 朙月拼音 简化字模式 |
An introduction to curl using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
| var http = require('http'); | |
| var path = require('path'); | |
| var fs = require('fs'); | |
| var AUDIOFILE = "./audio.ogg"; | |
| function serveWithRanges(request, response, content) { | |
| var range = request.headers.range; | |
| var total = content.length; | |
| var parts = range.replace(/bytes=/, "").split("-"); |