Skip to content

Instantly share code, notes, and snippets.

View ybur-yug's full-sized avatar

yburyug ybur-yug

View GitHub Profile
@ybur-yug
ybur-yug / servo4noobs.md
Created October 16, 2015 16:05 — forked from paulrouget/servo4noobs.md
Hacking Servo For Noobs
@ybur-yug
ybur-yug / epicdiff.md
Last active September 28, 2015 21:38
require 'ostruct'
require 'csv'
require 'open-uri'
-require 'rest-client'
+require 'uri'
+
+require 'yahoo_finanza/parser'

module YahooFinanza
FROM ubuntu:15.04
MAINTAINER Johnny Mejias jmejias17@gmail.com
# Locale setup due to defaults that come from being in PR
RUN locale-gen en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LC_ALL en_US.UTF-8
RUN apt-get update && \
defmodule NuntiusOpera.Mixfile do
use Mix.Project
def project do
[app: :nuntius_opera,
version: "0.0.1",
elixir: "~> 1.0",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
fatal: [104.131.191.104] => SSH Error: Permission denied (publickey,password).
while connecting to 104.131.191.104:22
It is sometimes useful to re-run the command using -vvvv, which prints SSH debug output to help diagnose the issue.
confirmation number, 1130am
monday
58009882
@ybur-yug
ybur-yug / .vimrc
Last active August 28, 2015 15:17
my vimrc
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
"""
Episode 13, this code will get you to ~2:09 in the video
The test will run, you won't get a compile error, the test WILL FAIL as expected
---
Finished in 0.04 seconds (0.04s on load, 0.00s on tests)
2 tests, 1 failures
"""
defmodule BankAccount do
A horse walks into a bar. The bartender asks the horse if it's an alcoholic considering all the bars he frequents,
to which the horse replies, "Ithink not!" POOF! The horse disappears.
This is the point in time when all the philosophy students in the audience begin to giggle, as they are familiar with
the philosophical proposition of Cogito ergo sum, or I think, therefore, I am.
But to explain the concept aforehand would be putting Descartes before the horse.
module Parallel
def pmap
collection
|> Enum.map(&(Task.async(fn -> func.(&1) end)))
|> Enum.map(&Task.await/1)
end
end
sudo apt-get install -y libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libboost-all-dev libhdf5-serial-dev protobuf-compiler gfortran libjpeg62 libfreeimage-dev libatlas-base-dev git python-dev python-pip libgoogle-glog-dev libbz2-dev libxml2-dev libxslt-dev libffi-dev libssl-dev libgflags-dev liblmdb-dev python-yaml