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 / acm-pixel-art.md
Created August 27, 2015 19:52
ACM and pixel art
@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 / wp-custom-image-upload.php
Last active August 29, 2015 14:27
wordpress custom meta upload for post and/or taxonomy question
<?php
/*
thnx for the help, EAL
*/
// acceptable file types
$supportedTypes = array('image/jpeg','image/gif','image/png','image/bmp','image/tiff');
@jennschiffer
jennschiffer / draw-diagonal.js
Last active August 29, 2015 14:24
draw one diagonal from bottom up
var drawDiagonal = function(x,y,color) {
ctx.fillStyle = color;
ctx.fillRect(x, y, pixelSize, pixelSize);
x = x + pixelSize;
y = y - pixelSize;
if (x >= 0 && y >= 0) {
drawDiagonal(x,y);
@jennschiffer
jennschiffer / tweet-button.php
Created July 2, 2015 16:52
Change blog url for Twitter button to save them sweet tweet counts
<h2>Twitter Button</h2>
<?php
/* bocoup.com was originally hosted across a number of subdomains. Since
* then, it has switched to organizing content with subdirectories. Construct
* the URL for the given item according to the site structure when the item
* was first published.
*/
function url_at_publication($id) {
@jennschiffer
jennschiffer / comments.php
Created July 1, 2015 20:56
disqus of nanoc posts in wordpress theme
<?php
/**
* The template for displaying comments
*
* The area of the page that contains both current comments
* and the comment form.
*
* @package WordPress
* @subpackage Twenty_Fifteen
* @since Twenty Fifteen 1.0
jk
@jennschiffer
jennschiffer / li-hover-borders.html
Last active August 29, 2015 14:22
li hover borders aka super hacky css border hover bullshit for brain
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
* { margin: 0; padding: 0; }
ul { margin: 50px; }
li { display: block; width: 300px; padding: 10px; border: 2px solid orange; border-left: 0; border-right: 0; }
li:first-child { border-top-color: transparent; }
@jennschiffer
jennschiffer / gist:9a534d7d2ecffaf744e5
Created May 1, 2015 14:57
web rebels talk abstract
Who Visualized the Bomp?
Imagine a world where dolphins could walk. Now forget that and then imagine a world where you had the power to create musical and art experiences in the browser for free, without expensive software or hired contractors. I'm going to talk about creating web-based audio-powered visualizations using weird "technologies" like "C.S.S." and "JavaScript" and "code."
@jennschiffer
jennschiffer / whatever.md
Created October 5, 2014 18:22
JavaScript book recommendations for Jenn

looking for book recommendations. please comment with books and what level (beginner, advanced, etc) thnx babes