This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
| (function() { | |
| var CSSCriticalPath = function(w, d, opts) { | |
| var opt = opts || {}; | |
| var css = {}; | |
| var pushCSS = function(r) { | |
| if(!!css[r.selectorText] === false) css[r.selectorText] = {}; | |
| var styles = r.style.cssText.split(/;(?![A-Za-z0-9])/); | |
| for(var i = 0; i < styles.length; i++) { | |
| if(!!styles[i] === false) continue; | |
| var pair = styles[i].split(": "); |
| { | |
| "phone" : "all and (max-width: 603px)", | |
| "desktop": "all and (min-width: 1025px)", | |
| "tablet" : "all and (min-width: 604px) and (max-width: 1024px)" | |
| } |
| #!/bin/bash | |
| # Schedule this to run once a day with cron. Doesn't matter what time since it parses yesterday's hits (by default). | |
| # I only tested this on the Marco.org server, which runs CentOS (RHEL). No idea how it'll work on other distributions, but it's pretty basic. | |
| # Required variables: | |
| RSS_URI="/rss" | |
| MAIL_TO="your@email.com" | |
| LOG_FILE="/var/log/httpd/access_log" |
What is this? It's about 7 years of OpenStreetMap growth. Each step in the animation is 72 days, and the colors alternate between red and blue. The data is from Latest Weekly Changesets from planet.openstreetmap.org, processed into an SQLite database with sometimemachine. The points being drawn are the centers of the bounding boxes of changesets. There are 13,098,655 changesets in the database. The script to generate the visualization is below, and the rest of the make steps are
gm mogrify -format gif *.png
gifsicle --loop -d20 *.gif > ../animation.gif
Requiring gifsicle and graphicsmagick.
Fast growth in rectangular areas (like the DRC) is typically because of imports to the OSM data from other open datasources. The d
| <style> | |
| .fade-right { | |
| -webkit-mask-image: -webkit-gradient(linear, left top, right top, from(rgba(0,0,0,1)), color-stop(0.75, rgba(0,0,0,1)), to(rgba(0,0,0,0))); | |
| mask: url(#fade_right_svg_mask); | |
| } | |
| #mask_demo { | |
| background: #d0d0d0; | |
| height: 100px; | |
| width: 500px; | |
| padding: 10px; |
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
| # add these aliases to your BASH profile ~/.profile | |
| alias mongodb-start="mongod run --config /usr/local/etc/mongod.conf" | |
| alias redis-start="redis-server /usr/local/etc/redis.conf" | |
| # TODO add stop commands |
Now when you export to HTML from inside of Writer, your HTML file will be styled according to your your overrides. Want to share your pretty docs? Print to PDF.
Next steps: Link to a locally-hosted jQuery and write a little JS app for switching themes in browser.
| #!/bin/bash | |
| # https://gist.github.com/949831 | |
| # http://blog.carbonfive.com/2011/05/04/automated-ad-hoc-builds-using-xcode-4/ | |
| # command line OTA distribution references and examples | |
| # http://nachbaur.com/blog/how-to-automate-your-iphone-app-builds-with-hudson | |
| # http://nachbaur.com/blog/building-ios-apps-for-over-the-air-adhoc-distribution | |
| # http://blog.octo.com/en/automating-over-the-air-deployment-for-iphone/ | |
| # http://www.neat.io/posts/2010/10/27/automated-ota-ios-app-distribution.html |