As configured in my dotfiles.
start new:
tmux
start new with session name:
As configured in my dotfiles.
start new:
tmux
start new with session name:
<script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-2.0.0.min.js"></script> | |
<script> | |
if (typeof jQuery == 'undefined') { | |
document.write(unescape("%3Cscript src='/js/jquery-2.0.0.min.js' type='text/javascript'%3E%3C/script%3E")); | |
} | |
</script> |
<?php | |
/* | |
By Marco Arment <me@marco.org>. | |
This code is released in the public domain. | |
THERE IS ABSOLUTELY NO WARRANTY. | |
Usage example: | |
// In a registration or password-change form: |
def no_widows(arg) | |
if arg.strip.count(" ") >= 2 | |
arg.split[0...-1].join(" ") + " #{arg.split[-1]}" | |
else | |
arg | |
end | |
end | |
#Example usage: |
<html> | |
<head> | |
<title>S3 POST Form</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<script> | |
var bucketName = 'MY_BUCKET_NAME'; | |
var AWSKeyId = 'MY_AWS_KEY_ID'; | |
var policy = 'MY_POLICY'; | |
var signature = 'MY_SIGNATURE'; |
defmodule Text do | |
def widows(some_str) do | |
title_list = some_str |> String.split(" ") |> Enum.map(&String.capitalize/1) | |
title_str = Enum.join(title_list, " ") | |
if Enum.count(title_list) > 2 do | |
String.replace(title_str, ~r/\s+\S*$/, " " <> List.last(title_list)) | |
else | |
title_str | |
end | |
end |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import base64, hmac, sha | |
private_key = 'YOUR PRIVATE KEY' | |
input = open("policy.txt", "rb") | |
policy = input.read() | |
policy_encoded = base64.b64encode(policy) | |
signature = base64.b64encode(hmac.new(private_key, policy_encoded, sha).digest()) |
#! /usr/bin/python | |
from sys import argv | |
from os.path import exists | |
from os import makedirs | |
from os import symlink | |
import getopt | |
# | |
# Show Usage, Output to STDERR |
#!/usr/bin/env bash | |
# Check that /usr/local/bin comes before /usr/bin in your PATH | |
brew install python | |
brew install cmake | |
brew install libgit2 |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
watch: { | |
livereload: { | |
files: ['_site/*'], | |
options: { | |
livereload: true | |
} | |
}, |