Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| (function(){ | |
| var sys = require('sys'); | |
| var filestem = process.ARGV.length > 2 ? process.ARGV.length[2] : "screen"; | |
| var spawn = require('child_process').spawn, | |
| timer = null, | |
| startTime, stopTime; | |
| function outfile(d) { |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| 王 | |
| 江 | |
| 周 | |
| 胡 | |
| 刘 | |
| 李 | |
| 吴 | |
| 毛 | |
| 温 | |
| 习 |
| Here is a simple jQuery plugin to make a table header fixed on top when window is scrolled. | |
| Using the code from twitter bootstrap documentation page, this code is customized for table header. | |
| Create the table with following layout - | |
| <table class="table-fixed-header"> | |
| <thead class="header"> | |
| <tr> | |
| <th>Column 1</th> | |
| <th>Column 2</th> | |
| <th>Column 3</th> |
An ongoing project to catalogue all of these sneaky, hidden, bleeding edge selectors as I prepare my JSConf EU 2012 talk.
Everything is broken up by tag, but within each the selectors aren't particularly ordered.
I have not tested/verified all of these. Have I missed some or got it wrong? Let me know. - A
A friendly reminder that you may need to set this property on your target/selected element to get the styling results you want:
-webkit-appearance:none;
| grunt.event.on 'watch', (action, filepath, target) -> | |
| if minimatch filepath, 'src/**/*.coffee' | |
| grunt.config.set 'coffee', | |
| dev: | |
| expand: true | |
| cwd: 'src' | |
| src: filepath.slice(4) | |
| dest: 'dev' | |
| ext: '.js' | |
| else if minimatch filepath, 'src/views/**/*.jade' |
###移动技术
根据mobileTech项目整理而成,原文地址。
####webapp实践的总结
| #!/bin/bash | |
| #Modify this with your IP range | |
| MY_IP_RANGE="192\.168\.1" | |
| #You usually wouldn't have to modify this | |
| PORT_BASE=5555 | |
| #List the devices on the screen for your viewing pleasure | |
| adb devices |
The idea is based on a gist by @jimbojsb.
You can use Pygments or Highlight.
brew install python
This is a set up for projects which want to check in only their source files, but have their gh-pages branch automatically updated with some compiled output every time they push.
A file below this one contains the steps for doing this with Travis CI. However, these days I recommend GitHub Actions, for the following reasons: