Skip to content

Instantly share code, notes, and snippets.

View 13protons's full-sized avatar

Alan Languirand 13protons

View GitHub Profile
@13protons
13protons / recipe.md
Last active August 29, 2015 14:07
Zetta Recipe Boilerplate
layout recipe
title
your title
author
your name
difficulty
beginner
hobbyist
moderate
experienced
pro
duration 1-3 hours
description Large intro text goes here
repo
link to source code needed for this recipe...git repo pages are great

#Environment Setup

What's Happening?

  1. We'll download and install a text editor.
  2. We'll install Ruby on our machines (or verify that it is installed)

##Text Editor

Download Sublime Text

@13protons
13protons / app.js
Last active August 29, 2015 14:07
Mock Button
module.exports = function(server) {
var buttonQuery = server.where({type: 'button'});
server.observe([buttonQuery], function(button){
button.on('click', function(b){
console.log(b);
})
});
@13protons
13protons / range.js
Last active August 29, 2015 14:07 — forked from mattmccray/range.js
// Creates a 'range' Array, extracted from Liquid.js
function makeRange(from, to) {
var arr= [],
left= parseInt(from),
right= parseInt(to);
// Check if left and right are NaN, if so try as characters
if( isNaN(left + right) ) {
// TODO Add in error checking to make sure ranges are single
// character, A-Z or a-z, etc.
left = from.charCodeAt(0);
@13protons
13protons / gist:bcc41bd978250c2cae91
Last active July 30, 2024 04:29
Design Process

Design Process

The Design Team is ultimately responsible for completing the steps in this process, although responsibility for performing the tasks in each step may reside with the Product or Engineering teams.

##Steps

The Design Process follows these 5 steps:

  1. Scope

Step #1: Initialize Your Project

1.1 Create Folder Structure

  • Create a new folder for you project
  • Navigate to that folder
  • Initialize node.js boilerplate
mkdir zetta-hello-world
#welcome to class
#goals for today
* learn about deckdown
* ???
* profit
##Corgis are awesome

#codemash

This is great

lets talk about deckdown

@13protons
13protons / tz_local.rb
Last active December 2, 2017 19:41
Localize dates in Jekyll template without specifying timezone offset
# A tiny Jekyll filter for giving custom dates a proper timezone offset
# example usage `{{ post.startDate | tz_local | date: '%l:%M %P'}}`
# Why? If you omit a timezone offset, Jekyll automatically adds +0000...which is probably not what you want.
# This let's dates like `startDate: 2015-1-14 18:00:00` render correcty in local time. DST is calculated correctly
# NOTE: This will still inherit Jekyll's timezone property as set in _config.yml
module TZLocal
def tz_local(input)
input = input + (Time.parse(input.to_s).gmt_offset) * -1
end

Can we be Agile?

Taking our team to the next level

The Basics

Ninja

Context