Skip to content

Instantly share code, notes, and snippets.

View nmicht's full-sized avatar

Michelle Torres nmicht

View GitHub Profile
@nmicht
nmicht / latency.txt
Created June 21, 2018 13:21 — forked from jboner/latency.txt
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD
@nmicht
nmicht / mogrify
Last active December 17, 2018 21:39
Mogrify to add brand on photos
mogrify -path ./branded -format png -draw 'image over 400,2200 1850,203.34 "./logo.png"' *
@nmicht
nmicht / *RC-application.md
Last active March 10, 2019 02:25
Application as Recursers for the Resource Center Winter 2, 2019

Recurse Center Application

The Recurse Center runs educational programming retreats in New York City. The retreats are free, self-directed, project based, and for anyone who wants to get dramatically better at programming.

This gist includes my application and code for the pair programming interview

@nmicht
nmicht / tic-tac-toe.php
Created December 19, 2018 19:59
A Tic-Tac-Toe game for any square board and any number of players
<?php
class TicTacToe {
/**
* Board for the game
* @var array
*/
private $board = [];
/**
@nmicht
nmicht / .npm-init.js
Last active April 5, 2024 12:22
Script to override the npm init. Prompts for the normal stuff, but also creates a github repository
/**
* This script can be used to override the current behave of `npm init`
* Can have a set of "defaults" values and also, will include functionality
* to create a Github repository for the project.
*
* You can set it:
* npm config set init-module YOUR-PATH/.npm-init.js
*
* Note: This is a work in progress, so there are some failures, mostly because
* npm is using promzard for the prompts, and it doesn't have async methods, so
@nmicht
nmicht / emoticons.md
Last active January 10, 2019 17:18 — forked from rxaviers/gist:7360908
Lista completa de emoticons para github markdown

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@nmicht
nmicht / recursos-para-aprender.md
Last active April 2, 2024 14:05
Recursos para aprender
@nmicht
nmicht / *RC-Notes.md
Last active March 12, 2019 00:16
Herramientas, paquetes y cositas interesantes para usar. Todo aprendido durante mi tiempo en RC

Recurse Center W2'19 notes

This are my notes during the W2'19 at Recurse Center

  • Tools A file with a list of tools, software and links to interesting development things.
  • Projects A list with interesting projects created by recurses.
@nmicht
nmicht / .htaccess
Last active February 17, 2019 22:00
Apache htaccess to list files with a beauty format
# ENABLE DIRECTORY
# Docs: https://httpd.apache.org/docs/2.4/mod/mod_autoindex.html
Options +Indexes
IndexOptions IgnoreCase FancyIndexing FoldersFirst HTMLTable NameWidth=* SuppressHTMLPreamble ScanHTMLTitles SuppressLastModified DescriptionWidth=*
# SPECIFY HEADER FILE
HeaderName /header.html
# SPECIFY FOOTER FILE
ReadmeName /footer.html
@nmicht
nmicht / *Docker-Flask.md
Last active August 23, 2022 02:18
Docker files for flask app

Docker for flask app

  1. Create a Dockerfile with all the specs for your image
  2. Create a docker-compose.yml file for the basic setup
  3. Create docker-compose.env.yml files for the specific rules for each environment

To build the image execute:
docker-compose -f docker-compose.yml -f docker-compose.env.yml build

To run the container execute: