Keybase proof
I hereby claim:
- I am rubysolo on github.
- I am rubysolo (https://keybase.io/rubysolo) on keybase.
- I have a public key ASBBeCasDm6kVZomh3PnAdGQYeOJVOeqqINbvglD00so9Ao
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Phoenix esbuild with Tailwind+Fontawesome |
/** | |
* Wrapper around terragrunt to display output succinctly on Atlantis. | |
* | |
* Terragrunt is notoriously verbose, which can cause Atlantis to output | |
* hundreds of comments on single PRs, which can be annoying. | |
* | |
* This script will output just the final plan for resources to update on | |
* successful terragrunt runs, but will output all terragrunt output on | |
* errors. | |
*/ |
class Bad < ActiveRecord::Migration | |
def change | |
Post.update_all(active: true) # <-- resolves to Post defined in app/models/post.rb | |
end | |
end |
Requires NATS 2.x, which is currently unreleased, so must be built from master.
nats-sub -s nats://quser1:one@$NATS_SERVER:$NATS_PORT 'foo'
class Garden | |
DEFAULT_STUDENTS = %w( | |
Alice Bob Charlie David | |
Eve Fred Ginny Harriet | |
Ileana Joseph Kincaid Larry | |
) | |
def initialize(garden_order, students=DEFAULT_STUDENTS) | |
@garden_order = garden_order | |
@students = students.map { |student| student.downcase }.sort |
#!/bin/sh | |
# manually download and "install" a given mix dep for non-elixir environment | |
# | |
# for example, download phoenix in a frontend build stage to get JS deps | |
depname=$1 | |
version=$(grep "\"$depname\"" mix.lock | cut -d, -f 3 | sed -e 's/ *"//g') | |
echo "installing $depname version $version..." |
var dqData=[]; | |
dqData.push({title:'Product Groups', | |
mean:0.0393, | |
dP:[ | |
['GROUP01',-0.0435,32937], | |
['GROUP10',-0.2651,132], | |
['GROUP11',-0.0694,1164], | |
['GROUP12',0.0345,17127], | |
['GROUP13',-0.0288,8858], | |
['GROUP18',-0.3741,46], |
find . -type f -print0 | xargs -0 ls -l | awk '{ n=int(log($5)/log(2)); if (n<10) { n=10; } size[n]++ } END { for (i in size) printf("%d %d\n", 2^i, size[i]) }' | sort -n | awk 'function human(x) { x[1]/=1024; if (x[1]>=1024) { x[2]++; human(x) } } { a[1]=$1; a[2]=0; human(a); printf("%3d%s: %6d\n", a[1],substr("kMGTEPYZ",a[2]+1,1),$2) }' |