Skip to content

Instantly share code, notes, and snippets.

View ubugnu's full-sized avatar
💭
having fun with react ...

Bouzid Badreddine ubugnu

💭
having fun with react ...
View GitHub Profile
[ $(yarn info --silent my_package name) = my_package ]
@ubugnu
ubugnu / rspec_fix_locale.rb
Last active August 5, 2018 17:02
RSpec: set locales so routes helpers do not fail in tests
# spec/support/locales.rb
RSpec.configure do |config|
# this filter hook set the default locale for the filtered examples to get
# the correct path helpers
# for example the route:
# scope "(:locale)" do
# get "xxx/:id", to: "xxx#show", as: :xxx
# end
# the helper for this route is for example:
# xxx_path(1)
@ubugnu
ubugnu / GFS
Created February 15, 2014 20:40 — forked from anonymous/GFS
#!/bin/bash
rm *.png run.mp4
for i in {3..192..3}
do
wget http://modeles.meteociel.fr/modeles/gfs/run/gfs-2-$i-3h.png
convert -pointsize 18 -font /path/to/font.ttf -fill red -draw "text 470,50 \"makhdoum by ubugnu ;-)\"" gfs-2-$i-3h.png gfs-2-$i-3h.png
done
j=1
for i in {3..192..3}