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
label | |
.text data.label | |
.style 'font-size', "24px" | |
.style "font-size", -> | |
r = innerRadius - 20 | |
return (2 * r) / this.getComputedTextLength() * 24 + "px" |
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
youDie = function () { | |
var goatPos = $("#goat").offset() | |
var pooPos = $("#poo").offset() | |
if (goatPos.x === pooPos.x and goatPos.y === pooPos.y) { | |
alert("you fucking died!"); | |
} | |
} |
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
angular.module "onFinishRenderDirective", [] | |
.directive "onFinishRender", ($timeout) -> | |
restrict: "A" | |
link: (scope, element, attr) -> | |
if scope.$last | |
$timeout -> scope.$emit "ngRepeatFinished" |
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
<link rel="stylesheet" href="/path/to/flipclock.css"> | |
<style> | |
.cd-container { | |
display: inline-block; | |
} | |
</style> | |
<div class="cd-container"> | |
<div class="countdown"></div> | |
</div> | |
<script src="/path/to/flipclock.min.js"></script> |
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
'use strict'; | |
var gulp = require('gulp'); | |
var connect = require('gulp-connect'); | |
var modRewrite = require('connect-modrewrite'); | |
// Rewriting rule for clean urls | |
var middleware = [ | |
modRewrite([ | |
'!\\.\\w+$ /index.html [L]', |
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
import {Component, View} from 'angular2/angular2'; | |
import {Http, httpInjectables} from 'angular2/http'; | |
@Component({ | |
selector: 'home', | |
appInjector: [ | |
httpInjectables | |
] | |
}) |
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
Notice (8): Undefined offset: 0 [CORE/cake/libs/set.php, line 1132] | |
Code | Context | |
foreach ($keys as $k) { | |
$sorted[] = $data[$k]; | |
$data = array( | |
"Statuses" => array( | |
"type" => array(), |
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
Array | |
( | |
[Statuses] => Array | |
( | |
[type] => Array | |
( | |
[0] => array | |
[1] => array | |
) |
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
$statuses1 = $this->Twitter->statusesUserTimeline("TCarlsen",NULL,NULL,5); | |
$statuses2 = $this->Twitter->statusesUserTimeline("kfriis",NULL,NULL,5); | |
$statuses = array_merge_recursive($statuses1,$statuses2); | |
$result = Set::sort($statuses, 'Statuses.Status.{n}.id', 'desc'); | |
$this->set('statuses',$result); |
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
Array | |
( | |
[0] => Array | |
( | |
[created_at] => Fri Feb 19 09:23:49 +0000 2010 | |
[id] => 9327647067 | |
[text] => Uffe om doku-fiktion og farcen #lækagesag http://www.berlingske.dk/kommentarer/den-store-taber-i-laekage-sagen-pressen | |
[source] => TweetDeck | |
[truncated] => false | |
[InReplyToStatusId] => Array |