- Delete unused or obsolete files when your changes make them irrelevant (refactors, feature removals, etc.), and revert files only when the change is yours or explicitly requested. If a git operation leaves you unsure about other agents' in-flight work, stop and coordinate instead of deleting.
- Before attempting to delete a file to resolve a local type/lint failure, stop and ask the user. Other agents are often editing adjacent files; deleting their work to silence an error is never acceptable without explicit approval.
- NEVER edit
.envor any environment variable files—only the user may change them. - Coordinate with other agents before removing their in-progress edits—don't revert or delete work you didn't author unless everyone agrees.
- Moving/renaming and restoring files is allowed.
- ABSOLUTELY NEVER run destructive git operations (e.g.,
git reset --hard,rm,git checkout/git restoreto an older commit) unless the user gives an explicit, written instruction in this conversation. Treat t
Learning VIM in Xcode comes with its own set of challenges and limitations, but there is enough there for you to give your mousing hand a break and master the keyboard.
A limited set of commands are available in Xcode, and this document attempts help ease the learning curve of using VIM in Xcode by providing a handy reference as well as what I find works for me in practice.
NOTE:
Commands are case-sensitive. A command of N means pressing shift + n on the keyboard.
This document is a work in progress! Leave a comment if you would like to see a change.
| const ALLOW_AUTO_PURCHASE = false | |
| const CHECKOUT_URL = 'https://www.amazon.com/gp/buy/shipoptionselect/handlers/display.html?hasWorkingJavascript=1' | |
| const { pathname } = location | |
| const isShipOptionPage = /buy\/shipoptionselect/.test(pathname) | |
| const isPaySelectPage = /buy\/payselect/.test(pathname) | |
| const isPurchasePage = /buy\/spc/.test(pathname) | |
| const isThankYouPage = /buy\/thankyou/.test(pathname) | |
| let attemptNum = 1 |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| /** | |
| * Annotated Gruntfile. | |
| * This builds a Backbone/Marionette application using Dust.js (Linkedin fork) as a | |
| * templating system, as well as some helpers from Foundation, with Browserify. | |
| * It also configures a watcher and static server with live reload. | |
| */ | |
| module.exports = function (grunt) { | |
| // This automatically loads grunt tasks from node_modules | |
| require("load-grunt-tasks")(grunt); |
A timeline of the last four years of detecting good old window.localStorage.
October 2009: 5059daa
| fs = require 'fs' | |
| class SF2 | |
| constructor: (file) -> | |
| # Skeleton json response | |
| @stats = { | |
| "session": +new Date | |
| "p1": { | |
| "fighters": [], | |
| "total": {} |
| Basketball = (keanu, opts, duration) -> | |
| return if not keanu | |
| @keanu = keanu | |
| @ctx = @keanu.ctx | |
| @origin = opts.origin or [] | |
| @originX = @origin[0] or 0 | |
| @originY = @origin[1] or 0 | |
| @originRadius = @origin[2] or 0 |
| // http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
| // http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating | |
| // requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel | |
| // MIT license | |
| (function() { | |
| var lastTime = 0; | |
| var vendors = ['ms', 'moz', 'webkit', 'o']; |