###Javascript Patterns ..thx @ Sorella
####Composition
function compose() {
var traits = [].slice.call(arguments)
return traits.reduce(function(result, trait) {
for (var k in trait) | <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
| <title>imgur oauth</title> | |
| <script src="http://code.jquery.com/jquery.min.js"></script> | |
| <script> | |
| $(function () { | |
| var extractToken = function(hash) { |
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl https://www.npmjs.org/install.sh | sh |
| var net = require('net') | |
| var sock = net.connect(1337) | |
| process.stdin.pipe(sock) | |
| sock.pipe(process.stdout) | |
| sock.on('connect', function () { | |
| process.stdin.resume(); | |
| process.stdin.setRawMode(true) |
| /* Gcyrillus - exemple */ | |
| html { | |
| background: #f06; | |
| background: linear-gradient(45deg, #f06, yellow); | |
| min-height: 100%; | |
| } | |
| @keyframes hover_me { | |
| 0%, 100% {font-size:1em;} | |
| 50% {font-size:5em;} | |
| } |
| #!/usr/bin/env node | |
| var argv = require('optimist') | |
| .usage('Usage: --key=[consumer key] -secret=[consumer secret]') | |
| .demand(['key', 'secret']) | |
| .argv | |
| ; | |
| var OAuth = require('oauth').OAuth; | |
| var Step = require('step'); |
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl https://www.npmjs.org/install.sh | sh |
###Javascript Patterns ..thx @ Sorella
####Composition
function compose() {
var traits = [].slice.call(arguments)
return traits.reduce(function(result, trait) {
for (var k in trait) | // | |
| // This file is part of ColorZilla | |
| // | |
| // Written by Alex Sirota (alex @ iosart.com) | |
| // | |
| // Copyright (c) iosart labs llc 2011, All Rights Reserved | |
| // | |
| var cz = exports||{}; | |
| cz.HSVTriple = function(h, s, v) { |
| var USER_AGENT = "nodejs/0.0.1 (node) gist command line tool v0.0.1" | |
| , request = require("request") | |
| , qs = require('querystring') | |
| , URL = require('url') | |
| , util = require('util'); | |
| //, es5shim = require('es5-shim') | |
| //, es6shim = require('es6-shim'); | |
This is intended as a quick reference and showcase. For more complete info, see John Gruber's original spec and the Github-flavored Markdown info page.
Headers
Emphasis
Lists
Links
Images
Code and Syntax Highlighting
Tables