This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" vim: se ff=unix : | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" => Variables | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
let $DBVIMRC = '~/Dropbox/configs/dotfiles/.vimrc' | |
let $DBGVIMRC = '~/Dropbox/configs/dotfiles/.gvimrc' | |
" Auto watch vimrc and reload it if it changes | |
augroup myvimrc | |
au! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-2.1.0.min.js"></script> | |
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.5.0/pure-min.css"> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<a href="#myModal" role="button" class="pure-button-primary pure-button" data-toggle="modal"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
table.table-hover tr:hover td { | |
background: #e5e5e5; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import json | |
import bottle | |
from bottle import static_file, route, run, request, abort, response | |
import simplejson | |
import pymongo | |
from pymongo import Connection | |
import datetime | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
args='' | |
filepath='' | |
files=ARGV[0..-1] | |
if files | |
for file in files do | |
if File.exist? file | |
fp=`cygpath -w '#{file}'`.strip.gsub '\\', '/' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
if [ ! -f package.json ]; then | |
echo "This script must be run from the ghost blog directory" | |
exit 1 | |
fi | |
ZIP_URL=https://ghost.org/zip/ghost-latest.zip | |
PROJ_DIR=$(pwd) | |
TMP_DIR=$(mktemp -d -t ghost) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"errors" | |
"io" | |
"log" | |
"net" | |
"net/http" | |
"net/rpc" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt) { | |
grunt.loadNpmTasks('grunt-shell'); | |
grunt.loadNpmTasks('grunt-contrib-watch'); | |
grunt.initConfig({ | |
watch: { | |
sourceFiles: { | |
files: ['themes/**','scaffolds/**','scripts/**','source/**','app.js'], | |
tasks: 'shell:hexoGen' | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
myApp.controller('MyCtrl', ['$scope','storageService', | |
function($scope, storageService) { | |
var brain = storageService.getBrain(); | |
$scope.items = []; | |
$.extend($scope, brain); // load from memory | |
$scope.addItem = function(item) { | |
$scope.items.push(item); | |
$scope.refresh(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#SingleInstance force | |
SetTitleMatchMode 2 | |
RControl & UP:: | |
Send {Volume_Up} | |
return | |
RControl & DOWN:: |
OlderNewer