Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
[core] | |
editor = vi | |
[alias] | |
co = checkout | |
ci = commit | |
st = status | |
br = branch | |
hist = log --pretty=format:\"%C(yellow)%h%Creset %ad | %Cgreen%s%Creset%d %Cred[%cn - %ce]%Creset\" --graph --date=iso --decorate | |
history = log --pretty=format:\"%C(yellow)%h%Creset %ad | %Cgreen%s%Creset%d %Cred[%cn - %ce]%Creset\" --graph --date=iso --decorate | |
type = cat-file -t |
# usage: wrapper command | |
# e.g. wrapper cap production deploy | |
# put this on your .bashrc | |
wrapper(){ | |
start=$(date +%s) | |
"$@" | |
[ $(($(date +%s) - start)) -le 15 ] || notify-send "Notification" "Long\ | |
running command \"$(echo $@)\" took $(($(date +%s) - start)) seconds to finish" | |
} |
// npm install node-gpsd | |
var gpsd = require('node-gpsd'); | |
var gpsData = "No GPS data received."; | |
var gpsListener = new gpsd.Listener({ | |
port: 2947, | |
hostname: 'localhost' | |
}); | |
function startGPS () { |
#include <math.h> | |
#include <stdio.h> | |
#include <fcntl.h> | |
#include <sys/time.h> | |
#include <sys/ioctl.h> | |
#include <machine/speaker.h> | |
#define SPEAKER "/dev/speaker" | |
static struct tm *ptmOurs; |
#app/helpers/application_helper.rb | |
module ApplicationHelper | |
def money_format money | |
number_to_currency(money.to_f, :unit => "£", :separator => ",", :delimiter => "", :precision => 2) | |
end | |
end |
set_prompt (){ | |
red="\[\033[38;5;1m\]" | |
green="\[\033[38;5;10m\]" | |
yellow="\[\033[38;5;11m\]" | |
grape="\[\033[38;5;92m\]" | |
strawberry="\[\033[38;5;9m\]" | |
mellon="\[\033[38;5;162m\]" | |
name="$red🍒$space$green🍏$space$red🍓$space$color4" | |
host="$color3\h$color4" | |
path="$color5\w$color4" |
/* | |
* | |
* Edited by Abderrahmane TAHRI JOUTI (tj.abderrahmane@gmail.com) | |
* http://abderrahmane-tj.co.cc | |
* | |
*/ | |
/**********************************************/ | |
/* |
/**********************************************/ | |
/* | |
/* Tomorrow Skin by Ben Truyman - 2011 | |
/* | |
/* Based on Chris Kempson's Tomorrow Theme: | |
/* https://github.com/ChrisKempson/Tomorrow-Theme | |
/* | |
/* Inspired by Darcy Clarke's blog post: | |
/* http://darcyclarke.me/design/skin-your-chrome-inspector/ | |
/* |
.container, body.api #wrapper, body.platform-switch #content-wrapper, .container .discussion-timeline { | |
width:90% !important | |
} | |
#slider .frames .frame, #slider .frames, body.platform-switch #content-wrapper .site, .container .file-commit-form { | |
width:100% !important | |
} | |
.frame[style*="margin-left: -1200px;"] { | |
visibility: hidden !important; | |
display: none !important | |
} |