This file contains hidden or 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/zsh | |
gs -dSAFER -dBATCH \ | |
-dNOPAUSE -dNOCACHE -sDEVICE=pdfwrite \ | |
-sColorConversionStrategy=CMYK \ | |
-dProcessColorModel=/DeviceCMYK \ | |
-sOutputFile=$2 \ | |
$1 |
This file contains hidden or 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}" |
This file contains hidden or 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 hidden or 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" |
OlderNewer