Skip to content

Instantly share code, notes, and snippets.

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

Nutchanon Ninyawee wasdee

🏠
Working from home
View GitHub Profile
#!/usr/bin/python
p = 0.5
sample_size = [10 ** x for x in range(1,6)]
replicates = 10000
biases = []
for n in sample_size:
bias = np.empty(replicates)
for i in range(replicates):
@wasdee
wasdee / bobp-python.md
Last active September 8, 2018 22:17 — forked from sloria/bobp-python.md
A "[Best of the Best Practices]" (BOBP) guide to developing in Python. #python

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
@wasdee
wasdee / selectfile.py
Created June 20, 2017 06:16 — forked from DrDub/selectfile.py
A file selection class build for ipywidgets without any extra dependencies.
import os
import ipywidgets as widgets
class FileBrowser(object):
def __init__(self):
self.path = os.getcwd()
self._update_files()
@wasdee
wasdee / bash-cheatsheet.sh
Created June 23, 2017 05:01 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
@wasdee
wasdee / Dekmai-D.ipynb
Created July 12, 2017 18:50
Something best leave as calculator task. If you program everyday, you will be far from Alzheimer.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am wasdee on github.
  • I am wasdee (https://keybase.io/wasdee) on keybase.
  • I have a public key ASCxHHgnNedprZQp_o3-rcUr1g04YmMiEEzuo2n6uRJRPwo

To claim this, I am signing this object:

@wasdee
wasdee / conda_init.sh
Last active October 4, 2018 05:52
prepare environment #conda #setup
conda create --name x python=3.5 anaconda
source activate x
conda config --add channels conda-forge
conda install jupyter_contrib_nbextensions -y # addon for jupyter
conda install bcolz -y # save pandas
conda install tqdm -y # progress bar
conda install altair -y # decarative
conda install -c conda-forge catboost shap
@wasdee
wasdee / brew-perms.sh
Last active September 8, 2018 22:17 — forked from jaibeee/brew-perms.sh
[Configure homebrew permissions to allow multiple users] on MAC OSX. Any user from the admin group will be able to manage the homebrew and cask installation on the machine. #macOS #setup #homebrew
#!/bin/sh
# Configure homebrew permissions to allow multiple users on MAC OSX.
# Any user from the admin group will be able to manage the homebrew and cask installation on the machine.
# allow admins to manage homebrew's local install directory
chgrp -R admin /usr/local
chmod -R g+w /usr/local
# allow admins to homebrew's local cache of formulae and source files
chgrp -R admin /Library/Caches/Homebrew
@wasdee
wasdee / password crack.ipynb
Last active December 18, 2017 18:48
ปัญหา 1 รหัสสามชุด
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@wasdee
wasdee / build_tf.sh
Last active September 8, 2018 22:13 — forked from venik/build_tf.sh
Bash script for [local building TensorFlow on Mac with all CPU optimizations] (default pip package has only SSE) #setup
#!/bin/bash
# Author: Sasha Nikiforov
# source of inspiration
# https://stackoverflow.com/questions/41293077/how-to-compile-tensorflow-with-sse4-2-and-avx-instructions
# check if VirtuelEnv activated
if [ -z "$VIRTUAL_ENV" ]; then
echo "VirtualEnv is not activated"