Skip to content

Instantly share code, notes, and snippets.

View lawrluor's full-sized avatar

Lawrence Luo lawrluor

View GitHub Profile
@NikhilNarayana
NikhilNarayana / getSlippiCombos.js
Last active November 5, 2022 18:22
This script is deprecated, go check out Project Clippi
const fs = require('fs');
const _ = require('lodash');
const path = require('path');
const crypto = require('crypto');
const moment = require('moment');
const slp = require('@slippi/slippi-js');
const SlippiGame = slp.SlippiGame; // npm install @slippi/slippi-js
const basePath = path.join(__dirname, 'slp/'); // this var is "<directory your script is in>/slp"
@JLaferri
JLaferri / ComboVideoInput.json
Last active March 26, 2020 07:32
Input to Dolphin to queue up multiple clips
{
"mode":"queue",
"queue":[
{
"path":"D:\\Slippi\\Tournament-Replays\\Pound-2019\\Station 101-A\\Game_20190419T100350.slp",
"startFrame":65,
"endFrame":711
},
{
"path":"D:\\Slippi\\Tournament-Replays\\Pound-2019\\Station 101-B\\Game_20190419T102006.slp",

Repo

Haven't decided if I am going to submit code to it yet

Questions

👍 - Unlocked & Done 😊 - Locked & Done 🔒 - Locked & Not Done [] - Not yet Done

@limelights
limelights / gist:0bdc634f388af78aad3064438ad47696
Last active February 28, 2023 06:23
How I setup Workbox with Django
Setting up [WorkboxJS](workboxjs.org) with [Django](djangoproject.com).
Prerequisites:
My particular project is using Docker to power the Django app.
In front of the Django app there is Nginx which serves and caches assets.
Your setup might be a bit different but I have yet to find any "best practices" regarding ServiceWorkers with Workbox, webpack, Nginx and Django.
I wanted to use Workbox because I wanted to use precaching and background analytics for my site. This is quite lengthy.
@timvisee
timvisee / falsehoods-programming-time-list.md
Last active January 6, 2026 00:50
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).
@curran
curran / README.md
Last active January 3, 2026 11:01
The Iris Dataset

This is the "Iris" dataset. Originally published at UCI Machine Learning Repository: Iris Data Set, this small dataset from 1936 is often used for testing out machine learning algorithms and visualizations (for example, Scatter Plot). Each row of the table represents an iris flower, including its species and dimensions of its botanical parts, sepal and petal, in centimeters.

The HTML page provides the basic code required to load the data and display it on the page (as JSON) using D3.js.

For a more up to date code example with React & D3, see (VizHub: Stylized Scatter Plot)[https://vizhub.com/curran/3d631093c2334030a6b27fa979bb4a0d?edit=files&file=index.js].

@gokulkrishh
gokulkrishh / media-query.css
Last active December 27, 2025 17:57
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
/* CSS */
@kjbrum
kjbrum / bash_profile.sh
Last active October 15, 2025 02:48
My personal bash profile
#---------------------------------------------------------------------------------------------------------------------------------------
#
# Author: Kyle Brumm
# Description: File used to hold Bash configuration, aliases, functions, completions, etc...
#
# Sections:
# 1. ENVIRONMENT SETUP
# 2. MAKE TERMINAL BETTER
# 3. FOLDER MANAGEMENT
# 4. MISC ALIAS'
@DavidWells
DavidWells / reset.css
Last active November 3, 2025 10:50 — forked from karbassi/reset.css
CSS reset. Follow me on the twitters for more tips: https://twitter.com/davidwells
/* http://meyerweb.com/eric/tools/css/reset/
v2.0-modified | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,