Organize resources into sections
- The Toolbox
- JSFiddle
- Field Guide to Web Applications - by Google
- GitHub Buttons
- FormBakery: create forms by drag and drop
- Zurb Foundation
- Twitter Bootstrap
| var each = function (Array) {"use strict"; | |
| /*! all you need to `each(obj, cb [,context])` | |
| * @author WebReflection | |
| * @license WTFPL - http://en.wikipedia.org/wiki/WTFPL | |
| * @gist https://gist.github.com/2294934 | |
| */ | |
| var | |
| toString = {}.toString, | |
| hasOwnProperty = {}.hasOwnProperty, | |
| array = toString.call([]), |
| require 'rspec/core/rake_task' | |
| RSpec::Core::RakeTask.new :rspec do |t| | |
| t.rspec_opts = ['--fail-fast', '--format', 'documentation'] | |
| end | |
| task default: :rspec |
| // The following depends on a quirk in V8 to work. | |
| // Depends on Map and WeakMap, which can be: | |
| // * turned on in Chrome's about:flags | |
| // * enabled in node using --harmony_collections or --harmony | |
| // * shimmed via https://github.com/Benvie/ES6-Harmony-Collections-Shim | |
| // Provides: | |
| // * Name | |
| // * Object.protectProperty |
| node_modules/A/node_modules/B/node_modules/C/all.js |
| // ==UserScript== | |
| // @name Use Markdown, sometimes, in your HTML. | |
| // @author Paul Irish <http://paulirish.com/> | |
| // @link http://git.io/data-markdown | |
| // @match * | |
| // ==/UserScript== | |
| // If you're not using this as a userscript just delete from this line up. It's cool, homey. |
Organize resources into sections
| L1 cache reference 0.5 ns | |
| Branch mispredict 5 ns | |
| L2 cache reference 7 ns | |
| Mutex lock/unlock 25 ns | |
| Main memory reference 100 ns | |
| Compress 1K bytes with Zippy 3,000 ns | |
| Send 2K bytes over 1 Gbps network 20,000 ns | |
| Read 1 MB sequentially from memory 250,000 ns | |
| Round trip within same datacenter 500,000 ns | |
| Disk seek 10,000,000 ns |
| # Video: http://rubyhoedown2008.confreaks.com/08-chris-wanstrath-keynote.html | |
| Hi everyone, I'm Chris Wanstrath. | |
| When Jeremy asked me to come talk, I said yes. Hell yes. Immediately. But | |
| then I took a few moments and thought, Wait, why? Why me? What am I supposed | |
| to say that's interesting? Something about Ruby, perhaps. Maybe the | |
| future of it. The future of something, at least. That sounds | |
| keynote-y. | |
| /* | |
| * | |
| * | |
| * Simple Drupal 6 to Wordpress 3 migrating class for the modeling-languages.com portal | |
| * | |
| * | |
| * @version 0.1 10 June 2011 | |
| * @author Jordi Cabot | |
| * | |
| * |
| #! /usr/bin/env thor | |
| require 'mysql2' | |
| class Tonkla < Thor | |
| desc 'migrate', 'migrate tonkla.com\'s blog posts from Drupal to Rails' | |
| def migrate | |
| db_from = Mysql2::Client.new(host: 'localhost', username: 'root', database: 'tonkla_com') | |
| db_to = Mysql2::Client.new(host: 'localhost', username: 'root', database: 'klass_blog_development') | |
| result = db_from.query('SELECT r.title, r.body, n.created AS created_at, r.timestamp AS updated_at |