Skip to content

Instantly share code, notes, and snippets.

Avatar

Takahiro Fujiwara wutali

View GitHub Profile
@wutali
wutali / basic-data-analysis.ipynb
Last active Sep 11, 2021
basic-data-analysis.ipynb
View basic-data-analysis.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@wutali
wutali / rename_dataset.sh
Last active Dec 22, 2015
Rename dataset on BigQuery.
View rename_dataset.sh
#!/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 Jul 12, 2012
Cuisine extension for Python.
View cuisine_python.py
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 Jul 10, 2012
Vagrant provisioner of Fabric.
View fabric.rb
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