git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| ; A REPL-based, annotated Seesaw tutorial | |
| ; Please visit https://github.com/daveray/seesaw for more info | |
| ; | |
| ; This is a very basic intro to Seesaw, a Clojure UI toolkit. It covers | |
| ; Seesaw's basic features and philosophy, but only scratches the surface | |
| ; of what's available. It only assumes knowledge of Clojure. No Swing or | |
| ; Java experience is needed. | |
| ; | |
| ; This material was first presented in a talk at @CraftsmanGuild in | |
| ; Ann Arbor, MI. |
| #!/bin/sh | |
| # Place in /etc/motd.d and drop the .sh suffix. | |
| echo -e "\n\033[1mWelcome to Gentoo Linux!\033[0m" | |
| echo -e "\nThis server is maintained by \033[1m$(cat /etc/maintainer)\033[0m." | |
| echo -e "Contact \033[1m$(cat /etc/maintainer-address)\033[0m for support." | |
| echo -en "\n \033[1;32m*\033[0m " |
| <html> | |
| <body> | |
| <video id="v" width="300" height="300"></video> | |
| <input id="b" type="button" disabled="true" value="Take Picture"></input> | |
| <canvas id="c" style="display:none;" width="300" height="300"></canvas> | |
| </body> | |
| <script> | |
| navigator.getUserMedia({video: true}, function(stream) { | |
| var video = document.getElementById("v"); | |
| var canvas = document.getElementById("c"); |
An introduction to curl using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
| package controllers | |
| import lib._ | |
| import play.api.mvc._ | |
| import play.api.libs.json._ | |
| object Auth extends Controller { | |
| val GITHUB = new OAuth2[GithubUser](OAuth2Settings( |
| {-# LANGUAGE OverloadedStrings #-} | |
| {-# LANGUAGE DeriveDataTypeable #-} | |
| import Data.Aeson | |
| import qualified Data.ByteString.Char8 as BS | |
| import qualified Data.ByteString.Lazy.Char8 as BSL | |
| import Data.ByteString.Lazy (toChunks) | |
| import Data.List | |
| import Data.Maybe | |
| import Data.Typeable (Typeable) |
| exports.req_ip = function(req) { | |
| return ( req.headers["X-Forwarded-For"] | |
| || req.headers["x-forwarded-for"] | |
| || req.client.remoteAddress ); | |
| } |
| D [0-9] | |
| L [a-zA-Z_] | |
| H [a-fA-F0-9] | |
| E ([Ee][+-]?{D}+) | |
| P ([Pp][+-]?{D}+) | |
| FS (f|F|l|L) | |
| IS ((u|U)|(u|U)?(l|L|ll|LL)|(l|L|ll|LL)(u|U)) | |
| %{ | |
| #include <stdio.h> |
| /** | |
| * D Holbrook | |
| * | |
| * Code Club: PO1 | |
| * | |
| * (*) Define a binary tree data structure and related fundamental operations. | |
| * | |
| * Use whichever language features are the best fit (this will depend on the language you have selected). The following operations should be supported: | |
| * | |
| * Constructors |