This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Facebook Puzzle: One Day Calendar</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<style> | |
#calendar { | |
overflow: hidden; | |
font-family: "Lucida Sans Unicode","Lucida Grande",Garuda,sans-serif;; |
This file contains hidden or 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 each (object ,fn ) { | |
var fnLength = fn.length, | |
key; | |
console.log(fnLength); | |
if (fnLength === 1) { | |
for (key in object) { | |
fn(object[key]); | |
} | |
} else { | |
for (key in object) { |
This file contains hidden or 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
define([ | |
'jquery', | |
'bootstrap', | |
'underscore', | |
'backbone', | |
'router', | |
'views/MyView' | |
], function ( | |
// Libraries |
This file contains hidden or 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
// Recursive | |
function stringdiff (a, b) { | |
var | |
aLength = arguments[2] || a.length | |
, bLength = arguments[3] || b.length, | |
, cost; | |
// test for degenerate cases of empty strings | |
if (aLength === 0) return aLength; |
This file contains hidden or 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
/** | |
* CUPRBC | |
*/ | |
var CUPRBC = function () { | |
var articulos = [ | |
'DE' | |
, 'DEL' | |
, 'LOS' | |
, 'LA' |
This file contains hidden or 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 = require('http').createServer(handler) | |
, io = require('socket.io').listen(app) | |
, fs = require('fs') | |
app.listen(8080); | |
function handler (req, res) { | |
fs.readFile(__dirname + '/index.html', | |
function (err, data) { | |
if (err) { |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<!-- Nombre de mi pagina --> | |
<title>Chat with WebSockets</title> | |
<!-- Framework de estilos --> | |
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap.min.css"> | |
<!-- Estilos personalizados--> | |
<style type="text/css"> |
This file contains hidden or 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
// Empleado | |
// Esta funcion se ejecuta cuando el Documento esta listo | |
// hey | |
$(function(){ | |
// Obteniendo el elemento form | |
var forma = $("#agregaempleado form"); | |
// Empleados | |
var empleados = new Empleados(); | |
// Imprimiendo forma | |
console.log(forma); |
This file contains hidden or 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() { | |
console.log("hey"); | |
console.log("whatsup"); | |
}); |
This file contains hidden or 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(number){ | |
console.log(number); // 2 | |
number = 1; | |
console.log(arguments[0]); // 1 | |
}(2)); | |
(function(number){ | |
"use strict"; | |
console.log(number); // 2 | |
number = 1; |