Skip to content

Instantly share code, notes, and snippets.

View get-repos-issues.md

To get a list of the issues for one of your repositories:

curl -H "Authorization: token OAUTH-TOKEN" https://api.github.com/repos/:owner/:repository/issues

Then grep to your heart's desire.

@agconti
agconti / fizzBuzz.swift
Created Dec 14, 2015
FrizzBuzz in swift
View fizzBuzz.swift
func frizzBuzz(range:Int) -> Void {
for num in 1..<range {
var output:String = "";
if num % 3 == 0 {
output = "frizz";
}
if num % 5 == 0 {
output += "buzz";
View using-docs.md

Setup docs

Create and activate a virtualenv:

virtualenv env
source env/bin/activate

Install dependencies:

@agconti
agconti / slugify.js
Created Oct 21, 2015 — forked from mathewbyrne/slugify.js
Javascript Slugify
View slugify.js
function slugify(text)
{
return text.toString().toLowerCase()
.replace(/\s+/g, '-') // Replace spaces with -
.replace(/[^\w\-]+/g, '') // Remove all non-word chars
.replace(/\-\-+/g, '-') // Replace multiple - with single -
.replace(/^-+/, '') // Trim - from start of text
.replace(/-+$/, ''); // Trim - from end of text
}
View git-workflow.md

Goal

Make an ansychrous workflow that allows the team to collaborate seemlessly, on their terms.

Background

What we had

Git Flow

  • You've probably used to it.
View PhotoFire_feature_set.md

PhotoFire

A simple service that abstracts the process of uploading images and optimizing them for mobile. PhotoFire will have libraries for popular web frameworks that will allow developers specify to their desired file sizes and PhotoFire will directly upload the photos to S3 and will process them to the correct sizes. Photos will then be hosted via Cloud Front.

MVP

Upload photos

  • Photos should be streamed directly to S3
  • Request can contain an array of desired sizes

Image Processing

View notit_feature_set.md

NotIt!

NotIt! is a better “noes goes”. It randomly chooses a finger thats touching the screen, allowing you to make decisions for the group.

App:

After two or more users touch the screen, the app selects one at random.

Initial state:

  • Blank screen
  • Red border
  • CTA asking users to touch
@agconti
agconti / fabfile.py
Last active Jan 29, 2019
Fabfile for django 1.7 + for easily deploying on heroku.
View fabfile.py
import os
import random
import string
from fabric.api import env, local, require, lcd
from fabric.colors import cyan
from fabric.operations import prompt
current_dir = os.getcwd()
env.project_name = '{{cookiecutter.app_name}}'