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 / dabblet.css
Created December 19, 2011 16:54
Jenn cooks breakfast!
/**
* Jenn cooks breakfast!
* A collection of breakfast foods illustrated using CSS.
* Coded for fun while taking Dabblet.com for a test-run.
* Last updated: December 19, 2011
* Dabblet: http://dabblet.com/gist/1497955
* Gist: https://gist.github.com/1497955
*/
html { background: #fff; }
@jennschiffer
jennschiffer / dabblet.css
Created December 21, 2011 19:37
Jenn Makes Signs
/**
* Jenn Makes Signs
* Various road signage made with CSS and the RoadGeek font family
* Last Updated: December 21, 2011
* Dabblet: http://dabblet.com/gist/1507357
* Gist: https://gist.github.com/1507357
*/
@font-face { font-family: "RoadGeek"; src: url("http://pancaketheorem.com/css/signs/roadgeek2w.otf");}
@font-face {font-family: "RoadGeek Hospital"; src: url("http://pancaketheorem.com/css/signs/roadgeekf6b.otf")}
@jennschiffer
jennschiffer / tumblr-simple-code
Created May 21, 2012 22:28
Just a simple link to a Tumblr ask page
// 1. replace EXAMPLE with your Tumblr username.
// 2. paste the line of code into your Tumblr template's HTML
<a href="http://EXAMPLE.tumblr.com/ask">Ask me anything</a>
@jennschiffer
jennschiffer / tom-hanks-floating-heads-on-tumblr.txt
Created July 12, 2012 20:49
Bookmarklet - Tom Hanks' Floating Heads on the Tumblr Dashboard
// 1. create a new bookmark on your browser
// 2. paste the following code - starting at "javascript:" into the URL part of the add-bookmark menu.
// 3. click the bookmarklet when you're on the tumblr dashboard for Tom Hanks
// xoxo gossip girl & jennschiffer
javascript:(function(){var iconArray=document.getElementById("new_post").getElementsByClassName("new_post_label_icon");for(var i=0;i<iconArray.length;i++){iconArray[i].style.backgroundImage="url('http://i.imgur.com/87acz.png')"; }})();
@jennschiffer
jennschiffer / javascript-bookmarklet-hide-cathar-on-baristanet.txt
Created July 13, 2012 19:36
Bookmarklet - Hide cathar's comments on Baristanet
// 1. create a new bookmark on your browser
// 2. paste the following code - starting at "javascript:" into the URL part of the add-bookmark menu.
// 3. click the bookmarklet when you're on Baristanet posts to hide cathar's comments for instant zen
// xoxo jenn
javascript:(function(){$('.comment-author-cathar').hide();}());
@jennschiffer
jennschiffer / draggy-divs-style.css
Last active December 11, 2015 14:59
Draggy Divs (jQuery)
.draggy { padding: 10px; position: absolute; top: 20px; left: 20px; }
.dragger { margin: 0; position: absolute; top: 5px; right: 5px; cursor: pointer; font-size: 1.5em; }
@jennschiffer
jennschiffer / make8bitart-original-bitonclick
Created March 10, 2013 01:46
make8bitart function for drawing pixel on the canvas based on location and width of art frame
function bitOnClick(e) {
prettyPicture = document.getElementById("canvas");
leftSide = prettyPicture.offsetLeft + document.getElementById("frame").offsetLeft + document.getElementById("container").offsetLeft;
topSide = prettyPicture.offsetTop + document.getElementById("frame").offsetTop + document.getElementById("container").offsetTop;
if (e.pageX != undefined && e.pageY != undefined) {
xPos = e.pageX - leftSide - 8;
yPos = e.pageY - topSide - 20;
}
else {
@jennschiffer
jennschiffer / window-canvas.js
Created March 12, 2013 03:42
a canvas that fills the whole browser window
$(document).ready(function(){
// create canvas the size of the window
var canvasHeight = $(window).height();
var canvasWidth = $(window).width();
$('body').prepend('<canvas id="canvas" width="'+ canvasWidth +'" height="'+ canvasHeight + '" style="cursor:crosshair;">Your browser doesn\'t support canvas. Boo-hiss.</canvas>');
// resize canvas if window size changes - I particularly don't like this, but whatevs floats yo boats...
$(window).resize(function() {
@jennschiffer
jennschiffer / bnetwork-comments.php
Last active December 15, 2015 19:59
printing 5 latest comments of baristanet & baristakids sites in time-descending order
<?php
// bnet comments
$commentsBNET = get_comments('number=5&status=approve');
// bkids comments
switch_to_blog( '3' );
$commentsBKIDS = get_comments('number=5&status=approve');
restore_current_blog();
@jennschiffer
jennschiffer / carousel.css
Last active January 3, 2020 20:29
simple stupid jquery carousel