Skip to content

Instantly share code, notes, and snippets.

@davoclavo
davoclavo / senior-software-engineer.md
Last active Oct 27, 2020
Senior Software Engineer role at Deal Engine
View senior-software-engineer.md

Senior Software Engineer role at Deal Engine

At Deal Engine we strive on automating and optimizing processes in an industry that has been stagnant for several decades - the travel industry.

  • Have you ever wondered what happens to your ticket when you miss a flight? And did you know you can always get some money back?
  • Have you ever experienced the price volatility where sometimes you end up paying a lot more than the person sitting next to you on a plane?

We solve these and more pains, working with leisure and corporate travelers, along with airlines and service providers. We are on a mission to become the most efficient and transparent online travel agency in the world.

Even though we are a small team we are currently operating in more than 10 countries, managing and optimizing more than 1 billion dollars in flight tickets.

View keybase.md

Keybase proof

I hereby claim:

  • I am davoclavo on github.
  • I am davoclavo (https://keybase.io/davoclavo) on keybase.
  • I have a public key ASD4Am3OKkqntnvK5LFB7w15YA0fElSjPf8g1EWO77bK9Ao

To claim this, I am signing this object:

@davoclavo
davoclavo / key.md
Created Feb 28, 2019 — forked from shobotch/key.md
Twitter (un)official Consumer Key
View key.md

Twitter Official Consumer Key

Twitter for Android

type:            PIN
Consumer key:    3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for iPhone

type:            PIN
Consumer key:    IQKbtAYlXLripLGPWd0HUA
View spacemacs-cheshe.md

Useful Spacemacs commands

  • SPC q q - quit
  • SPC w / - split window vertically
  • SPC w - - split window horizontally
  • SPC 1 - switch to window 1
  • SPC 2 - switch to window 2
  • SPC w c - delete current window
  • SPC TAB - switch to previous buffer
  • SPC b b - switch buffers
@davoclavo
davoclavo / download_vines.py
Last active Dec 9, 2016
Python script to download your Vine timeline and likes
View download_vines.py
import os
import vinepy
import time
import requests
vine = vinepy.API(username='your@email.com', password='your_password')
main_dir = os.path.expanduser("~/Desktop/vines/")
def save_vines(vines, subfolder):
sub_dir = os.path.join(main_dir, subfolder)
View types.markdown

Types

A type is a collection of possible values. An integer can have values 0, 1, 2, 3, etc.; a boolean can have values true and false. We can imagine any type we like: for example, a HighFive type that allows the values "hi" or 5, but nothing else. It's not a string and it's not an integer; it's its own, separate type.

Statically typed languages constrain variables' types: the programming language might know, for example, that x is an Integer. In that case, the programmer isn't allowed to say x = true; that would be an invalid program. The compiler will refuse to compile it, so we can't even run it.

View elm-slider.elm
import Html exposing (Html, input, text, div)
import Html.App exposing (beginnerProgram)
import Html.Attributes exposing (type')
import Html.Events exposing (on, targetValue, onInput)
import Json.Decode as Json
type alias Model =
{ value : String
}
@davoclavo
davoclavo / conn.ex
Last active Jun 16, 2016
Plug.Conn.to_uri
View conn.ex
defmodule Plug.Conn do
def to_uri(conn) do
query = case conn.query_string do
"" -> nil
query -> query
end
%URI{
scheme: conn.scheme |> to_string,
host: conn.host,
port: conn.port,
@davoclavo
davoclavo / up-and-running-with-edeliver-on-do.md
Last active Jul 12, 2020 — forked from mattweldon/up-and-running-with-edeliver-on-do.md
Getting Elixir / Phoenix running on Digital Ocean with edeliver
View up-and-running-with-edeliver-on-do.md

Build Server

  • Go to Digital Ocean
  • Create new ubuntu droplet

Setup Server

@davoclavo
davoclavo / dokku_on_digital_ocean.md
Created Mar 20, 2016 — forked from henrik/dokku_on_digital_ocean.md
Notes from running Dokku on Digital Ocean.
View dokku_on_digital_ocean.md

My notes for Dokku on Digital Ocean.

Commands

Install dokku-cli (gem install dokku-cli) for a more Heroku-like CLI experience (dokku config:set FOO=bar).

# List/run commands when not on Dokku server (assuming a "henroku" ~/.ssh/config alias)
ssh henroku dokku
ssh henroku dokku config:get my-app
You can’t perform that action at this time.