Skip to content

Instantly share code, notes, and snippets.

View jonchretien's full-sized avatar
📷

Jon C. jonchretien

📷
View GitHub Profile
http://uptodate.frontendrescue.org/
@jonchretien
jonchretien / addressSplitter.html
Last active December 18, 2015 00:18
Quick script used for splitting mailing addresses into multiple columns for Excel.
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
.column {
display: inline-block;
}
</style>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jonchretien
jonchretien / Gruntfile.js
Last active December 20, 2015 11:49
Gruntfile used for personal project.
module.exports = function(grunt) {
// project configuration.
grunt.initConfig({
dirs: {
dest: '_publish'
},
file: 'index.php',
pkg: grunt.file.readJSON('package.json'),
clean: {
@jonchretien
jonchretien / csv-to-json.py
Last active December 20, 2015 20:18
CSV to JSON converter for government data set.
#!/usr/bin/python
import os
import csv
import json
import fileinput
import glob
class CSVToJSONConverter():
"""Converts CSV data to JSON format"""
@jonchretien
jonchretien / embed-jq.js
Created August 9, 2013 17:05
Embed jQuery in Chrome console.
if (!window.jQuery) {
var script = document.createElement('script');
script.setAttribute('src', '//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js');
document.getElementsByTagName('head')[0].appendChild(script);
}
// Install a grunt plugin and save to devDependencies
// ex: gi nodemon
function gi() {
npm install --save-dev grunt-"$@"
}
// Install a grunt-contrib plugin and save to devDependencies
function gci() {
npm install --save-dev grunt-contrib-"$@"
}
<!doctype html>
<html>
<head>
<title>Card Effects</title>
<meta charset="UTF-8">
<style>
* {
margin: 0;
padding: 0;
}
@mixin flexbox() {
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
}
@mixin flex($values) {
-webkit-box-flex: $values;