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 | |
set -o errexit | |
echo "Removing exited docker containers..." | |
docker ps -a -f status=exited -q | xargs -r docker rm -v | |
echo "Removing dangling images..." | |
docker images --no-trunc -q -f dangling=true | xargs -r docker rmi |
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
# original text is from http://www.bacterio.net/-classifphyla.html | |
# load hard-coded filename LPSN.txt into a string | |
# create a File object from LPSN.txt | |
line_array = File.readlines("LPSN.txt") or die "LPSN.txt not found." | |
# todo: parse lines your own way if it helps separate genuses. | |
# todo: grab this data directly from the website | |
# use the included date to report how old the current genus table is | |
# phylum = "no phylum" |
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
# simple sinatra auth | |
use Rack::Auth::Basic, "Restricted Area" do |username, password| | |
{ | |
"admin1" => "password1", | |
"admin2" => "password2" | |
}[username] == password | |
end |
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
#TODO use Faker | |
FactoryGirl.define do | |
factory :user do | |
account | |
sequence :email do |n| | |
"user_#{n}@example.com" | |
end | |
first_name 'John' |
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
$(document).ready(function(){ | |
var r=function(e){ | |
alert("Hello World"); | |
}; | |
$("#remove").click(r); | |
}); |