Skip to content

Instantly share code, notes, and snippets.

View kevinlin1's full-sized avatar

Kevin Lin kevinlin1

View GitHub Profile
Aardvark
Aardwolf
Albatross
Albertosaurus
Allosaurus
Alligator
Alpaca
Anaconda
Angelfish
Anglerfish
Achroite
Actinolite
Adamite
Adularia
Aegerine
Afghanite
Agate
Agrellite
Ajoite
Albite
Abelsonite
Abenakiite
Abernathyite
Abhurite
Abramovite
Abswurmbachite
Acanthite
Achavalite
Actinolite
Acuminite
@kevinlin1
kevinlin1 / .block
Last active June 18, 2023 18:40
k-d Tree Visualization
license: cc-by-4.0
height: 500
scrolling: no
border: no
@kevinlin1
kevinlin1 / game.py
Last active April 28, 2019 04:01
SemEval command-line game
#!/bin/env python3
"""
Play the STS sentiment evaluation game! Test your ability to predict the gold
standard label for the TSV containing gold labels and sentence pairs.
Try loading the question-question set from SemEval Semantic Textual Similarity.
https://github.com/brmson/dataset-sts
"""
@kevinlin1
kevinlin1 / README.md
Last active November 6, 2019 04:41
Get MapBox Tiles for {Bear,Husky,*}Maps

server/scripts

The data for HuskyMaps consists of two parts: the osm data and the tileset.

OSM Data

The OpenStreetMap data is generated via the BBBike extraction service which uses the osmconvert tool to reduce a massive planet.osm file to a local region.

@kevinlin1
kevinlin1 / StringIsEqualIgnoringLineOrder.java
Last active May 2, 2020 18:45
Hamcrest matcher that checks if the string is as expected, ignoring line order.
import java.util.Arrays;
import org.hamcrest.Description;
import org.hamcrest.Matcher;
import org.hamcrest.TypeSafeMatcher;
public class StringIsEqualIgnoringLineOrder extends TypeSafeMatcher<String> {
private final String expected;
private final String[] expectedLines;
import aiohttp
import asyncio
import io
import pandas as pd
lessons = [
# Ed Lesson IDs
]
token = "" # Ed login token
@kevinlin1
kevinlin1 / SET.java
Last active March 19, 2022 18:43
Send file contents to Python Tutor's Java 8 visualizer: node visualize.js [code file] [stdin file]
class SET<Key extends Comparable<Key>> implements Iterable<Key> {
ST<Key, Boolean> map = new ST<>();
void add(Key key) {
map.put(key, true);
}
boolean contains(Key key) {
return map.contains(key);
}
@kevinlin1
kevinlin1 / canvas_assessment_sync.ipynb
Last active April 2, 2023 00:44
Synchronize Canvas outcomes (learning mastery gradebook) with Ed code challenge grading criteria.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.