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
/* Wrap around a div about what you will in a tooltip and it will hide the content and show only a symbol */ | |
.tooltip:before { | |
content: url(/media/icon16_tooltip.png); | |
margin-top: 18px; | |
} | |
.tooltip:hover:before { | |
content: ''; | |
} | |
.tooltip { | |
vertical-align: top; |
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
var request = require('request'); | |
function Queue(token, projectId, queue){ | |
this.options = { | |
url: 'http://mq-aws-us-east-1.iron.io/1/projects/' + projectId + '/queues/' + queue + '/messages', | |
headers: { | |
'Content-Type': 'application/json', | |
'Authorization': 'OAuth ' + token | |
}, | |
body: '{"messages":[{"body":"hello world!"}]}' | |
} |
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
var currentQuater = parseInt(new Date().getMonth() / 3 + 1, 0); | |
// Quater has to finished | |
var firstQuater = currentQuater - 1; | |
// Get current year to know when we get before January. | |
var firstYear = new Date().getFullYear(); | |
for (var i = 0; i < 4; i++) { | |
// If quater is equal to zero, go back a year | |
if (firstQuater === 0) { | |
firstQuater = 4; |
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
1 2013 Tue Jan 01 2013 00:00:00 GMT+0100 (CET) Sun Mar 31 2013 00:00:00 GMT+0100 (CET) | |
4 2012 Mon Oct 01 2012 00:00:00 GMT+0200 (CEST) Mon Dec 31 2012 00:00:00 GMT+0100 (CET) | |
3 2012 Sun Jul 01 2012 00:00:00 GMT+0200 (CEST) Sun Sep 30 2012 00:00:00 GMT+0200 (CEST) | |
2 2012 Sun Apr 01 2012 00:00:00 GMT+0200 (CEST) Sat Jun 30 2012 00:00:00 GMT+0200 (CEST) |
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
<!-- DOES NOT WORK --> | |
<div> | |
<div id="graph" style="z-index: 10"></div> | |
<div id="options"> | |
<div id="popup" style="z-index: 20"></div> | |
</div> | |
</div> | |
<!-- DOES WORK --> | |
<div> |
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
$(this).find('.icons').find('.variable').length === 1 |
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
var app = angular.module('app', []).config(function ($interpolateProvider) { | |
$interpolateProvider.startSymbol('{[{').endSymbol('}]}'); | |
}); |
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
0 info it worked if it ends with ok | |
1 verbose cli [ 'node', '/usr/local/bin/npm', 'install', 'visionmedia/express' ] | |
2 info using npm@1.3.24 | |
3 info using node@v0.10.24 | |
4 verbose cache add [ 'visionmedia/express', null ] | |
5 verbose cache add name=undefined spec="visionmedia/express" args=["visionmedia/express",null] | |
6 verbose parsed url { protocol: null, | |
6 verbose parsed url slashes: null, | |
6 verbose parsed url auth: null, | |
6 verbose parsed url host: null, |
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
$( ".selector" ).datepicker({ | |
dayNamesMin: [ "Sø", "Ma", "Ti", "On", "To", "Fr", "Lø" ], | |
monthNames: [ "Januar", "Februar", "Marts", "April", "Maj", "Juni", "Juli", "August", "September", "Oktober", "November", "December" ], | |
firstDay: 1, | |
weekHeader: "Uge", | |
showWeek: true | |
}); |
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
{ | |
"core.js": [ | |
{ | |
"name": "Crafty", | |
"category": "Core", | |
"doc": [ | |
"Select a set of or single entities by components or an entity's ID.", | |
"Crafty uses syntax similar to jQuery by having a selector engine to select entities by their components.", | |
"If there is more than one match, the return value is an Array-like object listing the ID numbers of each matching entity. If there is exactly one match, the entity itself is returned. If you're not sure how many matches to expect, check the number of matches via Crafty(...).length. Alternatively, use Crafty(...).each(...), which works in all cases." | |
], |
OlderNewer