Skip to content

Instantly share code, notes, and snippets.

@tsunokawa
tsunokawa / wc_hdfs
Created November 7, 2016 09:51 — forked from abicky/wc_hdfs
execute a command like wc to data on HDFS
#!/bin/bash
condition=""
fs="\t"
while getopts c:F: OPT; do
case $OPT in
c ) condition=$OPTARG;;
F ) fs=$OPTARG;;
esac
@tsunokawa
tsunokawa / memcached2redis.php
Created November 1, 2016 03:11 — forked from nmmmnu/memcached2redis.php
Memcached 2 Redis wrapper
<?
/*
=========================
Memcached 2 Redis wrapper
=========================
Version 1.0.1, CopyLeft 2011.AUG.11
@tsunokawa
tsunokawa / 0_reuse_code.js
Created March 20, 2014 06:17
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