Skip to content

Instantly share code, notes, and snippets.

View andru255's full-sized avatar
🇵🇪
:)

Andrés Muñoz andru255

🇵🇪
:)
View GitHub Profile
@jansanchez
jansanchez / gist:7362124
Last active March 4, 2016 22:07
Install firefox in crunchbang

Install firefox in crunchbang

###first, remove iceweasel

sudo apt-get remove iceweasel

###Open sources.list

@springmeyer
springmeyer / node-c++-perf.md
Last active April 27, 2016 15:06
Node.js C++ addon performance tips

Don't use String::NewSymbol

String::NewSymbol is recommended by v8 docs for wrapping string data that represent commonly used keys. The reason is for lookups to be faster (https://bugs.webkit.org/show_bug.cgi?id=104082#c0). But in testing this is actually usually a deoptimization because creating new symbols is slower than strings. This is confirmed by this Node.js core commit Remove v8::String::NewSymbol() entirely: https://github.com/joyent/node/commit/f674b09f40d22915e15b6968aafc5d25ac8178a2. More details: https://bugs.webkit.org/show_bug.cgi?id=94574#c10

Typed Arrays

can be done in node.js like nodejs/node-v0.x-archive#4201 (comment)

other resources:

@jlongster
jlongster / gruntfile.js
Created December 19, 2013 20:38
gruntfile
var fs = require('fs');
var path = require('path');
var sweet = require('sweet.js');
module.exports = function(grunt) {
grunt.initConfig({
sweetjs: {
options: {
modules: ['es6-macros'],
sourceMap: true,
@donokuda
donokuda / vim-notes-20140115.md
Created January 15, 2014 17:11
Vim Meetup Talk notes - thoughtbot - 01/15/2014
@jansanchez
jansanchez / gist:8531593
Last active January 3, 2016 22:59
generar archivo comprimido .tar.gz incluyendo sus rutas de acceso

Comprimir archivos incluyendo sus rutas de acceso

Compress

tar -zcvf nombreDelArchivo.tar.gz public/js/modules/all.js frontend/js/application/yoson.js

UnCompress

@jansanchez
jansanchez / gist:8720303
Created January 30, 2014 21:31
Agregando un tag de git al proyecto

Agregando un tag de git al proyecto

Creando tag

git tag -a v1.6 -m "add jshint"

subiendo tag

<snippet>
<content><![CDATA[
/**
* ${2:Descripción del módulo}
* @submodule ${3:nombre_del_modulo}
* @main ${1:default}
* @author ${4:Nombre del Autor}
*/
yOSON.AppCore.addModule("${3:nombre_del_modulo}", function(Sb){
@anareyna
anareyna / addCoffee.sublime-snippet
Last active May 10, 2016 19:23
Estructura de módulo en coffescript
<snippet>
<content><![CDATA[
###
${2:Module description}
@class ${1:module_name}
@main ${3:flux/account}
@author ${4:Ana Reyna}
###
yOSON.AppCore.addModule "${1:module_name}", (Sb) ->
dom = {}
@elidickinson
elidickinson / html_email_buttons_1.html
Last active September 3, 2025 18:27
HTML email buttons that work
<div>
<!--[if mso]>
<v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="http://www.EXAMPLE.com/" style="height:40px;v-text-anchor:middle;width:300px;" arcsize="10%" stroke="f" fillcolor="#d62828">
<w:anchorlock/>
<center style="color:#ffffff;font-family:sans-serif;font-size:16px;font-weight:bold;">
Button Text Here!
</center>
</v:roundrect>
<![endif]-->
<![if !mso]>
@jdewit
jdewit / vim74_lua
Last active July 21, 2025 16:23
Installing vim 7.4 with lua on Ubuntu 12.04
sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-common vim-gui-common
sudo apt-get build-dep vim-gnome
sudo apt-get install liblua5.1-dev luajit libluajit-5.1 python-dev ruby-dev libperl-dev libncurses5-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev
sudo rm -rf /usr/local/share/vim
sudo rm /usr/bin/vim