Skip to content

Instantly share code, notes, and snippets.

View jihobak's full-sized avatar

piper jihobak

  • eigencapital
  • Daegu, South Korea
View GitHub Profile
@jihobak
jihobak / README.md
Created March 9, 2016 01:14 — forked from clhenrick/README.md
PostgreSQL & PostGIS cheatsheet (a work in progress)
@jihobak
jihobak / min-char-rnn.py
Created March 13, 2016 14:06 — forked from karpathy/min-char-rnn.py
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy
"""
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
BSD License
"""
import numpy as np
# data I/O
data = open('input.txt', 'r').read() # should be simple plain text file
chars = list(set(data))
data_size, vocab_size = len(data), len(chars)
@jihobak
jihobak / useful_pandas_snippets.py
Created March 16, 2016 10:55 — forked from bsweger/useful_pandas_snippets.md
Useful Pandas Snippets
#List unique values in a DataFrame column
pd.unique(df.column_name.ravel())
#Convert Series datatype to numeric, getting rid of any non-numeric values
df['col'] = df['col'].astype(str).convert_objects(convert_numeric=True)
#Grab DataFrame rows where column has certain values
valuelist = ['value1', 'value2', 'value3']
df = df[df.column.isin(value_list)]
@jihobak
jihobak / README.md
Created April 8, 2016 07:24 — forked from allieus/README.md
네이버 블로그 크롤링

네이버 블로그 크롤링

  • 파이썬3 에서 동작합니다.
  • requests, beautifulsoup4 라이브러리가 필요합니다.
pip install requests beautifulsoup4

AskDjango

@jihobak
jihobak / cifar10_resnet.py
Created June 7, 2016 10:45 — forked from kashif/cifar10_resnet.py
Keras Pre-activation Residual Network for CIFAR-10
from __future__ import print_function
from keras.datasets import cifar10
from keras.layers import merge, Input
from keras.layers.convolutional import Convolution2D, ZeroPadding2D, AveragePooling2D
from keras.layers.core import Dense, Activation, Flatten
from keras.layers.normalization import BatchNormalization
from keras.models import Model
from keras.preprocessing.image import ImageDataGenerator
from keras.utils import np_utils
@jihobak
jihobak / automation.md
Created June 24, 2016 06:56 — forked from cube-drone/automation.md
Automation For The People

Automation for the People

Long ago, the first time I read "The Pragmatic Programmer", I read some advice that really stuck with me.

"Don't Use Manual Procedures".

This in the chapter on Ubiquitous Automation. To summarize, they want you to automate all the things.

The trouble was that I hadn't much of an idea how to actually go

@jihobak
jihobak / api_client.py
Created July 7, 2016 01:03 — forked from mcchae/api_client.py
Flask File Upload
##########################################################################################
import os
import sys
import json
import unittest
import pprint
import httplib
import urllib
import datetime
import random
@jihobak
jihobak / rest_api.py
Created July 7, 2016 01:06 — forked from mcchae/rest_api.py
Flask REST API sample
#!/usr/bin/env python
#coding=utf8
##########################################################################################
import os
import logging
import logging.handlers
import traceback
from flask import Flask
from flask.ext.restful import reqparse, abort, Api, Resource
from flask import request
@jihobak
jihobak / cython_array_loop.ipynb
Created December 2, 2016 03:47 — forked from jskDr/cython_array_loop.ipynb
Cython can improve the speed with 1d numpy array in a IPython notebook
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jihobak
jihobak / labels_1024.tsv
Created February 15, 2017 21:59 — forked from teamdandelion/labels_1024.tsv
TensorBoard: TF Dev Summit Tutorial
We can make this file beautiful and searchable if this error is corrected: No tabs found in this TSV file in line 0.
7
2
1
0
4
1
4
9
5
9