- Turn off notifications (ALT+click Notification Center)
- Turn off Bluetooth (in case someone sits on your Bluetooth keyboard/mouse, unless you're using Bluetooth of course)
- Turn off f.lux (can catch you out when using projectors)
- Prevent your computer from sleeping. Run Caffeine (or use settings to not let your computer sleep)
- Always run slides in presentation mode
#!/usr/bin/env node | |
/** | |
* Module dependencies | |
*/ | |
var Async = require('async'); | |
var Filesystem = require('machinepack-fs'); | |
var Prompts = require('machinepack-prompts'); | |
var Sails = require('sails').Sails; |
<html> | |
<head> | |
<meta content="text/html;charset=utf-8" http-equiv="Content-Type"> | |
<meta content="utf-8" http-equiv="encoding"> | |
<!-- This disables auto detection of phone numbers in some clients. Remove if not needed. --> | |
<meta name="format-detection" content="telephone=no"> | |
<title>Page title</title> | |
</head> | |
<body style="font-family: Helvetica, Arial, sans-serif;font-size: 16px;margin: 0;color:#0b0c0c"> |
PRs are a great way of sharing information, and can help us be aware of the changes that are occuring in our codebase. They are also an excellent way of getting peer review on the work that we do, without the cost of working in direct pairs.
Ultimately though, the primary reason we use PRs is to encourage quality in the commits that are made to our code repositories
Done well, the commits (and their attached messages) contained within tell a story to people examining the code at a later date. If we are not careful to ensure the quality of these commits, we silently lose this ability.
Components (or modules) talk to each other via events.
- vendor [3rd party scripts, this could as well be bower_components if you use bower]
- core [app core functionalities/utilities]
- component
- component1
- index.js [the actual js component]
- spec.js [tests]
- style.css [component styles]
- component1
- index.partial.template
This example is inspired by Calendar View and Trulia Trends. You can toggle the displaying type to see either the level of values or change trends in each day. Thank air-scientific.com for the pm2.5 data.
// mindbody.js | |
// Replace source_name, password and site_id values in `var params` | |
var soap = require('soap'); | |
module.exports = { | |
getClasses: function (req, res) { | |
var url = "https://api.mindbodyonline.com/0_5/ClassService.asmx?wsdl"; | |
soap.createClient(url, function (err, client) { | |
if (err) { |
require 'rubygems' | |
require 'capybara' | |
require 'capybara/dsl' | |
require 'capybara/poltergeist' | |
require 'awesome_print' | |
Capybara.run_server = false | |
Capybara.current_driver = :poltergeist | |
class Oyster |
Command Line
pry -r ./config/app_init_file.rb
- load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb
- load your rails into a pry session
Debugger