Skip to content

Instantly share code, notes, and snippets.


Iwan Buetti iwan

View GitHub Profile
iwan / province.geojson
Last active Feb 18, 2019 — forked from datajournalism-it/province.geojson
Confini amministrativi delle province italiane
View province.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
iwan /
Created Apr 4, 2018 — forked from hmans/
Notes on learning Elixir and Phoenix

Notes on learning Elixir and Phoenix

Just some assorted notes I've made while digging into Phoenix, Elixir and friends. I'm coming from a strong Rails background, so many of these will refer to features from that framework.

Views / Templates

Biggest difference from Rails?

Unlike Rails, where rendering is almost always performed by a template file, the responsibility of rendering a response in Phoenix lies with a view module (that typically corresponds to the current controller module.) This view module will typically offer a whole bunch of render functions (matching different parameters, first and foremost the template name.) Templates (found in web/templates/) will directly compile into such functions.

iwan / new.html
Created Feb 22, 2017 — forked from mediasota/new.html
Refactor Rails application layout to use HTML5 semantics with HAML
View new.html
<!DOCTYPE html>
<!-- -->
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<meta charset='utf-8'>
iwan / 1.yml
Created Feb 17, 2017 — forked from ndelitski/1.yml
drone.yml examples
View 1.yml
image: golang:$$GO_VERSION
- TAGS="pam sqlite"
- BUILD_OS="windows linux darwin freebsd openbsd netbsd"
iwan /
Last active Mar 20, 2018 — forked from epistrephein/
Italian translation for Devise 3.5
# Italian translation for Devise 4.2
# Date: 2016-08-01
# Author: epistrephein, iwan
# Note: Thanks to xpepper (
# Additional translations at
confirmed: "Il tuo account è stato correttamente confermato."
View net_http.rb
require 'net/http'
def download_net_http(uris, thread_count)
queue = { |uri| queue << uri }
threads = do do
while !queue.empty? && uri = queue.pop
iwan / git.css
Last active Aug 29, 2015 — forked from neilgee/git.css
View git.css
/* Set up Git Configuration */
git config --global ""
git config --global "Your Name"
git config --global core.editor "vi"
git config --global color.ui true
View route.rb
# NOTE below gems are only for development purpose can be removed and commented out as per requirement
group :development do
gem 'rails-erd','1.0.0'
gem 'hirb','0.7.0'
gem 'railroady'
gem 'itslog','0.6.1'
gem 'quiet_assets'
gem 'sextant' # now included in Rails 4.0
WARNING: Nokogiri was built against LibXML version 2.7.3, but has dynamically loaded 2.7.8
ERROR -: Incompatible library version: nokogiri.bundle requires version 11.0.0 or later, but libxml2.2.dylib provides version 10.0.0
gem uninstall nokogiri libxml-ruby
brew update
brew uninstall libxml2
You can’t perform that action at this time.