Skip to content

Instantly share code, notes, and snippets.

View wutali's full-sized avatar

Takahiro Fujiwara wutali

View GitHub Profile
@wutali
wutali / rename_dataset.sh
Last active December 22, 2015 21:38
Rename dataset on BigQuery.
#!/bin/bash
BQ_CMD='bq'
$BQ_CMD show $1
if [ $? -ne 0 ]; then
echo "ERROR: $1 dataset not found."
exit 1
fi
@wutali
wutali / cuisine_python.py
Created July 12, 2012 09:23
Cuisine extension for Python.
from os import path
from fabric.api import cd, prefix, lcd
from fabric.api import run, sudo as run_as_root, local as run_on_local
from cuisine import package_install_apt, file_exists
def _run(command, sudo=False, local=False):
if sudo:
return run_as_root(command)
@wutali
wutali / fabric.rb
Created July 10, 2012 12:30
Vagrant provisioner of Fabric.
module Vagrant
module Provisioners
class Fabric < Base
class Config < Vagrant::Config::Base
attr_accessor :fabfile_path
attr_accessor :fabric_path
attr_accessor :python_path
attr_writer :tasks
def _default_fabfile_path
@wutali
wutali / basic-data-analysis.ipynb
Last active September 11, 2021 08:48
basic-data-analysis.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.