- 4+ oz of ginger (chopped roughly or smashed w mortar and pestle. no need to peel.)
- 1/2 cup sugar (can use white, turbinado, or light brown)
- 2 cups cold water
- Some flavs (e.g. lime/lemon juice + rinds, bay leaves, cayenne peppercorns, turmeric, etc.)
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
#!/bin/bash | |
# TO USE: | |
# 1. install imagemagick | |
# 2. place this file in a directory full of .tif files to convert | |
# 3. in the terminal, navigate into the directory of images and run $ `bash sudan_photo_resizer.sh` | |
# NOTE: | |
# image filenames CANNOT include whitespace | |
# for best results, use snake_case naming with no capitalization. |
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
$(document).ready(function() { | |
$('input#search').on('keyup', function () { | |
var resultdiv = $('#results'); | |
// Get query | |
var query = $(this).val(); | |
// Search for it | |
var result = idx.search(query); | |
// Show results | |
resultdiv.empty(); | |
for (var item in result) { |
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
from os import path | |
from glob import glob | |
from tqdm import tqdm | |
import time | |
from pyPdf import PdfFileWriter, PdfFileReader | |
def find_ext(dr, ext): | |
return glob(path.join(dr,"*.{}".format(ext))) | |
files = find_ext("pdfs","pdf") |
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
TIFF_DIR="tiffs" | |
if [ ! -d "${TIFF_DIR}" ]; | |
then | |
mkdir ${TIFF_DIR} | |
fi | |
for JPG in *.jpg; do | |
TIFF="$(basename ${JPG} .jpg).tiff" | |
convert -compress none ${JPG} ${TIFF} |
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 'faker' | |
require 'csv' | |
require 'yaml' | |
task :fake_data do | |
I18n.enforce_available_locales = false | |
Dir.mkdir('_data') unless File.exists?('_data') | |
collection_names = [] | |
3.times do # 3 csv files | |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# to use forwarded_port, serve jekyll with --host 0.0.0.0 | |
Vagrant.configure("2") do |config| | |
config.vm.box = "marii/wax" | |
config.vm.box_version = "0.0.1" | |
config.vm.network "forwarded_port", guest: 4000, host: 4000 | |
config.vm.provider "virtualbox" do |v| | |
v.memory = 4096 |
Bootcamp Site: https://columbiaswc.github.io/2018-08-27-Columbia-B/
Instructors:
- Cesar Arias – [email protected]
- Go to http://dhbox.org/
- Sign up for an account for 1 week
- When you're logged in, click your username in the top right corner and select Apps
- Near the top, navigate to the 'Command Line' tab
- Type in your username and hit enter.
- When prompted, type in your password and hit enter. The cursor will not move when you type.
- Once you're logged in to the shell, enter the following commands, hitting enter after each one:
OlderNewer