Skip to content

Instantly share code, notes, and snippets.

View orleika's full-sized avatar
🏠
Working from home

Koki Yasuda orleika

🏠
Working from home
  • HackathonMonster
  • Tokyo, Japan
View GitHub Profile
@orleika
orleika / statistical_identify_parallel.ipynb
Created August 10, 2017 14:58
Jupyter Notebookで並列計算
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@orleika
orleika / statistical_identify_bfs_nr_parallel.ipynb
Created August 15, 2017 02:24
BFS&ipyparallelによる統計的識別手法の最良組み合わせ抽出
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@orleika
orleika / fs_readFile_promise.js
Created August 24, 2017 04:08
wrap nodejs fs#readFile to be a promise
const readFile = (...args) => {
return new Promise((resolve, reject) => {
fs.readFile(...args, (err, data) => {
if (err) reject(err)
resolve(data)
})
})
}
@orleika
orleika / CSV.php
Last active September 19, 2017 10:13
csv file utilities with laravel
<?php
namespace App\Http\Middleware;
use Response;
use Exception;
class CSV
{
/**
* downlaod csv file
@orleika
orleika / Dockerfile
Last active February 25, 2018 05:50
For selenium and tor browser
FROM python:3
RUN apt update \
&& apt upgrade -y \
&& apt install -y libdbus-glib-1-2 libgtk2.0-0 libX11-xcb-dev xvfb\
&& rm -rf /var/lib/apt/lists/* \
&& echo 'export LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH"' >> ~/.bash_profile \
&& . ~/.bash_profile \
&& cd /tmp \
&& wget -q https://github.com/mozilla/geckodriver/releases/download/v0.17.0/geckodriver-v0.17.0-linux64.tar.gz \
@orleika
orleika / Dockerfile
Created February 25, 2018 05:48
jupyter_datascience-notebook-parallel
FROM jupyter/datascience-notebook
USER root
RUN apt-get update \
&& apt-get install mpich -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
USER $NB_USER
@orleika
orleika / ychat
Created April 19, 2018 09:39
some description
#!/bin/bash
#
# ychat
# simple multicast chat tools on the shell (only supported bash)
# copyrights: koki yasuda aka orleika <[email protected]>
# Licensed under MIT
#
# Usage:
# ychat
#
@orleika
orleika / sender.c
Created April 20, 2018 01:57
some description
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct in_addr localInterface;
struct sockaddr_in groupSock;
@orleika
orleika / receiver.c
Created April 20, 2018 01:58
some description
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
struct sockaddr_in localSock;
@orleika
orleika / quine.S
Last active November 9, 2018 01:55
x86-64 Quine
mov $m, %rsi
mov $280, %rdx
mov $1, %rdi
mov $1, %rax
syscall
push $34
mov %rsp, %rsi
mov $1, %rdx
mov $1, %rax
syscall