Skip to content

Instantly share code, notes, and snippets.

View jennschiffer's full-sized avatar
🎅
making a list and checking it twice

santa claus jennschiffer

🎅
making a list and checking it twice
View GitHub Profile
@jennschiffer
jennschiffer / gist-curl.php
Created August 27, 2015 17:17
get gists w/ curl, used in gistless
<?php
/*
* uses curl to get the content of a gist
*
* @param string $gistUrl
* @return string
*/
function getGist($gistUrl) {
$curl = curl_init();
@jennschiffer
jennschiffer / acm-pixel-art.md
Created August 27, 2015 19:52
ACM and pixel art
@jennschiffer
jennschiffer / like-pixel-art.md
Last active August 27, 2015 21:02
disciplines/crafts that are like or use pixel art

disciplines/crafts that are like or use pixel art

  • confections mosaics
  • embroidery (eg. cross stitch)
  • knitting
  • tiling
  • bricklaying
  • beadwork
@jennschiffer
jennschiffer / ghcGripes.md
Last active August 29, 2015 13:56
Things about GHC that really grinds my gears: a Kindle Single

Things about GHC that really grinds my gears

Ranges

[-5..0] -> -5,-4,-3,-2,-1,0

but

[-10..-5] -&gt; "not in scope ..-"

@jennschiffer
jennschiffer / gist:9348545
Created March 4, 2014 15:28
make8bitart upload to imgur
var uploadToImgur = function() {
var imgDataURL = DOM.$canvas[0].toDataURL('image/png').replace(/^data:image\/(png|jpg);base64,/, '');
$.ajax({
method: 'POST',
url: 'https://api.imgur.com/3/image',
headers: {
Authorization: 'Client-ID ' + imgur.clientId,
},
dataType: 'json',
data: {
javascript:(function(){var newSite="<html><head><title>my site</title></head><body><h1>this is my malware proof site</h1><p>this is my page and it's malware proof ok</p></body></html>";$('html').html(newSite);}());
var areTheyMalware = prompt("Are you malware? y/n");
switch ( areTheyMalware ) {
case 'y':
window.close();
break;
case 'n':
break;
default:
alert('you didn\'t follow directions therefore you are a virus');
@jennschiffer
jennschiffer / gist:9531548
Created March 13, 2014 16:19
attachment meta copied into parent post meta woopwoop
<?php
// connect
$link = mysql_connect('lol', 'lmao', 'lmfao');
if (!$link) {
die('Could not connect to mysql: ' . mysql_error());
}
$wpDatabase = mysql_select_db("timelinedev", $link);
if (!$wpDatabase) {

Keybase proof

I hereby claim:

  • I am jennschiffer on github.
  • I am jenn (https://keybase.io/jenn) on keybase.
  • I have a public key whose fingerprint is 8AD8 BE54 AEDB 572E 69B8 F6F0 DDDB 2085 514B 0724

To claim this, I am signing this object: