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
# initialization file (not found) |
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
// Start MongoDB | |
sudo /etc/init.d/mongod start | |
// Stop MongoDB | |
sudo /etc/init.d/mongod stop | |
// Start Naught node worker | |
naught start --worker-count 1 server.js | |
// Stop Naught node worker |
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
div br { | |
display: none; | |
} |
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
// Ik probeer mijn betaande thermo-settings te updaten met de onderstaande variable "settings". | |
// Maar het lukt mij niet om de nieuwe data door te sturen.. | |
// request | |
var setting = { | |
_id: 546fb9f13a9b3e00002a8e77, | |
temp_tracking: true, | |
last_update: Fri Nov 28 2014 08:25:32 GMT+0100 (CET), | |
current_schedule: [ | |
{ _id: '5479a35fc6eacfc1e38bd786', |
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 FS = require('fs'), | |
request = require('request'); | |
function getResults(pathToFile, callback) { | |
FS.readFile(pathToFile, 'utf8', function(err, data) { | |
if (err) return callback(err); | |
var response1, response2; | |
request.post('http://service1.example.com?data=' + data), function(err, response, body) { | |
if(err) return callback(err); |
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 for easy focus color removement | |
@mixin remove-focus-color { | |
outline: none; | |
-webkit-tap-highlight-color: rgba(255, 255, 255, 0); /* mobile webkit */ | |
} |
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 ellipsis() { | |
overflow: hidden; | |
white-space: nowrap; | |
text-overflow: ellipsis; | |
} |
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 word-wrap() { | |
word-break: break-word; | |
-webkit-hyphens: auto; | |
-moz-hyphens: auto; | |
hyphens: auto; | |
} |
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 clearfix { | |
&:after { | |
content:""; | |
display:table; | |
clear:both; | |
} | |
} |