Skip to content

Instantly share code, notes, and snippets.

(function($){
this.itemList = {
options: {
spaceID: null,
spaceType: null,
displayCount: null,
totalItemsCount: null
},
special[ str_hashchange ] = $.extend( special[ str_hashchange ], {
// Called only when the first 'hashchange' event is bound to window.
setup: function() {
// If window.onhashchange is supported natively, there's nothing to do..
if ( supports_onhashchange ) { return false; }
// Otherwise, we need to create our own. And we don't want to call this
// until the user binds to the event, just in case they never do, since it
// will create a polling loop and possibly even a hidden Iframe.
{ "dependencies" : {
"express" : "https://github.com/cayasso/express/tarball/master",
"express-resource" : "~0.2.3",
"jade" : ">= 0.0.1",
"mongoose" : "~2.4.1",
"passport" : "~0.1.3"
},
"engines" : { "node" : ">=0.4.7 <0.7.0" },
"name" : "ObituariosCR",
"version" : "0.0.1"
jbrumle-441b97:obituarioscr jebrumle$ git push heroku master
Counting objects: 646, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (580/580), done.
Writing objects: 100% (646/646), 495.76 KiB, done.
Total 646 (delta 44), reused 0 (delta 0)
-----> Heroku receiving push
-----> Removing .DS_Store files
-----> Fetching custom build pack... done
@cayasso
cayasso / DOMtraversal.html
Created January 22, 2012 08:44
My custom getElementById
<!DOCTYPE html>
<html>
<head>
<title>BFS</title>
</head>
<body>
<div>
<em>
@cayasso
cayasso / getById
Created January 22, 2012 09:00
My Get By ID
<!DOCTYPE html>
<html>
<head>
<title>BFS</title>
</head>
<body>
<div>
<em>
// con solo prototype extend
var Persona = Class.extend('Persona', {
saludar: function () {
return 'my method';
}
})
var adulto = Persona();
console.log(adulto.saludar()); // my method
@cayasso
cayasso / toolbar.html
Created June 13, 2012 20:29
jsFunction
<html>
<head>
<script>
// Assuming this is the namespace root for myatc
var myatc = {};
// then somewhere global
myatc.saveCar = function () {
@cayasso
cayasso / jsfunction.html
Created June 13, 2012 21:13
with execute
<html>
<head>
<script>
// Assuming this is the namespace root for myatc
var myatc = {};
// then somewhere global
myatc.saveCar = function () {
@cayasso
cayasso / app.js
Created October 14, 2012 05:53 — forked from bobbydavid/app.js
socket.io in Express 3
var express = require('express')
, http = require('http')
, connect = require('connect')
, io = require('socket.io');
var app = express();
/* NOTE: We'll need to refer to the sessionStore container later. To
* accomplish this, we'll create our own and pass it to Express
* rather than letting it create its own. */
var sessionStore = new connect.session.MemoryStore();