Skip to content

Instantly share code, notes, and snippets.

John Wu tjwudi

Block or report user

Report or block tjwudi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tjwudi
tjwudi / index.html
Created May 20, 2015
Fast prototyping with gist
View index.html
<html>
<head></head>
<body>
A demo page for fast prototyping.
</body>
</html>
View bookmarks
icecomm.io|webrtc
View brush.js
if(!d3.chart) d3.chart = {};
d3.chart.brush = function() {
var g;
var data;
var width = 600;
var height = 30;
var dispatch = d3.dispatch(chart, "filter");
function chart(container) {
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>D3 Playground</title>
</head>
<body>
<div id="display"></div>
<script src="//cdn.jsdelivr.net/jquery/2.1.4/jquery.min.js"></script>
<script src="//cdn.jsdelivr.net/d3js/3.5.5/d3.min.js"></script>
View _.md
@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 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 / 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 grunt-autopreparecordova.js
module.exports = function(grunt){
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
exec:{
prepare:{
command:"cordova prepare",
stdout:true,
stderror:true
}
You can’t perform that action at this time.