This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
hugo && | |
hugo deploy && | |
aws cloudfront create-invalidation --distribution=ELJZDBLCTCBH2 --paths="/*" >&1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Employee | |
attr_reader :name | |
def name=(name) | |
@name = name | |
end | |
def print_name | |
puts "Name: #{name}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Creator < ActiveRecord::Base | |
belongs_to :creation | |
end |