tmux
This cheatsheet is based on some posts and other cheatsheets I've used while learning how to use tmux:
Session Management
| Command | Shortcut | Description |
#!/usr/bin/env ruby | |
# Convert the entries from a CSV with headers | |
# - post_title | |
# - post_date (must include year-month-day) | |
# - post_content | |
# into markdown posts with Liquid's front matter and the correct naming | |
# structure. Reminder that valid HTML posts are also valid markdown. | |
require "csv" |
# Parse a SQL file exported from a WordPress site containing the posts backup, | |
# generally named `wphf_posts.sql`, and create a file `wphf_posts.sql.csv` | |
# containing the data in CSV format. | |
# | |
# I could've used a proper sql parser but was in the mood to write some shitty code lol | |
require 'csv' | |
WP_POSTS_SQL_FILE = ARGV[0] | |
WP_POSTS_CSV_FILE = WP_POSTS_SQL_FILE + ".csv" |
require 'fileutils' | |
require 'nokogiri' | |
require 'open-uri' | |
require 'pp' | |
require 'typhoeus' | |
SUBJECTS_RE = /deep|deeply|neural|convolutional|network|recurrent|lstm|object recognition|object classification|object detection|image classification/ | |
def paper_list_url(issue) | |
"https://papers.nips.cc/book/advances-in-neural-information-processing-systems-#{issue}-#{1987 + issue}" |
#!/usr/bin/zsh | |
gs -dSAFER -dBATCH \ | |
-dNOPAUSE -dNOCACHE -sDEVICE=pdfwrite \ | |
-sColorConversionStrategy=CMYK \ | |
-dProcessColorModel=/DeviceCMYK \ | |
-sOutputFile=$2 \ | |
$1 |
./faces/kawamura/kawamura_straight_happy_open_4.pgm | |
./faces/phoebe/phoebe_up_sad_open_4.pgm | |
./faces/saavik/saavik_left_sad_sunglasses_4.pgm | |
./faces/sz24/sz24_right_angry_open_4.pgm | |
./faces/tammo/tammo_left_angry_sunglasses_4.pgm | |
./faces/bpm/bpm_up_neutral_open_4.pgm | |
./faces/kawamura/kawamura_up_angry_open_4.pgm | |
./faces/choon/choon_right_happy_sunglasses_4.pgm | |
./faces/saavik/saavik_right_sad_sunglasses_4.pgm | |
./faces/ch4f/ch4f_straight_angry_open_4.pgm |
This cheatsheet is based on some posts and other cheatsheets I've used while learning how to use tmux:
| Command | Shortcut | Description |
Autor: Guilherme Garnier
globo.com
Plataforma de vídeos: requisições pra diabo + vídeos pra diabo
Monolito: projeto Rails imenso blabla, eventualmente fodeu tudo para manter
Vários pontos interessantes
Circuit Breaker: ver gem; ver post do Martin Fowler
github: cap_blue_green_deploy
-- Some RNGs for getting to play with Lua. | |
-- | |
-- Carlos Agarie <carlos@onox.com.br> | |
-- | |
-- Public domain. | |
-- N(mean; std^2). | |
function gauss(mean, std) | |
if std <= 0.0 then error("standard deviation must be positive!") end |
# Create a method `has_<library>?` on Module that requires the library and | |
# return a boolean indicating if the library is available. | |
# | |
# @param library [String] The library name. | |
# @return [Boolean] Whether the library is available or not. | |
def create_has_library(library) #:nodoc: | |
define_singleton_method("has_#{library}?") do | |
cv = "@@#{library}" | |
unless class_variable_defined? cv | |
begin |