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: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);
@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
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;
}
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}
@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
@jennschiffer
jennschiffer / gist:b114e4db28b4a99098db
Created September 3, 2014 21:14
research paper about dhtmlconf
      ( ⌒⌒ )
   ∧∧ ( FART )
  (・ω・` ) ノノ~′
  ( ⊃⌒*⌒⊂ )
  /_ノ''''ヽ_\
@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

@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 / 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; }