Skip to content

Instantly share code, notes, and snippets.

View shibacow's full-sized avatar

shibacow shibacow

View GitHub Profile
@shibacow
shibacow / HeadlessSimple.java
Last active February 14, 2017 15:42
gephi-toolkit-sample
/**
*
*/
package hello_world;
import java.awt.Color;
import java.io.File;
import java.io.IOException;
import org.gephi.appearance.api.AppearanceController;
import org.gephi.appearance.api.AppearanceModel;
import datalab.bigquery as bq
import pandas as pd
df_pmoney = bq.Query(pmoney).to_dataframe().set_index('date')
df_pmoney.head(5)
df_pmoney.plot()
@shibacow
shibacow / .bashrc
Last active November 20, 2016 14:06
p2.xlarge用linpack設定
export LD_LIBRARY_PATH=/opt/intel/mkl/lib/intel64:/opt/intel/compilers_and_libra
ries/linux/lib/intel64:/home/ec2-user/hpl-2.0_FERMI_v15/src/cuda:/usr/lib64/open
mpi/lib:/opt/intel/compilers_and_libraries_2017.0.098/linux/compiler/lib/intel64
_lin
export PATH=/usr/lib64/openmpi/bin:$PATH
#!/usr/bin/env python
# -*- coding:utf-8 -*-
# -*- tab-width : 4 -*-
import argparse
# [START detect_text]
import base64
import os
import re
import sys
from mog_op import MongoOp
@shibacow
shibacow / simple_server.go
Last active August 11, 2016 13:15
compare golang web framework echo and python flask
package main
import (
"net/http"
"github.com/labstack/echo"
"github.com/labstack/echo/engine/standard"
)
func main() {
e := echo.New()
SELECT * FROM
table_date_range(production.all_log,
timestamp("2016-05-01"),
timestamp("2016-06-01"))
WHERE user_id IS NOT NULL
LIMIT 10;
select count_distinct(user_id) as count,
date_format(time,'%Y-%m-%d') as date,
world
from [table20150101-201531]
group by date,world
order by date,world;
@shibacow
shibacow / .bashrc
Last active September 24, 2019 07:21
HPL execute
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific aliases and functions
export LD_LIBRARY_PATH=/opt/intel/mkl/lib/intel64:/opt/intel/compilers_and_libraries/linux/lib/intel64:/home/ec2-use
r/prog/hpl-2.0_FERMI_v15/src/cuda:/usr/lib64/openmpi/lib
@shibacow
shibacow / LINPACK BENCH on aws c4.8xlarge ubuntu
Last active November 13, 2015 11:45
LINPACK BENCH executed on AWS c4.8xlarge Ubuntu 14.04
ubuntu@ip-*-*-*-*:~/l_mklb_p_11.3.1.002/benchmarks_11.3.1/linux/mkl/benchmarks/linpack$ ./runme_xeon64
This is a SAMPLE run script for SMP LINPACK. Change it to reflect
the correct number of CPUs/threads, problem input files, etc..
./runme_xeon64: 37: [: -gt: unexpected operator
Fri Nov 13 11:26:24 UTC 2015
Intel(R) Optimized LINPACK Benchmark data
Current date/time: Fri Nov 13 11:26:24 2015
CPU frequency: 3.126 GHz
@shibacow
shibacow / LINPACK BENCH on osx mac book pro
Last active November 13, 2015 11:39
LINPACKを走らせてみる。
2015年 11月13日 金曜日 20時21分05秒 JST
Intel(R) Optimized LINPACK Benchmark data
Current date/time: Fri Nov 13 20:21:05 2015
CPU frequency: 3.091 GHz
Number of CPUs: 1
Number of cores: 2
Number of threads: 4