Skip to content

Instantly share code, notes, and snippets.

country count
Germany 30532
Usa 26533
Uk 24162
France 13576
England 10476
Italy 9879
Canada 8758
Australia 7768
Netherlands 7598
/* PrismJS 1.14.0
http://prismjs.com/download.html#themes=prism&languages=sql */
/**
* prism.js default theme for JavaScript, CSS and HTML
* Based on dabblet (http://dabblet.com)
* @author Lea Verou
*/
code[class*="language-"],
pre[class*="language-"] {
country count genre country_total
Uk 1768 Electronic 3047
Germany 942 Electronic 3663
Germany 901 Classical 3663
Usa 628 Rock 2881
Germany 619 Rock 3663
Uk 532 Rock 3047
France 418 Electronic 1542
Russia 410 Electronic 616
Italy 404 Classical 1200
@lsei
lsei / setup.sql
Created August 29, 2018 21:21
Postgres schema for discogs data
-- Clear out the database
DROP TABLE IF EXISTS artist_master;
DROP TABLE IF EXISTS artist_release;
DROP TABLE IF EXISTS label_release;
DROP TABLE IF EXISTS extraartist_release;
DROP TABLE IF EXISTS labels;
DROP TABLE IF EXISTS artists;
DROP TABLE IF EXISTS releases;
DROP TABLE IF EXISTS masters;
{
"extends": "airbnb",
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"allowImportExportEverywhere": false,
"codeFrame": false
},
"rules": {
"no-use-before-define": "off",
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 2.
id,name,count,roles
90541,"Mick Jagger",6553,"[[""Vocals"", 2090],[""Guitar"", 920],[""Harmonica"", 895],[""Lead Vocals"", 613],[""Written-By"", 354],[""Percussion"", 290],[""Piano"", 236],[""Backing Vocals"", 230],[""Harp"", 167],[""Performer"", 151],[""Lighting"", 109],[""Electric Guitar"", 88],[""Blues Harp"", 82],[""Rhythm Guitar"", 76],[""Bass"", 37],[""Other"", 22],[""Songwriter"", 20],[""Keyboards"", 19],[""Written By"", 19],[""Musician"", 17],[""Acoustic Guitar"", 15],[""Executive-Producer"", 14],[""Interviewee"", 11],[""Shaker"", 9],[""Featuring"", 8],[""Arranged By"", 7],[""Maracas"", 7],[""Executive Producer"", 5],[""Composed By"", 4],[""Producer"", 4],[""Concert Grand Piano"", 3],[""Band"", 3],[""Sleeve Notes"", 3],[""Harmony Vocals"", 2],[""Castanets"", 2],[""Chorus Master"", 2],[""Electric Piano"", 2],[""Guest"", 2],[""Tambourine"", 2],[""Voice Actor"", 2],[""Chicago And Hollywood]"", 1],[""Slide Guitar"", 1],[""Body Percussion"", 1],[""Liner Notes"", 1],[""Vibraphone"", 1],[""Alto Vocals"", 1],
Shader "Unlit/WhereAmITestShader"
{
Properties
{
_MainTex ("Texture", 2D) = "white" {}
}
SubShader
{
Tags { "RenderType"="Opaque" }
LOD 100
@lsei
lsei / hydra.js
Created June 14, 2020 13:25
Hydra 001
// By Lucas
// https://github.com/lsei
shape(100, .75, 0)
.repeat(10, 10)
.rotate(({time}) => time * 0.5)
.pixelate(({time}) => ((time * 10) % 100))
.out(o1)
/* AUDIO INIT */
let mic,
fftRaw,
fft = [],
numBins = 16,
bands = 12;
let rInitial = 800;
let r = rInitial;
let gapInitial = r * 0.1;