J.B. Rainsberger - Integration Tests are a Scam
J.B. Rainsberger - When Is It Safe to Introduce Test Doubles?
Gary Bernhardt - Boundaries
Gary Bernhardt - Functional Core, Imperative Shell
Tom Stuart - Thinking functionally in Ruby
| /* Sample JavaScript file added with ScriptTag resource. | |
| This sample file is meant to teach best practices. | |
| Your app will load jQuery if it's not defined. | |
| Your app will load jQuery if jQuery is defined but is too old, e.g. < 1.7. | |
| Your app does not change the definition of $ or jQuery outside the app. | |
| Example: if a Shopify theme uses jQuery 1.4.2, both of these statements run in the console will still return '1.4.2' | |
| once the app is installed, even if the app uses jQuery 1.9.1: | |
| jQuery.fn.jquery => "1.4.2" | |
| $.fn.jquery -> "1.4.2" | |
| */ |
| # coding: utf-8 | |
| """ | |
| Cauê Thenório - cauelt(at)gmail.com | |
| This snippet makes Django do not create URL languages prefix (i.e. /en/) | |
| for the default language (settings.LANGUAGE_CODE). | |
| It also provides a middleware that activates the language based only on the URL. | |
| This middleware ignores user session data, cookie and 'Accept-Language' HTTP header. |
| /** | |
| * CSS theme for the Clearly browser extension by Evernote. | |
| * See: www.evernote.com/clearly/ | |
| * | |
| * Options used alongside this CSS: | |
| * Body font: "Adelle", Georgia, 微軟正黑體, Helvetica, Arial, sans-serif | |
| * Header font: Soho-condensed, PT Serif, 微軟正黑體, Helvetica | |
| * Monospace font: 微軟正黑體Mono, Inconsolata, Consolas, Droid Sans Mono | |
| * Background: #FFFFFF | |
| * Foregound: #333333 |
J.B. Rainsberger - Integration Tests are a Scam
J.B. Rainsberger - When Is It Safe to Introduce Test Doubles?
Gary Bernhardt - Boundaries
Gary Bernhardt - Functional Core, Imperative Shell
Tom Stuart - Thinking functionally in Ruby
This tutorial guides you through creating your first Vagrant project.
We start with a generic Ubuntu VM, and use the Chef provisioning tool to:
Afterwards, we'll see how easy it is to package our newly provisioned VM
| #!/bin/bash | |
| FILES=`find -iname *.txt -print` | |
| for FILE in $FILES | |
| do | |
| # replace the + to # chars | |
| sed -i -r 's/^([+]{4})\s/#### /' $FILE | |
| sed -i -r 's/^([+]{3})\s/### /' $FILE | |
| sed -i -r 's/^([+]{2})\s/## /' $FILE | |
| sed -i -r 's/^([+]{1})\s/# /' $FILE | |
| sed -i -r 's/(\[php\])/<?php/' $FILE |