Skip to content

Instantly share code, notes, and snippets.

View nchristus's full-sized avatar

Nick Christus nchristus

  • Kansas City, MO
View GitHub Profile
@nchristus
nchristus / scrollTo.js
Created December 15, 2015 16:42 — forked from james2doyle/scrollTo.js
a native scrollTo function in javascript that uses requestAnimationFrame and easing for animation
// easing functions http://goo.gl/5HLl8
Math.easeInOutQuad = function (t, b, c, d) {
t /= d/2;
if (t < 1) {
return c/2*t*t + b
}
t--;
return -c/2 * (t*(t-2) - 1) + b;
};
@nchristus
nchristus / sticky-footer.scss
Created May 26, 2016 15:58
Flexbox sticky footer
module.exports = function(grunt) {
require('time-grunt')(grunt);
require('load-grunt-tasks')(grunt);
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
shell: {
jekyllBuild: {
# Site settings
title: Graphite
url: "http://graphite-project.github.io"
exclude: ['_sass', 'node_modules', 'Gemfile', 'Gemfile.lock', 'Gruntfile.js', 'package.json']
keep_files: ['_site/css']
<div class="face success ring">
<svg class="status-icon" xmlns="http://www.w3.org/2000/svg" width="72" height="72" viewBox="0 0 72 72">
<title>checkmark-icon</title>
<path d="M36 0a36 36 0 1 0 36 36A36 36 0 0 0 36 0zm23 26.518L33.722 51.85a5.2 5.2 0 0 1-3.2 1.327h-2.18a5.2 5.2 0 0 1-3.195-1.327l-11.9-11.957a1.884 1.884 0 0 1 0-2.652l4.684-4.683a1.88 1.88 0 0 1 2.652 0l7.6 7.588a1.88 1.88 0 0 0 2.65 0l20.84-20.89a1.883 1.883 0 0 1 2.653-.007l4.66 4.627A1.874 1.874 0 0 1 59 26.518z" fill="#fff"/>
</svg>
<p class="status-msg">Test completed</p>
<a class="btn" href="#">Go back</a>
</div>
@nchristus
nchristus / grunt.js
Created May 2, 2017 15:11
Grunt global variable
grunt.registerTask('build', 'Build specified email template.', function(template) {
if (template == null) {
grunt.warn('Template must be specified, like build:simple.');
}
global.template = template;
grunt.task.run('email');
});
// Variable
@nchristus
nchristus / clueboard_rev2_bloodlvst.hex
Created May 25, 2017 00:09
clueboard_rev2_bloodlvst
:100000000C9482060C94C9060C94C9060C94C9067B
:100010000C94C9060C94C9060C94C9060C94C90624
:100020000C94C9060C94C9060C945F290C94322ACE
:100030000C94EA200C94C9060C94C9060C94C906C9
:100040000C94C9060C94C9060C94C9060C94C906F4
:100050000C94C9060C945E210C94C9060C94C90634
:100060000C94C9060C94C9060C94C9060C94C906D4
:100070000C94C9060C94C9060C94C9060C94C906C4
:100080000C94C9060C94C9060C94C9060C94C906B4
:100090000C94C9060C94C9060C94C9060C94C906A4
@nchristus
nchristus / keymap.c
Created June 9, 2017 18:51
QMK Ergodox Infinity keymap
#include "ergodox.h"
#include "debug.h"
#include "action_layer.h"
#define _BL 0 // default layer
#define _SY 1 // symbols
#define _MD 2 // media keys
// Helpful defines
#define _______ KC_TRNS
avrdude -p atmega32u4 -P /dev/tty.usbmodem14411 -c avr109 -U flash:w:lets_split_rev2_xyverz.hex
ls /dev/tty*
@nchristus
nchristus / checkbox.html
Created July 12, 2017 18:11
Checkbox example
<div class="checkbox">
<input type="checkbox" id="checkbox_1">
<label for="checkbox_1">Checkbox Label</label>
</div>