Skip to content

Instantly share code, notes, and snippets.

View ggpasqualino's full-sized avatar

Guilherme Pasqualino ggpasqualino

View GitHub Profile
@ggpasqualino
ggpasqualino / abort.html
Created June 13, 2019 12:50
FinTecSystems iframe
<body>
Aborted!
</body>
@ggpasqualino
ggpasqualino / daily_drip.elm
Last active September 9, 2016 09:32
exercise from daily drip made in the dev meeting
import Html exposing (..)
import Html.Events exposing (onClick)
import Html.App exposing (beginnerProgram)
type Msg
= Increment
| Decrement
@ggpasqualino
ggpasqualino / active_record_gem_rb.rb
Last active September 10, 2016 08:13
Activerecord relation transaction issue
begin
require "bundler/inline"
rescue LoadError => e
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler"
raise e
end
gemfile(true) do
source "https://rubygems.org"
# Activate the gem you are reporting the issue against.
@ggpasqualino
ggpasqualino / agent_example.exs
Last active November 25, 2015 19:17
Code examples for ruby meetup - Elixir edition
{:ok, agent} = Agent.start_link(fn -> [] end)
Agent.get(agent, fn list -> list end) # => []
Agent.update(agent, fn list -> ["eggs"|list] end) # => :ok
Agent.get(agent, fn list -> list end) # => ["eggs"]
Agent.stop(agent) # => :ok
@ggpasqualino
ggpasqualino / dev-resources.md
Last active September 10, 2016 08:21
Collection of resources we use to learn and get up-to-date