- node.js
- Installation paths: use one of these techniques to install node and npm without having to sudo.
- Node.js HOWTO: Install Node+NPM as user (not root) under Unix OSes
- Felix's Node.js Guide
- Creating a REST API using Node.js, Express, and MongoDB
- Node Cellar Sample Application with Backbone.js, Twitter Bootstrap, Node.js, Express, and MongoDB
- JavaScript Event Loop
- Node.js for PHP programmers
#!/bin/bash | |
RANDOM_URL=http://www.random.org/integers/?num=1\&min=1\&max=100\&col=1\&base=10\&format=plain\&rnd=new | |
RND_NUMBER=$(curl $RANDOM_URL) | |
MESSAGE=$RND_NUMBER | |
USERNAME="random.org" | |
CHANNEL="#random" | |
PAYLOAD="payload={\"channel\": \"$CHANNEL\", \"username\": \"$USERNAME\", \"text\": \"$MESSAGE\"}" |
{ | |
// Make folders in sidebar bold | |
"bold_folder_labels": false, | |
// Nicer caret animation | |
"caret_style": "phase", | |
// Set colorscheme | |
"color_scheme": "Packages/Theme - Spacegray/base16-ocean.dark.tmTheme", |
module Jekyll | |
class Pagination < Generator | |
def generate(site) | |
end | |
end | |
class CategoryPages < Generator | |
safe true |
controllers.controller('MainCtrl', function($scope, $location, Facebook, $rootScope, $http, $location, Upload, Auth, User, Question, Category, Serie, Record, Location, Popup, Process, Card, Question) { | |
$scope.$on('authLoaded', function() { | |
$scope.isExpert($scope.main.serieId); | |
$scope.isMember($scope.main.serieId); | |
}); | |
$scope.loadAuth = function() { | |
Auth.load().success(function(data) { | |
$scope.main.user = data.user; | |
$scope.$broadcast("authLoaded"); |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>BaseViewModel.js specs</title> | |
<link rel="stylesheet" type="text/css" href="../node_modules/mocha/mocha.css"> | |
</head> | |
<body> | |
<div id="mocha"></div> | |
<script src="../node_modules/mocha/mocha.js"></script> |
tim@touchsmart:~/Code$ nvm use v0.11.2-generators | |
Now using node v0.11.2-generators | |
tim@touchsmart:~/Code$ node --harmony testgen.js | |
<Buffer 76 61 72 20 66 73 20 3d 20 72 65 71 75 69 72 65 28 27 66 73 27 29 3b 0a 66 75 6e 63 74 69 6f 6e 20 72 65 61 64 46 69 6c 65 28 70 61 74 68 2c 20 65 6e 63 ...> | |
Sleeping for 2000ms... | |
Done |
We have moved: https://github.com/magnetikonline/linuxmicrosoftievirtualmachines
Due to the popularity of this Gist, and the work in keeping it updated via a Gist, all future updates will take place at the above location. Thanks!
I'm having trouble understanding the benefit of require.js. Can you help me out? I imagine other developers have a similar interest.
From Require.js - Why AMD:
The AMD format comes from wanting a module format that was better than today's "write a bunch of script tags with implicit dependencies that you have to manually order"
I don't quite understand why this methodology is so bad. The difficult part is that you have to manually order dependencies. But the benefit is that you don't have an additional layer of abstraction.