Skip to content

Instantly share code, notes, and snippets.

View LukeWood's full-sized avatar
:shipit:

Luke Wood LukeWood

:shipit:
View GitHub Profile
We can make this file beautiful and searchable if this error is corrected: It looks like row 10 should actually have 9 columns, instead of 8. in line 9.
date,pollution_today,dew,temp,press,wnd_spd,snow,rain,pollution_yesterday
2010-01-02,145.95833333333334,-8.5,-5.125,1024.75,24.86,0.7083333333333334,0.0,10.041666666666666
2010-01-03,78.83333333333333,-10.125,-8.541666666666666,1022.7916666666666,70.93791666666667,14.166666666666666,0.0,145.95833333333334
2010-01-04,31.333333333333332,-20.875,-11.5,1029.2916666666667,111.16083333333334,0.0,0.0,78.83333333333333
2010-01-05,42.458333333333336,-24.583333333333332,-14.458333333333334,1033.625,56.91999999999999,0.0,0.0,31.333333333333332
2010-01-06,56.416666666666664,-23.708333333333332,-12.541666666666666,1033.75,18.511666666666667,0.0,0.0,42.458333333333336
2010-01-07,69.0,-21.25,-12.5,1034.0833333333333,10.169999999999996,0.0,0.0,56.416666666666664
2010-01-08,176.20833333333334,-17.125,-11.708333333333334,1028.0,1.9729166666666667,0.0,0.0,69.0
2010-01-09,88.5,-16.333333333333332,-9.125,1029.0416666666667,13.29875,0.0,0.0,176.20833333333334
2010-01-10,57.25,-15.958333333333334,-8.75,1032.5,17.41583333333333,0.0,
{
"0":"tench, Tinca tinca",
"1":"goldfish, Carassius auratus",
"2":"great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias",
"3":"tiger shark, Galeocerdo cuvieri",
"4":"hammerhead, hammerhead shark",
"5":"electric ray, crampfish, numbfish, torpedo",
"6":"stingray",
"7":"cock",
"8":"hen",
{
"0":"tench, Tinca tinca",
"1":"goldfish, Carassius auratus",
"2":"great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias",
"3":"tiger shark, Galeocerdo cuvieri",
"4":"hammerhead, hammerhead shark",
"5":"electric ray, crampfish, numbfish, torpedo",
"6":"stingray",
"7":"cock",
"8":"hen",
@LukeWood
LukeWood / gist:d80d9939f280162f33d24f6177714a19
Created March 30, 2023 18:32
Make GCB Bucket Object Public
gsutil acl ch -u AllUsers:R gs://....
{0: 'tench, Tinca tinca',
1: 'goldfish, Carassius auratus',
2: 'great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias',
3: 'tiger shark, Galeocerdo cuvieri',
4: 'hammerhead, hammerhead shark',
5: 'electric ray, crampfish, numbfish, torpedo',
6: 'stingray',
7: 'cock',
8: 'hen',
9: 'ostrich, Struthio camelus',
python setup.py sdist bdist_wheel
twine upload dist/*
import * as PIXI from "pixi.js";
import {Emitter, EmitterConfig} from 'pixi-particles';
import {
CustomPIXIComponent,
} from "react-pixi-fiber";
interface ParticleEmitterProps {
x: number;
y: number;
const ids = new Set();
export function isIdFree(id: string): boolean {
return ids.has(id);
}
export function takeId(id: string) {
ids.add(id);
}
# Copies the most recent history matching a given query to the X11 clipboard provided
# Example
# > hcopy run
# > # ctrl-V
# > ./run.sh --some-arg
# Requires X11 Forwarding in SSH
# https://www.unixtutorial.org/get-x11-forwarding-in-macos-high-sierra
import {subscribe} from "tiny-pubsub"
import {update_bullet} from './update_bullet'
let bullets = {};
subscribe("bullet", bullet => {
bullets[bullet.id] = bullet;
})
subscribe("tick", (current_time, world) => {