Skip to content

Instantly share code, notes, and snippets.

Jared Palmer jaredpalmer

Block or report user

Report or block jaredpalmer

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
@jaredpalmer
jaredpalmer / feed.xml
Created Nov 30, 2014
feed.xml for Jekyll
View feed.xml
---
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 Aug 29, 2015
BrowserSynce-Grunt yo-Jekyllrb
View 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 Dec 9, 2014
default jekyll frontmatter
View default jekyll post
---
layout: post
title: "Welcome to Jekyll!"
date: 2014-12-09 10:33:07
categories: jekyll update
---
View 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 Jan 26, 2015
telescope-newsletter-fork
View newletter.js
campaignSchema = new SimpleSchema({
_id: {
type: String,
optional: true
},
createdAt: {
type: Date,
optional: true
},
sentAt: {
@jaredpalmer
jaredpalmer / style.css
Last active Aug 29, 2015
Nice Helvetica
View style.css
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;
}
View frid.coffee
rows = 30
cols = 30
gutter = 16
width = 50
height = 50
for rowIndex in [0..rows-1]
for colIndex in [0..cols-1]
View AppStateMachine.coffee
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
View gist:7c79b6b79929245eb39b
<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>
You can’t perform that action at this time.