Skip to content

Instantly share code, notes, and snippets.

View yanxiangw's full-sized avatar
🏠
Working from home

Yanxiang Wang yanxiangw

🏠
Working from home
  • Melbourne, VIC, Australia
View GitHub Profile
@yanxiangw
yanxiangw / .vimrc
Created September 2, 2018 05:38
.vimrc
:syntax on
:set tabstop=2
:set shiftwidth=2
:set expandtab
:set autochdir
:autocmd FileType xml,html,xhtml set tabstop=2|set shiftwidth=2
:autocmd FileType tex,txt set spell
:set smartindent
:color desert
highlight OverLength ctermbg=red ctermfg=white
@yanxiangw
yanxiangw / .gitignore
Created September 2, 2018 05:32
gitignore
# General
.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
# Thumbnails
@yanxiangw
yanxiangw / vscode-conf.json
Created August 22, 2018 11:34
VS Code Configuration JSON
{
"editor.rulers": [79, 81],
"editor.tabSize": 2,
"editor.wordSeparators": "`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?",
"terminal.integrated.shell.osx": "/bin/zsh",
"workbench.editor.enablePreviewFromQuickOpen": false,
"workbench.startupEditor": "newUntitledFile",
"[ruby]": {
"editor.tabSize": 2,
},
# spec/lib/tasks/notification_rake_spec.rb
require 'spec_helper'
describe 'notifications:weekly' do
include_context "rake"
let(:users){ [double(:user)] }
let(:user_deliveries){ double(:user_deliveries) }
before{ User.stub(:all).and_return( users ) }