start new:
tmux
start new with session name:
tmux new -s myname
/** | |
* Top and Bottom inset shadow | |
*/ | |
#element{ | |
background-color: #E3F2F7; | |
height: 55px; | |
position: relative; /* to position pseudo absolute*/ | |
overflow: hidden; /* to cut of overflow shadow*/ |
This uses Twitter Bootstrap classes for CodeIgniter pagination.
Drop this file into application/config
.
require 'rubygems' | |
require 'sinatra' | |
require 'json' | |
require 'omniauth' | |
require 'omniauth-facebook' | |
require 'omniauth-twitter' | |
class SinatraApp < Sinatra::Base | |
configure do | |
set :sessions, true |
javascript:(function () { | |
function getTextNodesIn(element) { | |
var wordcount = 0, | |
whitespace = /^\s*$/; | |
function getTextNode(node) { | |
// type 3 is a textnode | |
if (node.nodeType == 3) { | |
// We skip text nodes that are only whitespace | |
if (!whitespace.test(node.nodeValue)) { |
#!/bin/bash | |
# /usr/local/bin/createSite.sh -d domain -t com -u user -p password -r [email protected]:user/repo.git | |
# TODO: SCP could be done in reverse | |
domain='' | |
tld='' | |
username='' | |
password='' |
# | |
# Paste this script in your .git/hooks/pre-commit file (create one if it doesn't exist yet) | |
# To prevent debug code from being accidentally committed, simply add a comment near your | |
# debug code containing the keyword !nocommit and this script will abort the commit. | |
# | |
if git commit -v --dry-run | grep '!nocommit' >/dev/null 2>&1 | |
then | |
echo "Trying to commit non-committable code." | |
echo "Remove the !nocommit string and try again." |
use v5.14; | |
use JSON::PP; | |
use JSON::Hyper; | |
use Data::Dumper; | |
use Devel::Confess; | |
# Construct a URI which has some JSON data. I'm using a | |
# data: URI because I'm too lazy to upload some JSON | |
# somewhere, but any URI that returns JSON should be OK. | |
# |