This file contains hidden or 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
# Build Folders (you can keep bin if you'd like, to store dlls and pdbs) | |
bin | |
obj | |
# Personal VS settings | |
*.suo | |
*.user | |
# mstest test results | |
TestResults |
This file contains hidden or 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
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Security.Cryptography; | |
using System.IO; | |
namespace ConsoleTester |
This file contains hidden or 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 xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title>Image Stimuli</title> | |
<style type="text/css"> | |
html, body | |
{ | |
margin:0px; | |
padding: 0px; | |
height:100%; |
This file contains hidden or 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/bash | |
for SRC in `find $1 -depth` | |
do | |
DST=`dirname "${SRC}"`/`basename "${SRC}" | tr '[A-Z]' '[a-z]'` | |
if [ "${SRC}" != "${DST}" ] | |
then | |
mv $SRC $DST || echo $SRC | |
fi | |
done |
This file contains hidden or 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/sh | |
#convert from GBK to UTF-8(with BOM) | |
#http://stackoverflow.com/questions/4364156/iconv-converting-from-windows-ansi-to-utf-8-with-bom | |
for file in `find . -iname $1 ` | |
do | |
echo -ne '\xEF\xBB\xBF' > "$file.new" | |
iconv -f GBK -t 'UTF-8' "$file" >> "$file.new" && | |
mv -f "$file.new" "$file" |
This file contains hidden or 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
# Path to your oh-my-zsh configuration. | |
ZSH=$HOME/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
ZSH_THEME="jatsz" | |
# Example aliases |
This file contains hidden or 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/sh | |
if [[ ! -d $1 ]]; then | |
echo "please specific a MP3 directory" | |
exit; | |
fi | |
SAVEIFS=$IFS | |
IFS=$( echo -en "\n\b" ) #fix mp3 files contain a space | |
for file in $( find $1 -name *.mp3 ); do |
This file contains hidden or 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/sh | |
#set -x | |
TMP_TXT="$(mktemp)" | |
STAT_TXT="$(mktemp)" | |
cleanup() | |
# cleanup the tmp data when exit by CTRL+C | |
{ |
This file contains hidden or 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 color file | |
" | |
" Author: Tomas Restrepo <[email protected]> | |
" | |
" Note: Based on the monokai theme for textmate | |
" by Wimer Hazenberg and its darker variant | |
" by Hamish Stuart Macpherson | |
" | |
hi clear |
OlderNewer