Skip to content

Instantly share code, notes, and snippets.

View jonchretien's full-sized avatar
📷

Jon C. jonchretien

📷
View GitHub Profile
@jonchretien
jonchretien / index.html
Last active December 26, 2015 03:29
Rough prototype using a slider control.
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>slider module</title>
<style>
input[type="range"] {
width: 300px;
}
input[type="text"] {
@jonchretien
jonchretien / sublime.md
Created November 4, 2013 14:56
Useful keyboard shortcuts for Sublime Text 2.

Sublime Text 2 Cheat Sheet

  • Paste and Indent: Shift+Command+V
  • Insert Line Before: Command+Return
  • Insert Line After: Shift+Command+Return
  • Delete to Beginning: Command+Delete
  • Delete to End: Ctrl+K
  • Transpose: Ctrl+T
  • Join Lines: Command+J
  • Swap Line Up: Ctrl+Command+Up
/**
* Convert font-size from px to rem with px fallback
*
* @param $size - the value in pixel you want to convert
*
* e.g. p {@include fontSize(12px);}
*
*/
// Function for converting a px based font-size to rem.
@jonchretien
jonchretien / us-state-names.json
Created November 26, 2013 16:02
State info with ids from topo.json file.
[
{
"name": "Alabama",
"abbreviation": "AL",
"id": 1
},
{
"name": "Alaska",
"abbreviation": "AK",
"id": 2
@jonchretien
jonchretien / us-states.json
Last active December 29, 2015 19:09
topojson -o output.json -e us-states.tsv -p -- us-states.json https://github.com/mbostock/topojson/wiki/Command-Line-Reference
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jonchretien
jonchretien / Makefile
Created December 31, 2013 17:46 — forked from mbostock/.block
GENERATED_FILES = \
unemployment.tsv
.PHONY: all clean
all: $(GENERATED_FILES)
clean:
rm -rf -- $(GENERATED_FILES)
@jonchretien
jonchretien / isMobile.js
Created January 6, 2014 15:02
Snippet from NYT redesign marketing page.
// Add HTML5 video play button for iphone/ipad/android
var isMobile = {
Android: function() {
return navigator.userAgent.match(/Android/i);
},
BlackBerry: function() {
return navigator.userAgent.match(/BlackBerry/i);
},
iOS: function() {
return navigator.userAgent.match(/iPhone|iPad|iPod/i);
<div class="arrow-container arrow-up arrow-up-1">
<div class="arrow"></div>
</div>
<hr>
<div class="arrow-container arrow-down arrow-down-1">
<div class="arrow"></div>
</div>
@jonchretien
jonchretien / Makefile
Created January 26, 2014 05:05 — forked from mbostock/.block
GENERATED_FILES = \
unemployment.tsv
.PHONY: all clean
all: $(GENERATED_FILES)
clean:
rm -rf -- $(GENERATED_FILES)
id name priority who time status
T-024 Organisation list in directory MUST Joe 5 Complete
T-015 Make term Commissions customisable MUST Natasha 6 Complete
T-016 Comments popup on select rates MUST Mike 3 In Progress
T-0169 Upgrade Centos Box MUST Joe 2 In Progress
T-013 Search in Documents on selected folder MUST Natasha 6 In Progress
T-014 Separate Document system for LA and Legals MUST Joe 9 In Progress
T-017 Demo of Look and Feel of Documents front end MUST Natasha 5 In Progress
T-021 Fix error where forum filename is greater than 100chars MUST Mike 4 Not Started
T-025 Fix admin so structure of categories displayed MUST Mike 2.5 Complete