see :
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
hybi-07-12, headers: { host: 'example.com', | |
'sec-websocket-key': 'jjtFcDA0FonXscXj25UuaQ==', | |
'sec-websocket-origin': 'ws://example.com/socket.io/1/websocket/1105054216814116754', | |
'sec-websocket-version': '8', | |
'sec-websocket-protocol': '8', | |
'cache-control': 'max-stale=0', | |
connection: 'Keep-Alive', | |
'x-bluecoat-via': 'DDBD0991AB5F8902' } |
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
hybi-07-12, headers: { host: 'example.com', | |
connection: 'Upgrade', | |
upgrade: 'websocket', | |
'sec-websocket-key': 'FnOFCFGZqujppfHXyivZGA==', | |
'sec-websocket-origin': 'ws://example.com/socket.io/1/websocket/18363555292121194917', | |
'sec-websocket-version': '8', | |
'sec-websocket-protocol': '8' } |
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
; | |
(function(exports, undefined) { | |
angular.module('module.Socket', [], function($provide) { | |
$provide.factory('Socket', ['$rootScope', function socketController($rootScope) { | |
var scope = $rootScope.$new() | |
scope.socket = io.connect('/') | |
scope.send = function(message) { | |
try { | |
var m = JSON.stringify(message) |
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
can use jade | |
can use less / sass | |
watches jade files one level deep | |
watches less / sass files one level deep | |
can start watching new files |
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
/* | |
-------------------------------------------------------------------------------- | |
Copyright (c) 2013 Colingo, Inc. | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT |
-
How can I improve my English?
Sign up at colingo.com and join our daily classes.
-
How do I get started?
Follow the instructions step-by-step available at http://www.colingo.com/gettingstarted
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
function monthsPassed(fromDate,toDate){ | |
return toDate.getMonth() - fromDate.getMonth() + (12 * ( toDate.getFullYear() - fromDate.getFullYear() )) | |
} |
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 express = require('express'); | |
var forms = require('forms'); | |
var csurf = require('csurf'); | |
var collectFormErrors = require('express-stormpath/lib/helpers').collectFormErrors; | |
var stormpath = require('express-stormpath'); | |
var extend = require('xtend'); | |
// Declare the schema of our form: | |
var profileForm = forms.create({ |
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
html | |
head | |
title=title | |
link(href='//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css', rel='stylesheet') | |
body | |
div.container | |
div.page-header | |
h1 My Profile |
OlderNewer