Skip to content

Instantly share code, notes, and snippets.

@ysheng26
ysheng26 / Gemfile
Created March 13, 2015 20:21
rails tutorial gemfile
source 'https://rubygems.org'
gem 'rails', '4.2.0'
gem 'sass-rails', '5.0.1'
gem 'uglifier', '2.5.3'
gem 'coffee-rails', '4.1.0'
gem 'jquery-rails', '4.0.3'
gem 'turbolinks', '2.3.0'
gem 'jbuilder', '2.2.3'
gem 'sdoc', '0.4.0', group: :doc
@ysheng26
ysheng26 / .tmux.conf
Last active August 29, 2015 14:16
my tmux config
# use UTF8
set -g utf8
set-window-option -g utf8 on
# copy and paste
set-window-option -g mode-keys vi
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection
# make tmux display things in 256 colors
#!/bin/bash
#script extraido de: http://paulocassiano.wordpress.com/2008/08/29/deixando-o-gedit-com-a-cara-do-textmate/
#tip for better "resolution" here: http://blog.siverti.com.br/2008/05/22/fonte-monaco-no-ubuntugedit/
cd /usr/share/fonts/truetype/
#TODO: put validation if folder already exists
sudo mkdir ttf-monaco
##
##
## A Makefile template for compiling ATS programs
##
##
######
#
# Note that
# certain installations require the following changes:
(*
**
** A template for single-file ATS programs
**
*)
(* ****** ****** *)
//
#include "share/atspre_define.hats"
#include "share/atspre_staload.hats"
% --------------------------------------------------------------
% This is all preamble stuff that you don't have to worry about.
% Head down to where it says "Start here"
% --------------------------------------------------------------
\documentclass[12pt]{article}
\usepackage[margin=1in]{geometry}
\usepackage{amsmath,amsthm,amssymb}
#!/bin/bash
git --no-pager grep "$@"
git --no-pager submodule --quiet foreach 'git grep --full-name -n ' "$@" '; true'
body {
font-family: Helvetica, arial, sans-serif;
font-size: 14px;
line-height: 1.6;
padding-top: 10px;
padding-bottom: 10px;
background-color: white;
padding: 30px; }
body > *:first-child {
@ysheng26
ysheng26 / template.sublime-project
Created February 13, 2014 08:37
sublime project template from official documentation
{
"folders":
[
{
"path": "src",
"folder_exclude_patterns": ["backup"]
},
{
"path": "docs",
"name": "Documentation",
@ysheng26
ysheng26 / bash_profile
Last active December 25, 2015 00:29
bash_profile
source ~/Dropbox/shengy/scripts/git-completion.bash
export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/shengy/bin
export PATH=$PATH:~/bin
export PATH=/usr/texbin:$PATH
export PATH=~/libs/android-sdk-macosx/platform-tools:~/libs/android-sdk-macosx/tools:$PATH
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
eval "$(rbenv init -)"
export PATH="$HOME/.rbenv/shims:$PATH"