Skip to content

Instantly share code, notes, and snippets.

@yoshiso
yoshiso / app.py
Last active April 18, 2022 22:34
numerai leaderboard streamlit app
"""
Visualization app data from https://www.jofaichow.co.uk/numerati/data.html
# Usage:
Download data from the website and give it to app
$ streamlit app.py $CSV_FILE_PATH $BENCHMARK_MODEL_NAMES
# Example:
$ streamlit app.py \
@yoshiso
yoshiso / zipline-bundle-quandl-eod.py
Last active November 11, 2022 20:27
Zipline custom bundle for Quandl's EOD dataset.
"""
Module for building a complete daily dataset from Quandl's EOD dataset.
"""
from io import BytesIO
from itertools import count
import tarfile
from time import time, sleep
from click import progressbar
from logbook import Logger
//
// RackJsonSchemaApi.swift
//
// Auto generated by Aries on 2015/04/11.
// Do not modify this file directory
//
import Alamofire
import SwiftTask
import URITemplate
#!/bin/zsh
# pyenv install for CentOS 6.5 x86_64
yum install -y gcc gcc-c++ make git patch openssl-devel zlib-devel readline-devel sqlite-devel bzip2-devel
git clone git://github.com/yyuu/pyenv.git ~/.pyenv
export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
@yoshiso
yoshiso / 0_reuse_code.js
Created March 20, 2014 04:11
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@yoshiso
yoshiso / Capfile
Created February 20, 2014 05:07
Mysqlバックアップrakeタスクを作ってwheneverで回すまで ref: http://qiita.com/yoshiso/items/e48126c2feaf747f3b25
+require "whenever/capistrano"
+SSHKit.config.command_map[:whenever] = "bundle exec whenever"
#!/bin/bash
#
# initd-example Node init.d
#
# chkconfig: 345 80 20
# description: Node init.d example
# processname: node
# pidfile: /var/run/initd-example.pid
# logfile: /var/log/initd-example.log
#
#!/bin/sh
#
# init.d script for single or multiple unicorn installations. Expects at least one .conf
# file in /etc/unicorn
#
# Modified by jay@gooby.org http://github.com/jaygooby
# based on http://gist.github.com/308216 by http://github.com/mguterl
#
## A sample /etc/unicorn/my_app.conf
##
@yoshiso
yoshiso / Dockerfile
Created January 7, 2014 01:52
Unicorn+RailsアプリをDockerコンテナで起動する ref: http://qiita.com/yss44@github/items/5d6834348f53910e63d2
# DOCKER-RAILS-UNICORN
#
# VERSION 1
FROM yoshiso/rails_base
MAINTAINER yoshiso
ADD supervisor/supervisord.conf /etc/supervisord.conf
@yoshiso
yoshiso / test.rb
Last active January 1, 2016 13:09
test
test