An introduction to curl using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
| // gcc -o try-catch-ex try-catch.c try-catch-ex.c | |
| #include <stdio.h> | |
| #include "try-catch.h" | |
| // Example of use for try-catch.h | |
| int main(int argc, char *argv[]) | |
| { | |
| int i = 101; | |
| printf("before try block...\n"); |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
| <title>SoundCloud OAuth 2 User Agent Authentication Flow Demo</title> | |
| <script type="text/javascript" charset="utf-8" src="javascript/jquery-1.4.2.js"></script> | |
| <script type="text/javascript" charset="utf-8"> | |
| $(function () { | |
| var extractToken = function(hash) { |
| // Basic XMPP bot example for HipChat using node.js | |
| // To use: | |
| // 1. Set config variables | |
| // 2. Run `node hipchat_bot.js` | |
| // 3. Send a message like "!weather 94085" in the room with the bot | |
| var request = require('request'); // github.com/mikeal/request | |
| var sys = require('sys'); | |
| var util = require('util'); |
| import unittest | |
| from sys import * | |
| import os | |
| from selenium import webdriver | |
| from selenium.webdriver.support.ui import WebDriverWait | |
| from selenium.common.exceptions import NoSuchElementException, TimeoutException | |
| class QUnitTests(unittest.TestCase): | |
| driver = None |
| <!doctype html> | |
| <!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ --> | |
| <!--[if lt IE 7 ]> <html lang="en" class="ie6"> <![endif]--> | |
| <!--[if IE 7 ]> <html lang="en" class="ie7"> <![endif]--> | |
| <!--[if IE 8 ]> <html lang="en" class="ie8"> <![endif]--> | |
| <!--[if IE 9 ]> <html lang="en" class="ie9"> <![endif]--> | |
| <!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" ><!--<![endif]--> | |
| <head> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
| // Based on: | |
| // http://groups.google.com/group/nodejs-dev/browse_thread/thread/a0c23008029e5fa7 | |
| process.stdin.resume(); | |
| process.stdin.on('data', function (b) { | |
| var s = b.toString('utf8'); | |
| if (s === '\u0003') { | |
| console.error('Ctrl+C'); | |
| process.stdin.pause(); |
| /** | |
| * Read Linux mouse(s) in node.js | |
| * Author: Marc Loehe ([email protected]) | |
| * | |
| * Adapted from Tim Caswell's nice solution to read a linux joystick | |
| * http://nodebits.org/linux-joystick | |
| * https://github.com/nodebits/linux-joystick | |
| */ | |
| var fs = require('fs'), |
| <!doctype html> | |
| <!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ --> | |
| <html> | |
| <head> | |
| <title>iOS 8 web app</title> | |
| <!-- CONFIGURATION --> |
An introduction to curl using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
| /** | |
| * Enable route to __noSuchMethod__ when unknown method calling. | |
| * | |
| * @param {Object} obj Target object. | |
| * @return {Object} | |
| */ | |
| function enableMethodMissing(obj) { | |
| var functionHandler = createBaseHandler({}); | |
| functionHandler.get = function(receiver, name) { |