Skip to content

Instantly share code, notes, and snippets.

View whatever's full-sized avatar
🍥
💯

Matt whatever

🍥
💯
  • インターネット総合研究所 (IRL)
  • New York, New York
  • 19:22 (UTC -05:00)
View GitHub Profile
@whatever
whatever / css.less
Last active December 23, 2015 20:24
html {
span {
display: block;
}
div {
display: inline;
}
}
@whatever
whatever / brew-install-octave--without-check.log
Created September 23, 2014 17:13
This is it running --without-check
matt ~ 🔪 cat brew-install-octave.log
==> Using Homebrew-provided fortran compiler.
This may be changed by setting the FC environment variable.
==> Building with an alternative Fortran compiler
This is unsupported.
==> Building with an alternative Fortran compiler
This is unsupported.
==> Building with an alternative Fortran compiler
This is unsupported.
==> Downloading http://ftpmirror.gnu.org/octave/octave-3.8.1.tar.bz2
@whatever
whatever / brew-install-octave.log
Created September 23, 2014 16:37
`brew install octave` hangs indefinitely on `make test`
==> Using Homebrew-provided fortran compiler.
This may be changed by setting the FC environment variable.
==> Building with an alternative Fortran compiler
This is unsupported.
==> Building with an alternative Fortran compiler
This is unsupported.
==> Building with an alternative Fortran compiler
This is unsupported.
==> Downloading http://ftpmirror.gnu.org/octave/octave-3.8.1.tar.bz2
Already downloaded: /Library/Caches/Homebrew/octave-3.8.1.tar.bz2
@whatever
whatever / gist:5331047
Created April 7, 2013 15:56
javascipt add file to header
var script = document.createElement("SCRIPT");
script.setAttribute("src", "http://code.jquery.com/jquery-1.9.1.min.js");
document.getElementsByTagName("head")[0].appendChild(script);
@whatever
whatever / gist:5161909
Created March 14, 2013 14:45
Creates a matrix of random dates
get.random.date <- function () {
# Ignore this line... I was going to make it *ACTUALLY* do a random date,
# but we don't need this for testing... Just have 28 be an upper bound on the month
# and we don't have to worry about which month we're in or whether it's a leap year
months <- list(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31)
# This should determine if it's a leap year... which just changes
is.leap.year <- function (y) {
if (y %% 4 != 0)
@whatever
whatever / gist:5161466
Created March 14, 2013 13:51
Example of how to make a data-time data set in R
# Create 3 date data-points
date.time1 <- as.POSIXct(strptime('2011-03-27 01:30:00', '%Y-%m-%d %H:%M:%S'))
date.time2 <- strptime("12/20/10 14.34.35", format = "%m/%d/%y %H.%M.%S")
date.time3 <- as.Date("12/15/20", format = "%m/%d/%y")
# Cast one as POSIXlt
date.posix1 <- as.POSIXlt(date.time1)
# Place dates in their columns
all.dates <- data.frame(x = date.time1, y = date.time3, z = date.time3, a = date.posix1)
@whatever
whatever / house-etc
Created March 11, 2013 23:15
house etc
Blond:ish
http://youtu.be/hXYWc8cqF8o
http://youtu.be/gnz0t9LJb9Q
http://youtu.be/3lVKKEKaQB4
Shlohmo
http://youtu.be/pYimwWZUJS8
http://youtu.be/petLd35q5bk
Jeremy Lol (of Lol boys)
#instagrammer img {
border-width: 0;
border-style: solid;
border-color: black;
float: left;
margin: 0;
padding: 0;
width: 200px;
height: 200px;
-webkit-animation-name: swim-begin;
@whatever
whatever / gist:5015001
Created February 22, 2013 17:08
SKYYYYYYNET
funny... but we know it's fake, right?
WHOIS via:
http://bit.ly/Xui29R
3rd line below... WESTDUBUQUE2NDCHURCHOFCHRIST.ORG created on Jan 2013
---------------
Domain ID:D167595099-LROR
Domain Name:WESTDUBUQUE2NDCHURCHOFCHRIST.ORG
Created On:15-Jan-2013 02:28:05 UTC
@whatever
whatever / gist:5014928
Created February 22, 2013 17:02
mad funny but we know it's fake.. right? third line: Created On:15-Jan-2013 02:28:05 UTC via http://bit.ly/Xui29R SKYYYYYYNET
Domain ID:D167595099-LROR
Domain Name:WESTDUBUQUE2NDCHURCHOFCHRIST.ORG
Created On:15-Jan-2013 02:28:05 UTC
Last Updated On:15-Jan-2013 02:28:05 UTC
Expiration Date:15-Jan-2014 02:28:05 UTC
Sponsoring Registrar:GoDaddy.com, LLC (R91-LROR)
Status:CLIENT DELETE PROHIBITED
Status:CLIENT RENEW PROHIBITED
Status:CLIENT TRANSFER PROHIBITED
Status:CLIENT UPDATE PROHIBITED