This specification defines Command Line Arguments level 1 (CLARG 1.0). This document aims to direct development of command line tools conform to a set of rules while parsing options.
The different type of arguments are:
- Short Option
- Long Option
#!/usr/bin/env node | |
var util = require('util'), | |
http = require('http'), | |
events = require('events'), | |
oauth = require('oauth').OAuth, | |
fs = require("fs"), | |
crypto = require("crypto"), | |
ws = require('websocket-server'); |
#!/bin/sh | |
#################################### | |
# Output file for HTML5 video # | |
# Requirements: # | |
# - handbrakecli # | |
# - ffmpeg # | |
# - ffmpeg2theora # | |
# # | |
# usage: # |
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
Ctrl+X | delete line |
Ctrl+↩ | insert line after |
Ctrl+⇧+↩ | insert line before |
Ctrl+⇧+↑ | move line (or selection) up |
import org.json.*; | |
import java.net.*; | |
import java.util.Iterator; | |
PImage bg; | |
JSONObject data; | |
double west = -3.414001; | |
double east = -3.017120; |
var jsdom = require('jsdom'); | |
window.log = console.log; | |
var window = jsdom.jsdom('<a href="javascript:log(\'clicked!\');">click me</a>').createWindow(); | |
var a = window.document.getElementsByTagName('a')[0]; | |
a.addEventListener('click', function(e) { | |
if (e.target.href.substring(0,10) === "javascript") { | |
window.run(e.target.href.substring(11), 'click-handler'); | |
} | |
}); |
// Example of a whole load of mixins to make round corners | |
// (including individual corners) easy to remember in SASS | |
@mixin roundcorners($radius) { | |
-moz-border-radius: $radius; // firefox | |
-webkit-border-radius: $radius; // safari/chrome | |
border-radius: $radius; // CSS3, works in IE9 | |
} | |
@mixin roundcorner1($radius, $corner: "top-left") { | |
-moz-border-#{$corner}-radius: $radius ; // firefox |
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |