Skip to content

Instantly share code, notes, and snippets.

View aotarola's full-sized avatar
🎯
Focusing

Andres Otarola aotarola

🎯
Focusing
View GitHub Profile
function variablePass(x, obj1, obj2)
{
x /= 5;
obj1.id = "newId";
obj2 = {id: "newId"};
}
var x = 10;
var obj1 = {id: "oldId"};
var obj2 = {id: "oldId"};
...
redis.set("#{@user}-#{@deal.id}", @deal.permalink)
Order.place_for_user(@user, @deal, @data)
...
commit1
commit2 <- quitar
commit3 <- quitar
commit4
git revert commit2
git revert commit3
function myfunction(){}
var functionAnonima = function(){};
@aotarola
aotarola / First.elm
Created February 2, 2016 04:01 — forked from shamrin/First.elm
Multiple Elm main modules
module First where
import Html exposing (span, text)
main = span [ ] [text "Hello First!"]
@aotarola
aotarola / Counter.elm
Created May 19, 2016 20:37 — forked from pdamoc/Counter.elm
Widget Union
module Counter exposing (..)
import Html exposing (..)
import Html.Attributes exposing (style)
import Html.Events exposing (onClick)
-- MODEL
type alias Model = Int
@aotarola
aotarola / Component.elm
Created May 29, 2016 15:38 — forked from pdamoc/Component.elm
Counter through JS
module Component exposing (..)
import Html exposing (..)
import Html.Attributes exposing (style)
import Html.Events exposing (onClick)
import Ports exposing (..)
-- MODEL
@aotarola
aotarola / Main.elm
Last active September 17, 2016 03:27
Trying to reset a `select` element to previous value (when a task fails)
module Main exposing (..)
import Html.App as App
import Html exposing (..)
import Html.Attributes exposing (..)
import Json.Decode as Json
import Html.Events exposing (on, targetValue)
import String
import Task
import Json.Decode as Decode exposing ((:=))
@aotarola
aotarola / SelectWithDelay.elm
Last active September 17, 2016 03:30
[solution using Process.sleep] Trying to reset a `select` element to previous value (when a task fails) Raw
module Main exposing (..)
import Html.App as App
import Html exposing (..)
import Html.Attributes exposing (..)
import Json.Decode as Json
import Html.Events exposing (on, targetValue)
import String
import Task
import Json.Decode as Decode exposing ((:=))
@aotarola
aotarola / README-Template.md
Created April 3, 2019 02:15 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites