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
import os | |
import time | |
from watchdog.observers import Observer | |
from watchdog.events import LoggingEventHandler | |
def sync_delete(event): | |
print 'delete %s' % event.src_path |
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
#include <stdio.h> | |
#include <stdlib.h> | |
struct page { | |
int value; | |
page *next; | |
}; | |
int miss = 0; | |
int hit = 0; |
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
shell -$SHELL | |
altscreen on | |
startup_message off | |
autodetach on | |
nonblock on | |
defutf8 on | |
defscrollback 10000 |
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
export TERM="xterm-color" | |
export CLICOLOR=1 | |
export LSCOLORS=ExFxCxDxBxegedabagacad | |
PS1="\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] " |
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
#!/bin/bash | |
set -e | |
device=$1 | |
vlanid=$2 | |
interface=vlan$vlanid | |
bridge="docker0" | |
modprobe 8021q |
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
var c = require('framework.js'); | |
var _step1_url = c.url + '/mine/info/1' | |
var _step2_url = c.url + '/mine/info/2' | |
var _step3_url = c.url + '/mine/info/3' | |
var _step4_url = c.url + '/mine/info/4' | |
var _step5_url = c.url + '/mine/info/5' | |
var check_loaded = function(){ | |
casper.waitForResource(/form_helper\.js$/, function(){ |
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
#import "AppDelegate.h" | |
#import "gen-cocoa/ares.h" | |
#import "thrift/Thrift.h" | |
#import "thrift/transport/TSSLSocketClient.h" | |
#import "thrift/transport/TTransport.h" | |
#import "thrift/transport/TSocketClient.h" | |
#import "thrift/transport/TFramedTransport.h" | |
#import "thrift/protocol/TBinaryProtocol.h" | |
@implementation AppDelegate |
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
if (typeof (AC) === "undefined") { | |
AC = {} | |
} | |
AC.ImageReplacer = Class.create({ | |
_defaultOptions: { | |
listenToSwapView: true, | |
filenameRegex: /(.*)(\.[a-z]{3}($|#.*|\?.*))/i, | |
filenameInsert: "_☃x", | |
ignoreCheck: /(^http:\/\/movies\.apple\.com\/|\/105\/|\/global\/elements\/quicktime\/|_(([2-9]|[1-9][0-9]+)x|nohires)(\.[a-z]{3})($|#.*|\?.*))/i, | |
attribute: "data-hires", |
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
" First install Vundle | |
" git clone http://github.com/gmarik/vundle.git ~/.vim/bundle/vundle | |
set nocompatible " be iMproved | |
filetype off " required! | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
" let Vundle manage Vundle | |
" required! |
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
" Name: Solarized vim colorscheme | |
" Author: Ethan Schoonover <es@ethanschoonover.com> | |
" URL: http://ethanschoonover.com/solarized | |
" (see this url for latest release & screenshots) | |
" License: OSI approved MIT license (see end of this file) | |
" Created: In the middle of the night | |
" Modified: 2011 May 05 | |
" | |
" Usage "{{{ | |
" |
OlderNewer