app·name /ˈappˌname/
Noun:
Description.
Synonyms: Something.
git filter-branch --subdirectory-filter xxxx HEAD | |
git reset --hard | |
git remote rm origin | |
rm -r .git/refs/original/ | |
git reflog expire --expire=now --all | |
git gc --aggressive | |
git prune | |
git remote add origin https://github.com/xxx/xxxx.git | |
git push -u origin master |
#!/bin/sh | |
BASE=`pwd` | |
PROJECT='xxxxx' | |
tmux start-server | |
# new-session creates first window named 'console' | |
tmux new-session -d -s $PROJECT -n console | |
--- | |
type: post | |
tags: | |
published: true | |
title: | |
layout: post | |
status: publish | |
--- | |
#!/usr/bin/perl -w | |
#------------------------------------------------------------------------------ | |
# | |
# Copyright (c) BlackStar 1999 - 2003 | |
# | |
#------------------------------------------------------------------------------ | |
# | |
# Modification History | |
# |
#!/usr/bin/env ruby | |
file="~/.gitshots/#{Time.now.to_i}.jpg" | |
puts "Taking capture into #{file}!" | |
system "imagesnap -q -w 3 #{file}" | |
exit 0 |
#!/usr/bin/env python | |
import json | |
import csv | |
import sys | |
## assumes first row is headers | |
def csv_to_json(filename): | |
rows = [] | |
with open(filename, 'rb') as csvfile: |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" lang="en"> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/> | |
<title>Basic Report</title> | |
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js'></script> | |
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.17/jquery-ui.js'></script> | |
<!-- |
#!/usr/bin/env python | |
import datetime | |
date_object = datetime.datetime(2014, 1, 20, 12) | |
one_day = datetime.timedelta(days=1) | |
next_day = date_object + one_day | |
<?php | |
function createRange($start, $end) { | |
$range = array(); | |
if (is_string($start) === true) $start = strtotime($start); | |
if (is_string($end) === true ) $end = strtotime($end); | |
if ($start > $end) return createRange($end, $start); | |
do { |