Skip to content

Instantly share code, notes, and snippets.

View jaredpalmer's full-sized avatar

Jared Palmer jaredpalmer

View GitHub Profile
@jaredpalmer
jaredpalmer / feed.xml
Created November 30, 2014 00:40
feed.xml for Jekyll
---
layout: null
---
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ site.title | xml_escape }}</title>
<description>{{ site.description | xml_escape }}</description>
<link>{{ site.url }}{{ site.baseurl }}/</link>
<atom:link href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" rel="self" type="application/rss+xml"/>
@jaredpalmer
jaredpalmer / BrowserSynce-Grunt, yo-Jekyllrb
Last active August 29, 2015 14:11
BrowserSynce-Grunt yo-Jekyllrb
browserSync: {
server: {
bsFiles: {
src: [
'.jekyll/**/*.html',
'.tmp/css/**/*.css',
'{.tmp,<%= yeoman.app %>}/<%= js %>/**/*.js',
'{<%= yeoman.app %>}/_bower_components/**/*.js',
'<%= yeoman.app %>/img/**/*.{gif,jpg,jpeg,png,svg,webp}'
]
@jaredpalmer
jaredpalmer / default jekyll post
Created December 9, 2014 15:57
default jekyll frontmatter
---
layout: post
title: "Welcome to Jekyll!"
date: 2014-12-09 10:33:07
categories: jekyll update
---
@jaredpalmer
jaredpalmer / form.js
Last active August 29, 2015 14:12 — forked from dhcole/form.js
$(function(){
var formUrl = '/* ex: https://docs.google.com/a/developmentseed.org/spreadsheet/formResponse?formkey=... */';
// Set up map
var m = mapbox.map('map').addLayer(mapbox.layer().id(' /* mapbox-account.id */ '));
// Set up map ui features with point selector
var ui = mapbox.ui().map(m).auto().pointselector(function(d) {
// Remove all points except the most recent
@jaredpalmer
jaredpalmer / newletter.js
Created January 26, 2015 16:34
telescope-newsletter-fork
campaignSchema = new SimpleSchema({
_id: {
type: String,
optional: true
},
createdAt: {
type: Date,
optional: true
},
sentAt: {
@jaredpalmer
jaredpalmer / style.css
Last active August 29, 2015 14:14
Nice Helvetica
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6, p, .navbar, .brand, .btn-simple, a, .td-name, td {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
font-family: "Helvetica Neue","Open Sans",Arial,sans-serif;
}
h1, .h1, h2, .h2, h3, .h3, h4, .h4 {
font-weight: 400;
margin: 30px 0 15px;
}
rows = 30
cols = 30
gutter = 16
width = 50
height = 50
for rowIndex in [0..rows-1]
for colIndex in [0..cols-1]
EventEmitter = (require?("./EventEmitter") || Framer).EventEmitter
class AppStateMachine extends EventEmitter
constructor: ->
@states = []
# Start the state machine with the document's hash, or the given route
start: (name) ->
@go if document.location.hash then document.location.hash[1..-1] else name
@jaredpalmer
jaredpalmer / gist:7c79b6b79929245eb39b
Created February 13, 2015 17:50
wordpress nav inner
<div class="wrapper">
<!-- logo -->
<!-- /logo -->
<!-- nav -->
<nav class="nav" role="navigation">
<ul class="mtree">
<li><a class="menu" href="">MENU</a><?php html5blank_nav(); ?></li>
</ul>