Skip to content

Instantly share code, notes, and snippets.

@heqiao
heqiao / .gitignore
Created June 12, 2014 15:38
vs .gitignore
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
# User-specific files
*.suo
*.user
*.sln.docstates
# Build results
[Dd]ebug/
@heqiao
heqiao / getColumn
Created September 30, 2013 20:13
Get all the column called CostTemplate in all tables
SELECT t.name AS table_name,
SCHEMA_NAME(schema_id) AS schema_name,
c.name AS column_name
FROM sys.tables AS t
INNER JOIN sys.columns c ON t.OBJECT_ID = c.OBJECT_ID
WHERE c.name LIKE '%CostTemplate%'
ORDER BY schema_name, table_name;
@heqiao
heqiao / sublime
Created August 30, 2013 18:56
Sublime Text
Ctrl + zoom
ctrl +d multiple select to replace
*shift + ctrl + p search to set different language and so on
ctrl + p search files
ctrl +r search method in a file
@heqiao
heqiao / .gitignore
Created August 28, 2013 21:35
An augmented .gitignore file.
# Ignore bundler config.
/.bundle
# Ignore the default SQLite database.
/db/*.sqlite3
/db/*.sqlite3-journal
# Ignore all logfiles and tempfiles.
/log/*.log
/tmp
@heqiao
heqiao / MapProjectSetUp
Created August 28, 2013 03:24
Map-project Setup
1.sudo apt-get remove dmraid //When cannot find the disk
2.rvm --default use ruby-1.9.3 //Set default ruby to avoid rvm use ruby every time booting terminal
3.Js Runtime error:
In your Gem file, write
gem 'execjs'
gem 'therubyracer'
and then run