Put flip
somewhere in your $PATH
and chmod a+x
it.
Copy fuck
into ~/.bashrc
.
def add(first, second): | |
smooshed = ''.join(sorted(first + second, reverse=True)) | |
smooshed = smooshed.replace('IIIII', 'V') | |
smooshed = smooshed.replace('VV', 'X') | |
smooshed = smooshed.replace('XXXXX', 'L') | |
return smooshed |
(Chapters marked with * are already written. This gets reorganized constantly | |
and 10 or so written chapters that I'm on the fence about aren't listed.) | |
Programmer Epistemology | |
* Dispersed Cost vs. Reduced Cost | |
* Verificationist Fallacy | |
* Mistake Metastasis | |
The Overton Window | |
Epicycles All The Way Down | |
The Hyperspace Gates Were Just There |
# Original Rails controller and action | |
class EmployeesController < ApplicationController | |
def create | |
@employee = Employee.new(employee_params) | |
if @employee.save | |
redirect_to @employee, notice: "Employee #{@employee.name} created" | |
else | |
render :new | |
end |
#!/usr/bin/python2.7 | |
import subprocess | |
def touchpad_currently_off(): | |
all_states = subprocess.check_output(['synclient']).split('\n') | |
off_state = next((s for s in all_states if 'touchpadoff' in s.lower()), None) | |
return '1' in off_state | |
def main(): | |
if touchpad_currently_off(): |