Skip to content

Instantly share code, notes, and snippets.

View Maxtermax's full-sized avatar
🏠
Working from home

Esneyder Amin Maxtermax

🏠
Working from home
View GitHub Profile
@urielhdz
urielhdz / main.rb
Last active August 29, 2015 14:16
#RetasProgramacion 1
# Evaluar archivo por cada 3 líneas
# La primera linea representa la cantidad de casos
# Evaluar el crédito C primera linea
# Evaluar la cantidad de elementos l
# Almacenar en un arreglo la cantidad de elementos
def execute_solution lines
lines.size == 3 ? inner_execution(lines) : false
end
@julianduque
julianduque / latamconfs.md
Last active August 29, 2015 14:14
JS Latam Conferences
@aheckmann
aheckmann / mongoose_with_mongo2-2_elemMatch_projection.js
Created September 5, 2012 17:31
using the $elemMatch projection with mongoose
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var assert = require('assert')
console.log('\n===========');
console.log(' mongoose version: %s', mongoose.version);
console.log('========\n\n');
var dbname = 'testing_1085';
mongoose.connect('localhost', dbname);
@christopherscott
christopherscott / ExcelToJsDate.js
Created May 24, 2012 16:40
Convert Excel date values to JavaScript date objects
// Convert Excel dates into JS date objects
//
// @param excelDate {Number}
// @return {Date}
function getJsDateFromExcel(excelDate) {
// JavaScript dates can be constructed by passing milliseconds
// since the Unix epoch (January 1, 1970) example: new Date(12312512312);