Skip to content

Instantly share code, notes, and snippets.

View 0xcaff's full-sized avatar

Martin Charles 0xcaff

  • ring0
  • 01:06 (UTC -05:00)
View GitHub Profile
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 )
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
package main
import (
"encoding/json"
"net/http"
"net/url"
"fmt"
"io"
"regexp"
@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;
@0xcaff
0xcaff / _.md
Last active August 29, 2015 14:14
Music Data Visualizations
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 / 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
@0xcaff
0xcaff / prefs.js
Last active December 20, 2015 05:49 — forked from johnbender/prefs.js
Set up Chrome Secure Shell to handle base16 terminal colors
// Disable bold.
term_.prefs_.set('enable-bold', false)
// Use this for Base16 Dark
term_.prefs_.set('background-color', "#002b36");
term_.prefs_.set('foreground-color', "#839496");
base03 = "#181818";
base02 = "#282828";
base01 = "#383838";
@0xcaff
0xcaff / answers.txt
Last active February 20, 2017 21:59
Calculus III Project I
==> question2a.txt <==
Distance: 89/sqrt(1635)
==> question2b.txt <==
Distance: 40/sqrt(104)
==> question2c.txt <==
Distance: 64/sqrt(222)
==> question3.txt <==
$ # on a chromebook in developer mode
$ sudo su
# stop shill
# start shill BLACKLISTED_DEVICES=tun0
# openvpn your-vpn.ovpn
# # set the dns in chrome settings, by default network dns is taken over openvpn dns