Skip to content

Instantly share code, notes, and snippets.

View alejandrolechuga's full-sized avatar
🤯
Focusing

neptuno alejandrolechuga

🤯
Focusing
View GitHub Profile
<!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;;
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) {
@alejandrolechuga
alejandrolechuga / app.js
Last active December 16, 2015 08:39
example
define([
'jquery',
'bootstrap',
'underscore',
'backbone',
'router',
'views/MyView'
], function (
// Libraries
// 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;
/**
* CUPRBC
*/
var CUPRBC = function () {
var articulos = [
'DE'
, 'DEL'
, 'LOS'
, 'LA'
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) {
<!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">
// 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);
$(function() {
console.log("hey");
console.log("whatsup");
});
(function(number){
console.log(number); // 2
number = 1;
console.log(arguments[0]); // 1
}(2));
(function(number){
"use strict";
console.log(number); // 2
number = 1;