Skip to content

Instantly share code, notes, and snippets.

View ajpocus's full-sized avatar

Austin Pocus ajpocus

View GitHub Profile
import shuffle from "lodash/shuffle";
import random from "lodash/random";
const makeThemeGenerator = (list) => {
function* actualGenerator() {
shuffle(list);
let idx = random(list.length - 1);
while (true) {
idx = (idx + 1) % list.length;
#!/bin/bash
hugo &&
hugo deploy &&
aws cloudfront create-invalidation --distribution=ELJZDBLCTCBH2 --paths="/*" >&1
# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
pull_request:
class Employee
attr_reader :name
def name=(name)
@name = name
end
def print_name
puts "Name: #{name}"
@ajpocus
ajpocus / gist:4981909
Created February 19, 2013 00:07
A failed jitsu deploy
(audio)austin-macbook:jokeio austin$ jitsu deploy
info: Welcome to Nodejitsu Joke.io
info: jitsu v0.12.0, node v0.8.14
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing application dependencies in node app
warn: Local package version appears to be old
warn: The package.json version will be incremented automatically
warn: About to write /Users/austin/projects/jokeio/package.json
warn: Using '*' as a version for dependencies may eventually cause issues
@ajpocus
ajpocus / unintentional.rb
Created June 15, 2012 07:39
unintentionally profound
class Creator < ActiveRecord::Base
belongs_to :creation
end