I hereby claim:
- I am foca on github.
- I am foca (https://keybase.io/foca) on keybase.
- I have a public key whose fingerprint is 96C6 54DB 13EA 4B40 A061 0BC5 5BC4 04A2 96AD ABC8
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env ruby | |
# Generate make dependencies by parsing a tree of JS / CSS files. | |
# | |
# Usage | |
# ----- | |
# | |
# Add this to your Makefile: | |
# | |
# ``` |
require "granola" | |
class BaseSerializer < Granola::Serializer | |
def to_json(**opts, &block) | |
root_serializer = RootSerializer.new(self) | |
Granola.renderer(:json).render(root_serializer, **opts, &block) | |
end | |
end | |
class RootSerializer < Granola::Serializer |
/** | |
* CodeTree default styles are pretty terrible, and the task board | |
* is pretty cluttered with lots of useless things. | |
* | |
* This is a user stylesheet that makes the board pretty clean by | |
* removing the sidebar and top navigation. | |
* | |
* You should apply it to URLs matching `/projects/\w+/board` | |
* | |
* |
This is a talk I gave for the Hacker Paradise Summer '16 crew at Porto, Portugal. You can find the slides at SpeakerDeck. Photo Credits at the bottom.
I'm gonna tell you the story of a little startup. It started with an idea, as startups often do. Two passionate people saw that certain people on the internet had a problem, and they could solve it for them. For a small fee, of course.
They wanted to avoid venture capital and investors, so from the get-go they were fully bootstrapped, which meant working during their free time. But they were to be their own bosses, and finally be free and financially independent. They were excited! It was a time of joy.
They started small and lean. One of them a designer, the other a developer. They figured out the best way to get it done was to crank away, so they jumped into creating a prototype straight away.
#!/usr/bin/env bash | |
set -e | |
[ -z "$DEBUG" ] || set -x; | |
usage() { | |
echo "$0 <repo> <tag> [<release name>] [-- <asset>...]" >&2; | |
} | |
if [ "$1" = "-h" -o "$1" = "--help" ]; then |
## | |
# Bundler for Heroku | |
## | |
Gemfile.lock: Gemfile | |
ruby -S bundle install | |
Gemfile: .gems | |
echo "source \"https://rubygems.org\"" > $@ | |
echo "ruby \"$(shell ruby -e 'puts RUBY_VERSION')\"" >> $@ |
This Makefile aids in developing a ruby gem. It's pretty opinionated to my workflow, but it might be useful to you, so here it goes.
gs
][gs] (or [gst
][gst]) for managing gemsets.dep
][dep] for installing dependencies. Because fuck
Bundler.basename $(dirname $(pwd))
would return foo
#!/usr/bin/env bash | |
set -e | |
[ -n "$DEBUG" ] && set -x | |
layout="$(pwd)/.tmuxify.layout" | |
if [ ! -f "$layout" ]; then | |
echo "Can't find ./.tmuxify.layout" >&2 | |
exit 1 |
#!/usr/bin/env ruby | |
# | |
# Find repeated output across runs of a process. | |
# | |
# Usage: | |
# | |
# ./inspector "./minitest-runner some_failing_test" | |
# | |
# The main purpose for this is to find tests that pollute the environment making | |
# other tests fail erratically, for test suites that run in a random order. |