Skip to content

Instantly share code, notes, and snippets.

View kevin-chau's full-sized avatar
🌴
On vacation

Kevin Chau kevin-chau

🌴
On vacation
View GitHub Profile
@kevin-chau
kevin-chau / scraper.py
Last active October 13, 2023 04:03
US Forest Service Research Image Library Scraper
import requests
output_dir = "/Volumes/KCHAU'S T5/US Forest Service Research Image Library/"
url_base = 'https://www.fs.usda.gov/rds/imagedb/images/'
# 19677 = total number of images in data base
file_number = 19677
while file_number > 0:
@kevin-chau
kevin-chau / editor.html
Created April 5, 2022 21:46
Chess board editor for chessboardjs
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>chessboardjs.com &raquo; Homepage</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="/favicon.ico">
<link rel="icon" href="/icon.svg" type="image/svg+xml">
@kevin-chau
kevin-chau / retroarch.cfg
Created April 8, 2021 23:35
Pocketgo s30 retroarch config
accessibility_enable = "false"
accessibility_narrator_speech_speed = "5"
ai_service_enable = "false"
ai_service_mode = "1"
ai_service_pause = "false"
ai_service_source_lang = "0"
ai_service_target_lang = "0"
ai_service_url = "http://localhost:4404/"
all_users_control_menu = "false"
apply_cheats_after_load = "false"
{"id":1295,"description":"AST's Hydra II Etana Rehost DSP Application","name":"Etana_DSP","name_with_namespace":"Hydra_II / dsp / Etana_DSP","path":"Etana_DSP","path_with_namespace":"Hydra_II/dsp/Etana_DSP","created_at":"2019-08-12T18:34:19.845Z","default_branch":"master","tag_list":["AST","DSP","Etana"],"ssh_url_to_repo":"git@gitlab.sas.ray.com:Hydra_II/dsp/Etana_DSP.git","http_url_to_repo":"https://gitlab.sas.ray.com/Hydra_II/dsp/Etana_DSP.git","web_url":"https://gitlab.sas.ray.com/Hydra_II/dsp/Etana_DSP","readme_url":"https://gitlab.sas.ray.com/Hydra_II/dsp/Etana_DSP/blob/master/README.md","avatar_url":"https://gitlab.sas.ray.com/uploads/-/system/project/avatar/1295/Etana2.png","star_count":4,"forks_count":1,"last_activity_at":"2019-10-16T21:31:41.871Z","namespace":{"id":242,"name":"dsp","path":"dsp","kind":"group","full_path":"Hydra_II/dsp","parent_id":35},"_links":{"self":"https://gitlab.sas.ray.com/api/v4/projects/1295","issues":"https://gitlab.sas.ray.com/api/v4/projects/1295/issues","merge_requests":"
@kevin-chau
kevin-chau / Wanhao_Cura_Profile16.ini
Created February 19, 2019 16:12 — forked from joshgerdes/Wanhao_Cura_Profile16.ini
Monoprice Maker Select Plus (Wanhao i3 Plus) Setup
[profile]
layer_height = 0.16
wall_thickness = 1.2
retraction_enable = True
solid_layer_thickness = 1.2
fill_density = 10
nozzle_size = 0.4
print_speed = 50
print_temperature = 200
print_temperature2 = 0
@kevin-chau
kevin-chau / Ticketh.md
Last active August 25, 2017 21:39
Ticketh

Ticketh

A decentralized ticket exchange for sports, concerts, theater and other live entertainment events.

What is Ticketh?

Ticketh is a decentralized event ticket marketplace built on the ethereum blockchain.

Utilizing its own ERC23 token 'ticketh' (symbol: TKT) ticketh aims at providing event attendees fair pricing for both retail and resale tickets, without the ridiculous fees charged by more traditional ticket sellers, all while eliminating scalpers and increasing artist / performer/ event organizer revenue.

@kevin-chau
kevin-chau / bittrex_private_and_public_api.gs
Created August 20, 2017 08:24 — forked from learntheropes/bittrex_private_and_public_api.gs
Bittrex private and public API for Google Apps Script (Google Sheet)
// work in progress
// you need a bittrex API key and secret with read account option enabled
// I assume that all the keys are in the "keys" spreadsheet. The key is in cell B5 and the secret in cell C5
var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("keys");
var key = sheet.getRange("B5").getValue()
var secret = sheet.getRange("C5").getValue();
var baseUrl = 'https://bittrex.com/api/v1.1/';
var nonce = Math.floor(new Date().getTime()/1000);
@kevin-chau
kevin-chau / uml.md
Last active May 5, 2017 17:34
UML markdown

Alt text

custom_mark12 /** *Structural Things *@opt commentname *@note Notes can *be extended to
@kevin-chau
kevin-chau / TicTacToePython.py
Created April 25, 2017 04:30
TicTacToePython created by kevinchau321 - https://repl.it/HYik/0
import time
import random
"""
Board file, should only be used from the game file,
and not manipulated directly.
"""
class Board(object):
"""
@kevin-chau
kevin-chau / Treactr Release Plan.md
Last active April 27, 2017 04:49
Treactr Release Plan

v0.1 (May 2017)

User Interface, Streaming, and Playback

  • User URL input
  • Pause and Play
  • Cue
  • Hotcue
  • Seeking
  • Volume
  • Gain
  • Crossfade