- Mod + Shift + Enter -> Open console
- Mod + Space -> Change tiling mode
- Mod + j & Mod + k -> Move focus between windows
- Mod + Shift + c -> Close the focused window
- Mod + . & Mod + , -> Control the number of windows displayed in the master pane on the left
- Mod + Enter -> Move the focused window to the master pane on the left
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Pokémon Buttons for each type</title> | |
<link rel="stylesheet" type="text/css" href="./types.css" /> | |
</head> | |
<body> | |
<div class='container'> | |
<span class="type normal left">normal</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"normal": { | |
"normal": 1, | |
"fire": 1, | |
"water": 1, | |
"electric": 1, | |
"grass": 1, | |
"ice": 1, | |
"fighting": 1, | |
"poison": 1, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#------------------------------------------------------------------------------ | |
# QuotesGenerator | |
# A Jekyll plugin to generate a quotes/index.html page based on a Tumblr's | |
# account. | |
# | |
# You need a quotes.json file inside a SITE_ROOT/_data/ directory to use this | |
# plugin. It must use the same format as Tumblr's API v2. | |
# | |
# Available _config.yml settings: | |
# - text_size_limit: Maximum size of a used quote. Default to 1000. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby -w | |
require 'open-uri' | |
require 'uri' | |
require 'nokogiri' | |
DEFAULT_DIR = "/Users/carlosagarie/torrents" | |
CATEGORY = 1 # Anime. | |
# Regular expressions and constants for extraction. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
** queue-threadsafe.c | |
** | |
** A thread-safe (for 2 threads) implementation of a queue. Based on the | |
** implementation from the book Embedded Systems, by Jonathan W. Valvano, | |
** chapter 3, page 130. | |
*/ | |
#include <stdlib.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use Homebrew and be happy. | |
brew update | |
brew install opencv | |
# Give the correct pathnames. Of course, `2.4.3` is the current version at this time, change it accordingly. | |
gem install ruby-opencv -- --with-opencv-lib=/usr/local/Cellar/opencv/2.4.3/lib \ | |
--with-opencv-include=/usr/local/Cellar/opencv/2.4.3/include/opencv \ | |
--with-opencv-include=/usr/local/Cellar/opencv/2.4.3/include/opencv2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}" |
NewerOlder