Skip to content

Instantly share code, notes, and snippets.

View devinhalladay's full-sized avatar
🌱
running my fingers through the grass

devin devinhalladay

🌱
running my fingers through the grass
View GitHub Profile
@devinhalladay
devinhalladay / fifty-shades-of-grey.scss
Created August 30, 2014 19:07
Fifty Shades of Grey in Sass
// Fifty Shades of Grey
$grey: #e7e7e8;
@for $i from 1 through 50 {
.shade-#{$i} {
background-color: darken($grey, $i);
}
}
@devinhalladay
devinhalladay / gruntfile.js
Created September 3, 2014 23:11
gruntfile.js
module.exports = function(grunt) {
grunt.initConfig({
concat: {
dist: {
/*
@import "foundation";
@import "normalize";
@import "modules/test";
*/
src: ['assets/sass/foundation.css', 'assets/sass/normalize.css', 'assets/sass/modules/_test.scss'],
* {
margin: 0;
padding: 0;
box-sizing: border-box;
position: relative;
cursor: auto;
}
p, table, figure, blockquote, pre, ul, ol,
h1, .alpha,
.site__hero {
background-image: url('/uploads/2014/10/profile.png');
width: 100%;
margin-bottom: $baseline;
background-position: 50%;
background-repeat: no-repeat;
-webkit-background-size: cover;
background-size: cover;
max-width: 2000px;
max-height: 1000px;

Keybase proof

I hereby claim:

  • I am devinhalladay on github.
  • I am dh (https://keybase.io/dh) on keybase.
  • I have a public key whose fingerprint is E319 2AAB F52C 97A4 A091 EF96 2C88 B40D F320 19AC

To claim this, I am signing this object:

(function(){function r(){(window.instaUnread=function(){if(window.location!=window.ipURL){window.location=window.ipURL;alert("InstaUnread needs to be on your Instapaper Unread page. Redirecting you now.\n\nPlease press the bookmarklet again after the page loads.")}else{var e="(Counting...) ";if($("#count").length!=0)$("#count").html(e);else{$("#unread_nav").append(" "+e+"")}i(1,0)}})()}function i(e,t){$.ajax({url:"/u/"+e,success:function(n,r,s){var o=s.responseText.split('
').length-1;t+=o;if(o==0)$("#count").html("("+t+") ");else i(++e,t)},dataType:"html"})}var e="1.5";if(window.jQuery===undefined||window.jQuery.fn.jquery
@devinhalladay
devinhalladay / copydom.js
Created August 22, 2016 21:05
Copies the entire DOM to the clipboard, for use in the development of Spotio
window.addEventListener("keydown", checkKeyPressed, false);
function checkKeyPressed(e) {
if (e.keyCode == "17") {
var markup = document.documentElement.innerHTML;
input = document.createElement('input');
input.style.position = 'fixed';
input.style.opacity = 0;
input.value = markup;
document.body.appendChild(input);
let arena = new Arena({ accessToken: auth_token });
var config = {
headers: {
'Authorization': "bearer " + auth_token,
"Content-Type": "application/x-www-form-urlencoded",
'X-AUTH-TOKEN': auth_token
// I suspect the issue is with the token — what's the proper header to use?
}
};
@devinhalladay
devinhalladay / p5_click.js
Created December 20, 2019 00:11
handle clicks on objects in p5. handles circles and rectangles
function Square(x, y, w, h) {
this.x = x;
this.y = y;
this.w = w;
this.h = h;
// this.[thing] syntax is used to scope a variable locally to the class
// again using this. to scope this function locally so you can call it with [squareInstance].display();
this.display = function() {
stroke(255);
/*
Theme: Roam Lux Theme
Edits by: Cal Robert Lee (https://www.calrobert.com/)
Colors by: Cal Robert Lee
Version: v1.1.7
Import: @import url('https://calrobertlee.github.io/roam-themes/lux.css');
Quickfix: - fixed search position, thanks diverbroski!
- fixed search results alignment