Skip to content

Instantly share code, notes, and snippets.

View jonsecchis's full-sized avatar

Jon Secchis jonsecchis

View GitHub Profile
@jonsecchis
jonsecchis / rAF.js
Created October 5, 2019 02:41 — forked from paulirish/rAF.js
requestAnimationFrame polyfill
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel
// MIT license
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];
@jonsecchis
jonsecchis / sanfrancisco-font.css
Created September 17, 2019 08:00
San Francisco Web Font
/** WARNING - USE AT OWN RISK */
/** IT IS AGAINST APPLE'S POLICY TO USE SF PRO FOR ANYTHING OTHER THAN iOS/tvOS/macOS/watchOS DESIGN & DEVELOPMENT */
/** https://sf.abarba.me/font.css */
/** https://sf.abarba.me/LICENSE.pdf */
/** 1. Copy/import this file into your main css/scss file */
/** 2. Change css font-family: to "SF Text", "SF Display" or "SF Mono" */
/** 3. Apply font-weight or italic to html elements */
/** THANK YOU */
@jonsecchis
jonsecchis / file-replicator.py
Created February 24, 2018 02:53 — forked from cgm616/file-replicator.py
Simple python script that will replicate itself
import os
import binascii
def replicate(path):
#
# Replicate a file given the path of the current file. Opens current file
# and new file and reads all lines into new file.
#
with open(get_new_filename(path), "w") as newfile, open(path) as program:
for line in program:
@jonsecchis
jonsecchis / README.md
Created July 5, 2017 20:58 — forked from joyrexus/README.md
Vanilla JS equivalents of jQuery methods

Sans jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})