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:b114e4db28b4a99098db
Created September 3, 2014 21:14
research paper about dhtmlconf
      ( ⌒⌒ )
   ∧∧ ( FART )
  (・ω・` ) ノノ~′
  ( ⊃⌒*⌒⊂ )
  /_ノ''''ヽ_\
@jennschiffer
jennschiffer / colorNames.js
Created June 4, 2014 13:54
array of css color names wowowow
var colorNames = ["AliceBlue","AntiqueWhite","Aqua","Aquamarine","Azure","Beige","Bisque","Black","BlanchedAlmond","Blue","BlueViolet","Brown","BurlyWood","CadetBlue","Chartreuse","Chocolate","Coral","CornflowerBlue","Cornsilk","Crimson","Cyan","DarkBlue","DarkCyan","DarkGoldenRod","DarkGray","DarkGrey","DarkGreen","DarkKhaki","DarkMagenta","DarkOliveGreen","Darkorange","DarkOrchid","DarkRed","DarkSalmon","DarkSeaGreen","DarkSlateBlue","DarkSlateGray","DarkSlateGrey","DarkTurquoise","DarkViolet","DeepPink","DeepSkyBlue","DimGray","DimGrey","DodgerBlue","FireBrick","FloralWhite","ForestGreen","Fuchsia","Gainsboro","GhostWhite","Gold","GoldenRod","Gray","Grey","Green","GreenYellow","HoneyDew","HotPink","IndianRed","Indigo","Ivory","Khaki","Lavender","LavenderBlush","LawnGreen","LemonChiffon","LightBlue","LightCoral","LightCyan","LightGoldenRodYellow","LightGray","LightGrey","LightGreen","LightPink","LightSalmon","LightSeaGreen","LightSkyBlue","LightSlateGray","LightSlateGrey","LightSteelBlue","LightYellow","Lim
var jortSort=function(e){var t=e.slice(0);e.sort(function(e,t){return e-t});for(var n=0;n<t.length;++n){if(t[n]!==e[n])return false}return true}
var jortSort = function( array ) {
// sort the array
var originalArray = array.slice(0);
array.sort( function(a,b){return a - b} );
// compare to see if it was originally sorted
for (var i = 0; i < originalArray.length; ++i) {
if (originalArray[i] !== array[i]) return false;
}
@jennschiffer
jennschiffer / gist:cff6793afab4eec25d52
Last active August 29, 2015 14:01
lol at this jerk email
Regarding:
"But most importantly - any opinion you have of her or other feminists should have nothing to do with mine. Get your own damn thoughts and reactions, and stop using me and other women as a crutch for fuck's sake.”
Men are told to "fucking shut up and listen" (by Shanley, amongst other people), “mansplaining” is a thing, and the world of gender is full of panels of 100% women telling men what to do about what feminists think are "men’s issues” (i.e. how men’s actions affect women). This is at a time when women’s experiences are front and centre and even hinting at it such a thing being anecdotal will make you a target of persecution.
I’ve been called a sociopath for publishing 1 post about gender on an otherwise entirely technical site, a post which cited my personal experience and my personal stakes, and called for moderation and reflection. Said post was banned from metafilter as being “too low quality”, despite it citing 70+ references fairly and being shared over 80,000 times through the grap
accomplished
aggravated
amused
angry
annoyed
anxious
apathetic
artistic
awake
bitchy
@jennschiffer
jennschiffer / gist:10024708
Last active August 29, 2015 13:58
hex to rgb
var hexToRGB = function(hex) {
var rgbOutput = [];
// check for # or not
if ( hex.substr(0,1) == '#' ) {
hex = hex.substr(1,6);
}
for ( var i = 0; i < 3; i ++) {
rgbOutput[i] = parseInt(hex.substr(2*i, 2), 16);

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:

@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) {