This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$exec = "phpunit" | |
watch('./(.*).php') { |m| changed(m[0]) } | |
def changed(file) | |
run "phpunit" | |
end | |
def run(cmd) | |
result = `#{cmd}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--------- 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 |