This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| defmodule Indicator.OhlcWorker do | |
| use GenServer | |
| alias Core.Struct.TradeEvent | |
| alias Decimal, as: D | |
| require Logger | |
| @pubsub_client Application.get_env(:core, :pubsub_client) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"/> | |
| <link rel="stylesheet" href="./style.css"> | |
| <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css"> | |
| </head> | |
| <body> | |
| <canvas id="canvasDemo" height="1920" width="1080"> | |
| Sorry, your browser does not support canvas. | |
| </canvas> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| defmodule BinanceMock do | |
| use GenServer | |
| alias Decimal, as: D | |
| require Logger | |
| defmodule State do | |
| defstruct order_books: %{}, | |
| subscriptions: [], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const express = require('express'); | |
| const rp = require('request-promise-native'); | |
| const app = express(); | |
| const port = 3000; | |
| const hostname = 'https://bobs-epic-drone-shack-inc.herokuapp.com'; | |
| const cache = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo apt-get -y install build-essential autoconf m4 libncurses5-dev libwxgtk3.0-dev libgl1-mesa-dev libglu1-mesa-dev libpng-dev libssh-dev unixodbc-dev xsltproc fop |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo apt install i3 nitrogen |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Raspbian installed | |
| - update | |
| - install vino: https://pimylifeup.com/raspberry-pi-screen-sharing/ | |
| sudo apt-get install vino | |
| gsettings set org.gnome.Vino authentication-methods "['none']" | |
| gsettings set org.gnome.Vino require-encryption false | |
| gsettings set org.gnome.Vino prompt-enabled false | |
| /usr/lib/vino/vino-server |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apt-get install wget libssl-dev ncurses-dev m4 unixodbc-dev erlang-dev | |
| wget http://erlang.org/download/otp_src_21.2.tar.gz | |
| tar -xzvf otp_src_21.2.tar.gz | |
| ./configure | |
| # Below takes absolute ages | |
| make | |
| sudo make install | |
| wget https://github.com/elixir-lang/elixir/releases/download/v1.8.1/Precompiled.zip | |
| unzip Precompiled.zip -d elixir |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ``` | |
| minikube start --kubernetes-version v1.11.3 | |
| sudo apt-get remove kubectl && sudo apt-get install kubectl=1.11.3-00 | |
| kubectl version # they should be the same, or clowns will eat you | |
| kubectl get deployments | |
| kubectl get services | |
| kubectl get pods |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package Main | |
| import services.{PostsService, UsersService} | |
| import dispatch._ | |
| import models.{Post, User} | |
| import scala.concurrent.ExecutionContext.Implicits.global | |
| object Main extends App { | |
| def run(): Future[(User, List[Post])] = { |
NewerOlder