View README.md

NAF-tensorflow

First, clone the project:

git clone https://github.com/devsisters/NAF-tensorflow/
cd NAF-tensorflow

To train a model for Pendulum:

python main.py --env_name=Pendulum-v0 --is_train=True
View README.md

DQN-tensorflow

First, clone the project:

git clone https://github.com/devsisters/DQN-tensorflow/
cd DQN-tensorflow

To train a model for Breakout:

python main.py --env_name=Breakout-v0 --is_train=True
View hexa-assignment1.py
import requests
r = requests.get("http://naver.com")
html = r.text
idx = html.find("<title>")
print html[idx:idx+20]
View mail.py
#!/usr/bin/python
import smtplib
from email.mime.text import MIMEText
import netrc
from docopt import docopt
DEFAULTFROM = "admin@minsky.unist.ac.kr"
DEFAULTTO = "carpedm20@gmail.com"
SMSADDRESS = "carpedm20@messaging.sprintpcs.com"
DEFAULTSUBJECT = "Job finished from PAIL Minsky"
View intercept-https-with-python-mitmproxy.md

Intercepts HTTPs Traffic with Python & mitmproxy

Introduction

Modern applications usually make use of back-end API servers to provide their services. With a non-transparent HTTPs proxy, which intercepts the communication between clients and servers (aka the man-in-the-middle scheme), you can easily manipulate both API requests and responses.

This manual helps you create your own proxy with Python and mitmproxy/libmproxy. Mitmproxy ships with both a standalone command-line tool (mitmproxy) and a Python library (libmproxy).

View leveldb_install.sh
#!/bin/bash
PREFIX=/home/carpedm20/lib
## make !
{
## clean just incase
make clean -C .
## build
View resize.sh
#!/bin/sh
image_path=/home/carpedm20/imagenet
for name in $image_path/val/*.JPEG; do
convert -resize 256x256\! $name $name
done
View rev100.py
print 'aaa'*2+hex(0x20acecafe-0xdeadbeef-eval('0x'+'aaaa'.encode('hex'))*2)[2:].decode('hex')
View 0_galkwi.py
#-*- coding: utf-8 -*-
import xml.etree.ElementTree as ET
tree = ET.parse('dict-ko-galkwi.xml')
root = tree.getroot()
texts = [i.text for i in root.iter('word')]
poses = [i.text for i in root.iter('pos')]
zipped_texts = zip(texts, poses)
View Dockerfile
FROM dockerfile/ubuntu
MAINTAINER Taehoon Kim(carpedm20@gmail.com)
# Run upgrades
RUN apt-get update
# Install basic packages
RUN apt-get -qq -y install git curl build-essential openssl libssl-dev python-software-properties g++ make
# Install Python