Skip to content

Instantly share code, notes, and snippets.

@djsegal
djsegal / 04_sidekiq.config
Last active February 24, 2016 01:59
Consolidated code snippet from seg.al/blog/sidekiq
#.ebextensions/04_sidekiq.config
commands:
create_post_dir:
command: "mkdir /opt/elasticbeanstalk/hooks/appdeploy/post"
ignoreErrors: true
files:
#!/usr/bin/env bash
# Generates gource video out of multiple repositories.
# First, get a local branch/clone of each repository.
# Then, pass the repositories as command line arguments.
#
# Example:
# $ multi-gource.sh /path/to/repo1 /path/to/repo2
outfile="gource.mp4"
.CodeMirror-line {
padding-left: 24px !important;
}
#wl-navbar {
display: none;
}
#wl_main_container {
top: 0;
@djsegal
djsegal / Boot_Solo.jl
Last active December 18, 2017 00:20
Boot Load Performance
using BenchmarkTools
cur_count = 10
cur_time = 0.0
for cur_index in 1:cur_count
tic()
map(rm, Base.find_all_in_cache_path(:Boot)) ; reload("Boot") ;
cur_time += toc()
end
[
"about",
"about-u",
"about-us",
"abouts",
"abuse",
"abuses",
"access",
"accesses",
"account",
Playlist Daft Punk Bonobo Hans Zimmer ... Billie Eilish
Coding 💻 13 6 2 ... 0
Pop Programming 0 0 0 ... 3
... ... ... ... ... ...
Night Coding 1 2 0 ... 0
id zipcode price month year accommodates bathrooms bedrooms beds geometry is_brooklyn
38553206 10002 160 11 2019 4 1 1 2 POINT (-73.99462 40.71355) False
38553206 10002 160 10 2019 4 1 1 2 POINT (-73.99462 40.71355) False
38553206 10002 160 9 2019 4 1 1 2 POINT (-73.99462 40.71355) False
38553206 10002 160 8 2019 4 1 1 2 POINT (-73.99462 40.71355) False
38529246 10036 450 11 2019 6 1 2 2 POINT (-73.98781 40.7588) False
38529246 10036 450 10 2019 6 1 2 2 POINT (-73.98781 40.7588) False
38529246 10036 450 9 2019 6 1 2 2 POINT (-73.98781 40.7588) False
variable $/unit
bathrooms 110.28
bedrooms 27.12
accommodates 10.95
year_2019 -6.48
month_12 -2.25
beds -1.99