One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| $ ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 output.mp4 |
| var gulp = require('gulp'); | |
| var sourcemaps = require('gulp-sourcemaps'); | |
| var source = require('vinyl-source-stream'); | |
| var buffer = require('vinyl-buffer'); | |
| var browserify = require('browserify'); | |
| var watchify = require('watchify'); | |
| var babel = require('babelify'); | |
| function compile(watch) { | |
| var bundler = watchify(browserify('./src/index.js', { debug: true }).transform(babel)); |
| /** | |
| * AppleScript to launch iterm2 terminals/tabs with configurable: | |
| * ~ Name <name> | |
| * ~ List of commands <cmds> | |
| * ~ Split behavior horizontal(h) or vertical(v) <split> :: (h, v) | |
| * | |
| * Run from terminal with `osascript iterm-launcher.js`. | |
| * Don't unfocus with the mouse/keyboard while executing the script. | |
| * | |
| * JS port of https://github.com/luismartingil/scripts/blob/master/iterm_launcher02.applescript |
| [ | |
| { "code": "aa", "name": "Afar" }, | |
| { "code": "ab", "name": "Abkhazian" }, | |
| { "code": "ae", "name": "Avestan" }, | |
| { "code": "af", "name": "Afrikaans" }, | |
| { "code": "ak", "name": "Akan" }, | |
| { "code": "am", "name": "Amharic" }, | |
| { "code": "an", "name": "Aragonese" }, | |
| { "code": "ar", "name": "Arabic" }, | |
| { "code": "as", "name": "Assamese" }, |
| // This script will boot app.js with the number of workers | |
| // specified in WORKER_COUNT. | |
| // | |
| // The master will respond to SIGHUP, which will trigger | |
| // restarting all the workers and reloading the app. | |
| var cluster = require('cluster'); | |
| var workerCount = process.env.WORKER_COUNT || 2; | |
| // Defines what each worker needs to run |
JavaScript Code
var str = "hi";Memory allocation:
| Address | Value | Description |
|---|---|---|
...... |
... |
I have always struggled with getting all the various share buttons from Facebook, Twitter, Google Plus, Pinterest, etc to align correctly and to not look like a tacky explosion of buttons. Seeing a number of sites rolling their own share buttons with counts, for example The Next Web I decided to look into the various APIs on how to simply return the share count.
If you want to roll up all of these into a single jQuery plugin check out Sharrre
Many of these API calls and methods are undocumented, so anticipate that they will change in the future. Also, if you are planning on rolling these out across a site I would recommend creating a simple endpoint that periodically caches results from all of the APIs so that you are not overloading the services will requests.
| // swap the keybindings for paste and paste_and_indent | |
| { "keys": ["super+v"], "command": "paste_and_indent" }, | |
| { "keys": ["super+shift+v"], "command": "paste" } |
Prereq:
apt-get install zsh
apt-get install git-coreGetting zsh to work in ubuntu is weird, since sh does not understand the source command. So, you do this to install zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh