This file contains hidden or 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
/** | |
* A sublte button | |
*/ | |
.btn:hover .inner { | |
background-position: 0 15px; | |
-webkit-transition: background-position .1s linear; | |
} |
This file contains hidden or 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
/** | |
* CSS3 ribbon buttons | |
*/ | |
.ribbonA{ | |
position: relative; | |
display: block; | |
width: 258px; | |
height: 50px; | |
font: .9em/50px Georgia, "Times New Roman", Times, serif; |
This file contains hidden or 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
function clearField(field) | |
{ | |
if ( field && field.value ) | |
field.value = ''; | |
} |
This file contains hidden or 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
jasmine.Matchers.prototype.toBeTypeOf = function(expected) { | |
var actual, notText, objType; | |
actual = this.actual; | |
notText = this.isNot ? 'not ' : ''; | |
objType = actual ? Object.prototype.toString.call(actual) : ''; | |
this.message = function() { | |
return 'Expected ' + actual + notText + ' to be an array'; | |
} |
This file contains hidden or 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
.ui-addtocal { | |
cursor: pointer; /* No need for cursor: hand; Nobody uses IE 5.5 any more */ | |
position: absolute; | |
bottom: 10px; | |
right: 17px; | |
} | |
ol#eventsList h6.eventHost { | |
width: 220px | |
} |
This file contains hidden or 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
app.events = { | |
data: { | |
}, | |
ui: { | |
main: { | |
channel: 'ui.main', | |
topics: { | |
layoutLoaded: 'layout.loaded' |
This file contains hidden or 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
exports.DateHelper = { | |
lock: (msSinceEpoc) -> | |
# NOTE: Needed because Calendar model expects moment in the global scope. | |
global.moment = require('moment') | |
# NOTE: This can be removed once Sugar.js is removed | |
dateSugar = Date.SugarMethods | |
clock = sinon.useFakeTimers(msSinceEpoc) | |
# NOTE: This can be removed once Sugar.js is removed | |
Date[k] = v.method for k,v of dateSugar |
This file contains hidden or 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
context(@"stubbing init/alloc", ^{ | |
describe(@"can stub", ^{ | |
__block PSPDFViewController *psVC; | |
__block PSPDFViewController *initVC; | |
beforeEach(^{ | |
psVC = PSPDFViewController.alloc; | |
initVC = [psVC init]; | |
[PSPDFViewController stub:@selector(alloc) andReturn:psVC]; |
This file contains hidden or 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
.activity-text { | |
padding-right: 22px; | |
} | |
.activity-item .activity-delete { | |
top: 9px; | |
} | |
.activity-item:hover .activity-delete { | |
opacity: .75; |
This file contains hidden or 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
var takeDump = function(foo, bar, body) { | |
// The "body" is the raw response from https://data.mixpanel.com API | |
// At this point there are line returns (\n) separating each event and the list of events is not wrapped in an array literal ([]) | |
// Take out line returns and replace with proper comma separators | |
var tight = body.replace(/[\n\r\t]/g, ','); | |
// To return a list you've got to wrap it in an array | |
// There's a trailing newline returned, hence the substring snip | |
var wrapped = '[' + tight.substring(0, tight.length-1) + ']'; |
OlderNewer