Skip to content

Instantly share code, notes, and snippets.

sourceMapper = require 'source-map-support'
Dot = require '../../../node_modules/grunt-mocha/node_modules/mocha/lib/reporters/dot.js'
module.exports = Dot
##
parseLine = (line) ->
[_, file, row] = line.match /file:\/\/\/(.*):(\d*)/
frame =
getFileName: -> file
@maxcal
maxcal / gist:8e7e0ee4ff83a3ad0c8a
Last active March 30, 2019 01:53 — forked from ismasan/gist:8217804
Rspec examples for HTTP caching
# Given a controller that looks like this
class ModelsController < ApplicationController
load_and_authorize_resource #CanCan
def show
if stale? @model
respond_to do |format|
format.json do
@model
end
@maxcal
maxcal / watch.rb
Created September 30, 2012 18:42 — forked from appbackr/watch.rb
watchr.rb
$exec = "phpunit"
watch('./(.*).php') { |m| changed(m[0]) }
def changed(file)
run "phpunit"
end
def run(cmd)
result = `#{cmd}`
@maxcal
maxcal / border-radius.scss
Created March 8, 2012 15:25 — forked from andrewrocco/border-radius.scss
Custom Font Mixin
@mixin border-radius ( $value: 3px ) {
-webkit-border-radius: $value;
-moz-border-radius: $value;
border-radius: $value;
// keeps background from busting out of border
-webkit-background-clip: padding-box;
-moz-background-clip: padding;
background-clip: padding-box;
}
@maxcal
maxcal / pkv.log
Created November 7, 2011 15:25 — forked from vpranavkumar/pkv.log
--------- beginning of /dev/log/system
W/ActivityManager( 1365): Scheduling restart of crashed service com.lge.simcontacts/.SIMContactsService in 14539ms
I/ActivityManager( 1365): Start proc com.lge.android.bookmarks.widget for service com.lge.android.bookmarks.widget/.WidgetUpdateService: pid=17360 uid=10078 gids={3003}
I/ActivityManager( 1365): moveTaskToBack: 6
D/ConnectivityService( 1365): ConnectivityChange for mobile: CONNECTED/CONNECTED
D/ConnectivityService( 1365): adding dns **.**.**.** for mobile
D/ConnectivityService( 1365): adding dns **.**.**.** for mobile
I/ActivityManager( 1365): Start proc com.lge.simcontacts for service com.lge.simcontacts/.SIMContactsService: pid=17375 uid=1001 gids={3002, 3001, 3003, 4002, 1015}
I/ActivityManager( 1365): No longer want com.google.android.talk (pid 13058): hidden #26
I/ActivityManager( 1365): No longer want com.wise.movie_player (pid 14793): hidden #26