Skip to content

Instantly share code, notes, and snippets.

View pushmatrix's full-sized avatar

Daniel Beauchamp pushmatrix

View GitHub Profile
<!-- Add USDZ logo to product image -->
<div class="ar-quicklook-overlay" data-shopify-3d-variant-id="{{ product.selected_or_first_available_variant.id }}" style="display: none;"></div>
@pushmatrix
pushmatrix / wordlist
Last active January 1, 2022 09:38
Complete Swedish Duolingo word list (as of March 15, 2015)
man
kvinna
är
pojke
flicka
jag
en
han
hon
ett
@pushmatrix
pushmatrix / us_holidays_2014
Created December 16, 2014 16:53
US holidays 2014
{
"items": [
{
"api-message": "",
"country": "UNITED STATES",
"weekday": "WEDNESDAY",
"iso-code": "US",
"date": "2014-01-01",
"holiday": "NEW YEAR'S DAY",
"type": "NATIONAL HOLIDAY"
@pushmatrix
pushmatrix / gist:db473310e800781f5c84
Created December 16, 2014 16:40
canadian holidays
{
"items": [
{
"api-message": "",
"country": "CANADA",
"weekday": "WEDNESDAY",
"iso-code": "CA",
"date": "2014-01-01",
"holiday": "NEW YEAR'S DAY",
"type": "NATIONAL HOLIDAY"
@pushmatrix
pushmatrix / region_codes
Created August 27, 2014 20:09
Maxmind region codes in json format
{
"AD": {
"02": "Canillo",
"03": "Encamp",
"04": "La Massana",
"05": "Ordino",
"06": "Sant Julia de Loria",
"07": "Andorra la Vella",
"08": "Escaldes-Engordany"
},
@pushmatrix
pushmatrix / gist:11269559
Created April 24, 2014 21:07
Checking out a PR
git fetch origin pull/7324/head:pr-7324
git checkout -b name pr-7324
<html>
<head>
<title></title>
<style type="text/css">
img {
-webkit-animation: spin 1s infinite linear;
}
@-webkit-keyframes spin {
@pushmatrix
pushmatrix / drone.js
Created January 16, 2014 09:30
Controlling a drone with google glass. Requires you install and run https://github.com/monteslu/Face on glass.
var WebSocket = require('ws');
var arDrone = require('ar-drone')
var ws = new WebSocket('ws://192.168.1.237:1338', {protocolVersion: 8});
ws.on('open', function() {
console.log('connected');
ws.send(Date.now().toString(), {mask: true});
});
ws.on('close', function() {
console.log('disconnected');
});
<script type="text/javascript">
var phi = "161803398874989484820458683436563811772030917980576286213544862270526046281890244970720720418939113748475408807538689175212663386222353693179318006076672635443338908659593958290563832266131992829026788067520876689250171169620703222104321626954862629631361443814975870122034080588795445474924618569536486444924104432077134494704956584678850987433944221254487706647809158846074998871240076521705751797883416625624940758906970400028121042762177111777805315317141011704666599146697987317613560067087480710131795236894275219484353056783002287856997829778347845878228911097625003026961561700250464338243776486102838312683303724292675263116533924731671112115881863851331620384005222165791286675294654906811317159934323597349498509040947621322298101726107059611645629909816290555208524790352406020172799747175342777592778625619432082750513121815628551222480939471234145170223735805772786160086883829523045926478780178899219902707769038953219681986151437803149974110692608867429622675756052
$("#images").append("<img src='hey.jpg'>");
$("#images img").hover(function(){
$(this).remove();
});