Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View julianduque's full-sized avatar
😈
Heroku DevRel

Julián Duque julianduque

😈
Heroku DevRel
View GitHub Profile
@rvagg
rvagg / sanitize-gcal-bookmarklet.js
Created June 27, 2016 23:06
Bookmark to sanitize Google Calendar view for screenshotting
javascript:[].forEach.call(document.querySelectorAll('.evt-lk,.cbrdcc,.cloc'), (e) => e.innerHTML = ''); [].forEach.call(document.querySelectorAll('.cbrd, .rb-n'), (e) => { e.style.backgroundColor = '#9ea0ff'; e.style.borderColor = '#3d40d9'; e.style.color = '#1d1d1d' }); [].forEach.call(document.querySelectorAll('.rb-ni > div'), (e) => e.style.borderColor = 'transparent #9ea0ff'); [].forEach.call(document.querySelectorAll('.cbrd .mask'), (e) => e.parentNode.removeChild(e)); void(0)
@camilonova
camilonova / script.js
Last active June 4, 2016 22:53
Utilizando la sucursal virtual de bancolombia es frustrante tener que escribir la clave con el teclado virtual y ver esa alerta del navegador. Pega el contenido de este script en la consola del navegador para que puedas escribir la clave con el teclado. Ver en acción: http://giphy.com/gifs/l0K4hGF22s2AojfAA
function blockEnter(evt) {return true;}
function validarNoUsarTecladoReal_OnKeyPress(_object){return false;}
@naranjitagolden
naranjitagolden / nodeschoolgirls.md
Last active March 30, 2016 03:49
Review of NodeSchool Girls Med experience for the nodeschool Newsletter

Hi there! In November 2014, We began with the idea of create a Node SchoolGirls chapter in Medellin - Colombia with the help and encouragement of MedellinJS community. The objective was to spread Node knowledge among women and it resulted in a very interesting experiment.

We have learnt a lot! at the beginning we only used the self guide workshop, but the frustration and struggle to finish it was so high, that the outcome was a lot of desertions. We started with 25 assistants, between teenagers, beginners and girls from different backgrounds like, biology, artistics, psychology, senior engineers that wanted to catch up with the new technologies, among others. After the second workshop (and after a lot of tears and frustrating faces), 8 girls remained, and the other ones never came back even with coaching and motivation attempts.

![Primeras reuniones del año Javascripting - Learnyounode](https://cldup.com/YD0rjo4JxY.jpg "Primeras versiones del año Javascripting -

@thlorenz
thlorenz / update_to_nan_v2.0.x.sh
Last active October 13, 2016 08:04
Script to update Node.js addons to work with nan 2.0.x and thus with iojs v3.x (gets you 90% there)
#!/bin/bash
replacements=(
"NanAsyncWorker/Nan::AsyncWorker"
"NanAsyncQueueWorker/Nan::AsyncQueueWorker"
"NanCallback/Nan::Callback"
"NanSetInternalFieldPointer/Nan::SetInternalFieldPointer"
"NanGetInternalFieldPointer/Nan::GetInternalFieldPointer"
"NanNewBufferHandle\\(([^;]+);/Nan::NewBuffer(\\1.ToLocalChecked();"
"(NanNew(<(v8::)?String>)?\\(\"[^\"]*\"\\))/\\1.ToLocalChecked()"
@rauchg
rauchg / effective-es6.md
Last active July 11, 2023 09:38
Writing ES6 today, effectively.

Effective transpiling of ES6

After publishing my article on ECMAScript 6, some have reached out to ask how I exactly I make it all work.

I refrained from including these details on the original post because they're subject to immiment obsoletion. These tools are changing and evolving quickly, and some of these instructions are likely to become outdated in the coming months or even weeks.

The main tool

When evaluating the available transpilers, I decided to use 6to5, which has recently been renamed to Babel. I chose it based on:

@yujikiriki
yujikiriki / gist:65bf00d105613e203184
Created December 22, 2014 19:09
Referencias a tolerancia a fallas
The bizantine generals problem - Lamport
Why Do Computers Stop and What Can Be Done About It? - Jim Gray
Why do Internet services fail, and what can be done about it? - Oppenheimer
Lightweight Recoverable Virtual Memory - M. Satyanarayana
Principles of Antifragile Software - Martin Monperrus
Building on Quicksand - Helland, Campbell
Crash-Only Software - Candea, Fox
Fault Tolerance via Idempotence - Ramalingam, Vaswani
Fundamental Concepts of Dependability - Avizienis, Laprie, Randell
How Complex Systems Fail - Richard I. Cook, MD
@mathisonian
mathisonian / index.md
Last active March 22, 2023 05:31
requiring npm modules in the browser console

demo gif

The final result: require() any module on npm in your browser console with browserify

This article is written to explain how the above gif works in the chrome (and other) browser consoles. A quick disclaimer: this whole thing is a huge hack, it shouldn't be used for anything seriously, and there are probably much better ways of accomplishing the same.

Update: There are much better ways of accomplishing the same, and the script has been updated to use a much simpler method pulling directly from browserify-cdn. See this thread for details: mathisonian/requirify#5

inspiration

@airportyh
airportyh / jsconf_slides_codes_and_notes.md
Last active June 19, 2017 20:51
JSConf 2014 Slides, Codes and Notes.

JSConf Slides, Codes and Notes

These are all the JSConf 2014 slides, codes, and notes I was able to cull together from twitter. Thanks to the speakers who posted them and thanks to @chantastic for posting his wonderful notes.

Modular frontend with NPM - Jake Verbaten (@Raynos)

@trevnorris
trevnorris / perf-flame-graph-notes.md
Last active December 24, 2023 05:25
Quick steps of how to create a flame graph using perf

The prep-script.sh will setup the latest Node and install the latest perf version on your Linux box.

When you want to generate the flame graph, run the following (folder locations taken from install script):

sudo sysctl kernel.kptr_restrict=0
# May also have to do the following:
# (additional reading http://unix.stackexchange.com/questions/14227/do-i-need-root-admin-permissions-to-run-userspace-perf-tool-perf-events-ar )
sudo sysctl kernel.perf_event_paranoid=0