This file contains 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
id: "redis-pod" | |
kind: "Pod" | |
labels: | |
name: "redis-pod" | |
desiredState: | |
manifest: | |
version: "v1beta1" | |
volumes: | |
- name: "redis-disk" | |
source: |
This file contains 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
┌(yawnt@ehecatl) (node 0.11.14) | |
╰─(~/Downloads/evaluation)> PYTHON=/usr/bin/python2 ./run task2.py | |
METRICS | |
------- | |
Algorithm 1 | |
MAE 0.9585045928391682 | |
RMSE 1.4593499192172374 |
This file contains 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
[[null, null, null, null, null, null, 3, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 5, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 4, 4, null, null, null, null, null, null, null, 5, 3, null, null, null], [null, null, null, null, null, null, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0, null, null, 0, null, null, null, null, null, |
This file contains 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
class X { | |
def derp(x: Int) = 3 | |
} | |
class Y { | |
def derp(x: String) = "asd" | |
} | |
trait L[A, B] { | |
def derp(x: A): B |
This file contains 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
class Dispatcher[T] { | |
def apply(what: T) = ??? | |
} | |
implicit def myCommand = new Dispatcher[MyType] { | |
def apply(what: T) = { | |
// do stuff | |
} | |
} |
This file contains 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
val port1 = service.getOneService | |
port1.service(req) // takes a Req1, returns a Rsp1 | |
val port2 = service.getAnotherService | |
port2.service(req) // takes a Req2, returns a Rsp2 | |
.. and so on |
This file contains 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
[error] /home/yawnt/code/scala/icarus/src/main/scala/wrappers/System.scala:25: type mismatch; | |
[error] found : R | |
[error] required: BaseReq | |
[error] port.service(req) |
This file contains 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
┌(yawnt@ehecatl) (node 0.11.14) | |
╰─(~)> cat .vimrc| grep Plugin | |
Plugin 'gmarik/Vundle.vim' | |
Plugin 'airblade/vim-gitgutter' | |
Plugin 'bling/vim-airline' | |
Plugin 'scrooloose/syntastic' | |
Plugin 'Valloric/YouCompleteMe' | |
Plugin 'myhere/vim-nodejs-complete' | |
Plugin 'fsouza/go.vim' | |
Plugin 'mmalecki/vim-node.js' |
This file contains 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
var fs = require('fs'), | |
p = require('readline-sync'), | |
_ = require('underscore'); | |
var text = fs.readFileSync('./categoriebrasile', 'utf-8').split('\n').filter(function(x) { return x !== '' && !~x.indexOf('+'); }); | |
var text2 = fs.readFileSync('./categorieitalia', 'utf-8').split('\n').filter(function(x) { return x !== '' && !~x.indexOf('+') && !~x.indexOf('Casa'); }); | |
console.log(text.length); |
This file contains 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
#!/usr/bin/zsh | |
cp /etc/pulse/default.pa /etc/pulse/default.pa.original | |
sed -i "s/load\-module module\-role\-cork/\# load\-module module\-role\-cork/" /etc/pulse/default.pa | |
pulseaudio --kill | |
pulseaudio --start | |
echo "Done: Now unmute from 'pavucontrol'" |