This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% highlight ruby linenos %} | |
def foo | |
puts 'foo' | |
end | |
{% endhighlight %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt){ | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
exec:{ | |
prepare:{ | |
command:"cordova prepare", | |
stdout:true, | |
stderror:true | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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', []); |
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设计、构建和测试的流程的一个系统性的介绍。在本文中,我也加入了大量的相关文章、资源的链接,供读者阅读参考。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Do not push to master | |
if [ $(git rev-parse --abbrev-ref HEAD) == "master" ] | |
then | |
echo 'Hello' | |
exit 1 | |
fi |
[ Launch: barchart ] e100ecf336266fbb0634 by tjwudi[ Launch: test ] 4653053 by enjalot[ Launch: test ] 4652017 by enjalot[ Launch: test ] 4582399 by enjalot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) { |