Skip to content

Instantly share code, notes, and snippets.

View amejiarosario's full-sized avatar
🎯
Think big, start small, learn fast!

Adrian Mejia amejiarosario

🎯
Think big, start small, learn fast!
View GitHub Profile
@amejiarosario
amejiarosario / tmux-cheatsheet.markdown
Last active December 15, 2020 16:44 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet v1.1.0

start new:

tmux

start new with session name:

tmux new -s myname
@amejiarosario
amejiarosario / introrx.md
Created March 4, 2020 00:36 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@amejiarosario
amejiarosario / .block
Last active April 13, 2017 20:40 — forked from mbostock/.block
Force-Directed Web Worker
license: gpl-3.0
height: 960
@amejiarosario
amejiarosario / .block
Last active April 10, 2017 20:35 — forked from steveharoz/.block
d3-force testing ground
license: gpl-3.0
height: 1030
scrolling: yes
@amejiarosario
amejiarosario / .block
Created November 9, 2016 22:00 — forked from mbostock/.block
Molecule
license: gpl-3.0
@amejiarosario
amejiarosario / .block
Created November 8, 2016 19:18 — forked from mbostock/.block
Blocks Graph
license: gpl-3.0
height: 960
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
.box1 { background: #1abc9c; }
.box2 { background: #3498db; }
.box3 { background: #9b59b6; }
// Count number of stylesheets files and selectors (per file and total)
(function countCSSRules() {
var results = '',
log = '',
total = 0;
if (!document.styleSheets) {
console.log('No stylesheets found!');
return;
} else {
@amejiarosario
amejiarosario / deploy.rake
Last active May 10, 2016 15:01 — forked from njvitto/deploy.rake
Rakefile to deploy and rollback to Heroku in two different environments (staging and production) for the same app, tail logs, ps, and more!
# rake deploy # Push app to heroku:production, migrate, restarts and tail logs
# rake deploy:production # Push app to production, migrate, restarts, tag and tail logs
# rake deploy:production:config # production config
# rake deploy:production:console # production console
# rake deploy:production:logs # production logs
# rake deploy:production:ps # production ps
# rake deploy:production:releases # production releases
# rake deploy:staging # Push app to staging, migrate, restarts, tag and tail logs
# rake deploy:staging:config # staging config
# rake deploy:staging:console # staging console
/**
* Module dependencies
*/
var express = require('express');
var fs = require('fs');
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
// img path