Skip to content

Instantly share code, notes, and snippets.

View arpunk's full-sized avatar
🚴‍♂️

Ricardo Lanziano arpunk

🚴‍♂️
View GitHub Profile
@cronopio
cronopio / Readme.md
Created April 5, 2011 22:32
Script de migracion mas cercanos a quedar en tools para la migracion

##Orden de Ejecucion de scripts

Despues de tener volcada la base de datos de MySQL en archivos CSV uno por cada tabla, con los parametros adecuados y dentro de un directorio que debera ser por el momento probando-csv (en importar.sh:3 puede cambiarlo). Se corren los siguientes scripts.

  • importar.sh Usa mongoimport para restaurar los CSV en una database de mongoDB. La variable d indica el nombre del directorio.
  • completo.js Transforma los datos al nuevo modelo y los sanea.
  • quitarNull.js Elimina todos los NULLs de los valores de referencia
  • agregarCeros.js Agrega los ceros a la izquierda que tanto les gusta en el IRA
  • correccionesFinales.js Hacer la nueva version igualita a la vieja. :-(
@cronopio
cronopio / README.md
Created June 10, 2011 01:22 — forked from ucnv/README.md
var app = express.createServer();
app.get('/hello', function(req, res){
res.send('Hi there!');
});
app.listen(3000);
// ab -n 8000 -c 40 http://local:3000/hello (no keep-alive)
@davglass
davglass / info.txt
Created August 27, 2011 03:40
YUI Loader in Node without YUI
wget http://yui.yahooapis.com/3.4.0/build/yui/yui-min.js
mkdir vendor
wget http://documentcloud.github.com/backbone/backbone-min.js -O vendor/backbone.js
wget http://code.jquery.com/jquery-1.6.2.min.js -O vendor/jquery.js
@aemkei
aemkei / LICENSE.txt
Created October 5, 2011 17:06 — forked from 140bytes/LICENSE.txt
JS ASCII Logo - 140byt.es
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
// Here is a proposal for minimalist JavaScript classes, humbly offered.
// There are (at least) two different directions in which classes can be steered.
// If we go for a wholly new semantics and implementation, then fancier classical
// inheritance can be supported with parallel prototype chains for true inheritance
// of properties at both the class and instance level.
// If however, we keep current JavaScript prototype semantics, and add a form that
// can desugar to ES3, things must necessarily stay simpler. This is the direction
// I'm assuming here.
@oroce
oroce / router.js
Created January 24, 2012 19:39
Backbone.Router and pushState
define( [
"jquery",
"underscore",
"backbone",
"models/home",
"views/home",
"models/item",
"views/item"
], function( $, _, Backbone, HomeModel, HomeView, ItemModel, ItemView ){
@kuenishi
kuenishi / beam.rst
Created July 26, 2012 16:22
Erlang BEAM memo

BEAM

assemble

$ erlc -S test.erl
@gburd
gburd / async_nif.h
Last active October 3, 2023 05:12
Technique for running Erlang NIFs functions asynchronously, not on scheduler threads.
/*
* async_nif: An async thread-pool layer for Erlang's NIF API
*
* Copyright (c) 2012 Basho Technologies, Inc. All Rights Reserved.
* Author: Gregory Burd <greg@basho.com> <greg@burd.me>
*
* This file is provided to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
@slfritchie
slfritchie / presentation.md
Created March 18, 2014 09:22
Erlang tracing, for the Riak source code reading series, 2014-03-18, Tokyo, Japan

Erlang Tracing: more than you wanted to know

Rough Outline

  • What can be traced?
  • How can trace events be specified?
  • "match specifications": twisty passages, all alike
  • WTF, can I just use DTrace and drink my coffee/beer/whisky in peace?
  • Trace delivery mechanisms: pick one of two