- get a valid ttf file, or assets like this one
- get alphabet, for example:
const s = ""; for(let i=0; i < 76; i++1){ if(i % 16 === 0) s += "\n"; s += String.fromCharCode(47 + i);
}
const s = "";
for(let i=0; i < 76; i++1){
if(i % 16 === 0) s += "\n";
s += String.fromCharCode(47 + i);
}
recipe(muffin). | |
recipe('chickpea soup'). | |
recipe(tiramisu). | |
recipe(pancakes). | |
recipe(latkes). | |
recipe(gazpacho). | |
contains(blueberries, muffin). | |
contains(milk, muffin). | |
contains(butter, muffin). |
$ brew install imagemagick
# Put *unversioned* requirements in `requirements-to-freeze.txt` as described below. | |
# `requirements.txt` will be automatically generated from `pip freeze` | |
# https://www.kennethreitz.org/essays/a-better-pip-workflow | |
venv/bin/activate: requirements-to-freeze.txt | |
rm -rf venv/ | |
test -f venv/bin/activate || virtualenv -p $(shell which python3) venv | |
. venv/bin/activate ;\ | |
pip install -Ur requirements-to-freeze.txt ;\ | |
pip freeze | sort > requirements.txt |
/* | |
Example of how to create a view that has rounded corners and a shadow. | |
These cannot be on the same layer because setting the corner radius requires masksToBounds = true. | |
When it's true, the shadow is clipped. | |
It's possible to add sublayers and set their path with a UIBezierPath(roundedRect...), but this becomes difficult when using AutoLayout. | |
Instead, we a containerView for the cornerRadius and the current view for the shadow. | |
All subviews should just be added and constrained to the containerView | |
*/ | |
import UIKit |
//: Playground - noun: a place where people can play | |
import UIKit | |
import PlaygroundSupport | |
extension String { | |
func getUnicodeCodePoints() -> [String] { | |
return unicodeScalars.map { "U+" + String($0.value, radix: 16, uppercase: true) } | |
} | |
} |
library(tidyverse) | |
# Data is downloaded from here: | |
# https://www.kaggle.com/c/digit-recognizer | |
kaggle_data <- read_csv("~/Downloads/train.csv") | |
pixels_gathered <- kaggle_data %>% | |
mutate(instance = row_number()) %>% | |
gather(pixel, value, -label, -instance) %>% | |
extract(pixel, "pixel", "(\\d+)", convert = TRUE) |
#Tutorial: How to connect your Cloud9 and GitHub accounts via ssh
To avoid having to enter your username and password EVERY-SINGLE-TIME you push, follow these step-by-step instructions.
#####2. Paste your C9 ssh key into your GitHub account