Skip to content

Instantly share code, notes, and snippets.

Tyler Shuster tylershuster

Block or report user

Report or block tylershuster

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tylershuster
tylershuster / onename.txt
Created Jun 14, 2016
Onename Verification
View onename.txt
Verifying that +tylershuster is my blockchain ID. https://onename.com/tylershuster
View ParseURL.js
function parseURL(url) {
var parser = document.createElement('a'),
searchObject = {},
queries, split, i;
// Let the browser do the work
parser.href = url;
// Convert query string to object
queries = parser.search.replace(/^\?/, '').split('&');
for( i = 0; i < queries.length; i++ ) {
split = queries[i].split('=');
View cvToggle.js
jQuery.fn.extend({
cvToggle: function( duration , easing ) {
easing = typeof easing !== 'undefined' ? easing : 'swing';
if( this.css('opacity') == '0' ) {
this.slideToggle({
duration: 'fast',
easing: easing,
@tylershuster
tylershuster / calendar.js
Last active Aug 29, 2015
Pulls in Calendar events and outputs in table
View calendar.js
function pad2(number) {
return (number < 10 ? '0' : '') + number
}
var monthNames = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
$.get('https://www.googleapis.com/calendar/v3/calendars/{calendar_id}/events?orderBy=startTime&singleEvents=true&key={api_key}&orderBy=startTime',function(data){
var events = data.items;
console.log(events);
events.reverse();
for (var i = events.length - 1; i >= 0; i--) {
if(events[i].start.dateTime) {
@tylershuster
tylershuster / gist:7a65fea8d27ebb12f2cb
Created Feb 3, 2015
Images Directory Function for Bones Themes
View gist:7a65fea8d27ebb12f2cb
<?
/**
* Retrieve images directory URI. Bones Extension
*
* @return string
*/
function get_images_directory_uri() {
$stylesheet = get_stylesheet();
$theme_root = get_theme_root( $stylesheet );
$stylesheet_dir = "$theme_root/$stylesheet/library/images";
View gist:84b9d5230778e6fefcc9
Verifying that +tylershuster is my openname (Bitcoin username). https://onename.io/tylershuster
@tylershuster
tylershuster / _musical-typography.scss
Last active Dec 28, 2015
Musical Typography - a Sass resource for calculating typographic ratios from the musical scale
View _musical-typography.scss
/* http://24ways.org/2011/composing-the-new-canon/ !*/
// Need to write cent calculator so that the font-size for the notes can all be based on cents
$note-small: ( font-size: 0.850, line-height: 1, padding-top: 0.75, padding-bottom: 0.25, font-weight: normal, font-style: normal);
$note-unison: ( font-size: 1.000, line-height: 2, padding-top: 0.75, padding-bottom: 0.25, font-weight: normal, font-style: normal);
$note-second-minor: ( font-size: 1.067, line-height: 2, padding-top: 0.60, padding-bottom: 0.40, font-weight: normal, font-style: normal);
$note-second: ( font-size: 1.125, line-height: 2, padding-top: 0.60, padding-bottom: 0.40, font-weight: bold, font-style: normal);
$note-third-minor: ( font-size: 1.200, line-height: 2, padding-top: 0.60, padding-bottom: 0.40, font-weight: normal, font-style: normal);
$note-third-major: ( font-size: 1.250, line-height: 2, padding-top: 0.55, padding-bottom: 0.45, font-weight: bold, font-style: normal);
$note-fourth-perfect: ( font-size: 1.330, line
View phi.scss
@mixin box {
margin: 0 auto;
display: inline-block;
float: left;
p, h1, h2, h3, h4, h5 {padding: 0;padding-left: 1rem;padding-right:1rem;}
}
/*the typography padding will eventually be 1em, adjusted for the size of each of the elements, after it all goes into media queries.*/
You can’t perform that action at this time.