Skip to content

Instantly share code, notes, and snippets.

Avatar

John Wu tjwudi

View GitHub Profile
View sybase-ase-cmd.md

List all databases

sp_helpdb

Check the current database name

select d.name 
from master..sysdatabases d, master..sysprocesses p 
where d.dbid=p.dbid and p.spid=@@spid
@tjwudi
tjwudi / highlight-jekyll-linenos
Created May 9, 2014
highlight-jekyll-linenos
View highlight-jekyll-linenos
{% highlight ruby linenos %}
def foo
puts 'foo'
end
{% endhighlight %}
View highlight-jekyll.txt
{% highlight ruby %}
def foo
puts 'foo'
end
{% endhighlight %}
@tjwudi
tjwudi / LimeAPI.js
Last active Aug 29, 2015
LimeJS often-used APIs
View LimeAPI.js
// Create a director
director = new lime.Director(document.body, 1024, 768);
// Create a scene
scene = new lime.Scene();
// Add a scene to director
director.replaceScene(scene);
// Schedule Manager Example
View grunt-autopreparecordova.js
module.exports = function(grunt){
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
exec:{
prepare:{
command:"cordova prepare",
stdout:true,
stderror:true
}
@tjwudi
tjwudi / Gruntfile.js
Created Feb 11, 2015
Gruntfile.js template
View Gruntfile.js
// Gruntfile.js
module.exports = function (grunt) {
// load all grunt tasks matching the ['grunt-*', '@*/grunt-*'] patterns
require('load-grunt-tasks')(grunt);
grunt.initConfig({
});
grunt.registerTask('default', []);
View translation_MakingResponsiveHTMLEmails.markdown

原文地址

响应式HTML Email制作指南

This is a run down of my process for designing, building and testing responsive HTML emails. I’ve also included lots of links to articles and resources for further reading.

这篇文章是我对我的响应式HTML Email设计、构建和测试的流程的一个系统性的介绍。在本文中,我也加入了大量的相关文章、资源的链接,供读者阅读参考。

Starting with the Client Brief

@tjwudi
tjwudi / pre-commit
Created Apr 16, 2015
Git pre-commit hook
View pre-commit
# Do not push to master
if [ $(git rev-parse --abbrev-ref HEAD) == "master" ]
then
echo 'Hello'
exit 1
fi
View _.md
You can’t perform that action at this time.