start new:
tmux
start new with session name:
tmux new -s myname
// Released under MIT license: http://www.opensource.org/licenses/mit-license.php | |
$('[placeholder]').focus(function() { | |
var input = $(this); | |
if (input.val() == input.attr('placeholder')) { | |
input.val(''); | |
input.removeClass('placeholder'); | |
} | |
}).blur(function() { | |
var input = $(this); |
/* | |
Requires: | |
- Events: https://gist.github.com/884484 | |
- Extend: https://gist.github.com/1049896 | |
- Namespace: https://gist.github.com/1006005 | |
*/ | |
SML = Object.namespace('SML',new Events); | |
window.fbAsyncInit = function(){ |
// Given a query string "?to=email&why=because&first=John&Last=smith" | |
// getUrlVar("to") will return "email" | |
// getUrlVar("last") will return "smith" | |
// Slightly more concise and improved version based on http://www.jquery4u.com/snippets/url-parameters-jquery/ | |
function getUrlVar(key){ | |
var result = new RegExp(key + "=([^&]*)", "i").exec(window.location.search); | |
return result && unescape(result[1]) || ""; | |
} |
#!/usr/bin/env python3 | |
import simplekml | |
import urllib.request | |
try: | |
import simplejson as json | |
except ImportError: | |
import json | |
fr24_flight_code = "" |
// ==UserScript== | |
// @name YMAC = (Y)ahoo (M)ail (A)d (C)leaner | |
// @description Remove ads in Yahoo Mail | |
// @version 1.26 | |
// @date 30.11.2015 | |
// @author Eric Fehrenbacher | |
// @grant metadata | |
// @updateUrl https://gist.github.com/oxchronxo/c8865a58dc297980fcf7/raw/ymac.user.js | |
// @downloadUrl https://gist.github.com/oxchronxo/c8865a58dc297980fcf7/raw/ymac.user.js | |
// @include http://*.mail.yahoo-inc.com/* |
import pogobuf from 'pogobuf'; | |
import POGOProtos from 'node-pogo-protos'; | |
import chalk from 'chalk'; | |
const USERNAME = '__YOUR_USERNAME__'; | |
const PASSWORD = '__YOUR_PASSWORD__'; | |
// 捷運西門站6號出口 | |
const LAT = 25.0432504; | |
const LNG = 121.5081401; |
This notes is written by Sheldon. You can find me with #iOSBySheldon in Github, Youtube, Facebook, etc.
Convert .mov/.MP4 to .gif
As a developer, I feel better to upload a short video when I create the pull request to show other viewers what I did in this PR. I tried .mov format directly got after finishing recording screen using Quicktime, however, gif offers preview in most web pages, and has smaller file size.
This is not limited to developer, anyone has this need can use this method to convert the files.