Skip to content

Instantly share code, notes, and snippets.

View 0xcaff's full-sized avatar

Martin Charles 0xcaff

  • ring0
  • 17:52 (UTC -05:00)
View GitHub Profile
@0xcaff
0xcaff / grab.sh
Created March 23, 2015 01:29
This script is used to grab images from a slide share containing the Modern Biology textbook.
#!/bin/bash
for i in {1..1154}
do
wget "https://image.slidesharecdn.com/studentedition-130307085310-phpapp01/95/biology-text-book-$i-638.jpg" -O "$i.jpg" &
while (( $(jobs | wc -l) >= 10 )); do
sleep 0.1
jobs > /dev/null
done
done
We can't make this file beautiful and searchable because it's too large.
"ISO time" "unixtime" "track name" "track mbid" "artist name" "artist mbid" "uncorrected track name" "uncorrected track mbid" "uncorrected artist name" "uncorrected artist mbid" "album name" "album mbid" "album artist name" "album artist mbid" "application"
"2014-10-24T19:38:40" "1414179520" "Shake It Off" "2df6ebbc-6929-4ed3-9c0b-f4c97ad22f49" "Taylor Swift" "20244d07-534f-4eff-b4d4-930878889970" "Shake It Off" "2df6ebbc-6929-4ed3-9c0b-f4c97ad22f49" "Taylor Swift" "20244d07-534f-4eff-b4d4-930878889970" "Shake It Off" "d9e61c4a-44d2-4fc3-af80-45ce233692ff" "Taylor Swift" "20244d07-534f-4eff-b4d4-930878889970" ""
"2014-10-24T19:42:20" "1414179740" "Bangarang - feat. Sirah" "" "Skrillex" "ae002c5d-aac6-490b-a39a-30aa9e2edf2b" "Bangarang - feat. Sirah" "" "Skrillex" "ae002c5d-aac6-490b-a39a-30aa9e2edf2b" "Bangarang EP" "" "Skrillex" "ae002c5d-aac6-490b-a39a-30aa9e2edf2b" ""
"2014-10-24T19:46:04" "1414179964" "Problem" "" "Ariana Grande" "f4fdbb4c-e4b7-47a0-b83b-d91bbfcfa387" "Problem" "" "Ariana Grande" "f4fdbb4
@0xcaff
0xcaff / _.md
Last active August 29, 2015 14:14
Music Data Visualizations
@0xcaff
0xcaff / designer.html
Last active August 29, 2015 14:08
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../paper-progress/paper-progress.html">
<polymer-element name="my-element">
<template>
<style>
p {
font-family: Roboto, sans-serif;
package main
import (
"encoding/json"
"net/http"
"net/url"
"fmt"
"io"
"regexp"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1.
The length between one and nine is eight. It would take one division to get the ratio, 3:5.
The point that divides the line segment into the ratio is the point at four.
2.
( x1 + x2 y1 + y2 )
M = ( -------, ------- )
( 2 2 )
( 4 - 2 2 + 8 )