Skip to content

Instantly share code, notes, and snippets.

View neoneo40's full-sized avatar

neo neoneo40

  • Seoul, Korea
View GitHub Profile
@neoneo40
neoneo40 / python_resources.md
Last active August 29, 2015 14:08 — forked from jookyboi/python_resources.md
Python-related modules and guides.

Packages

  • lxml - Pythonic binding for the C libraries libxml2 and libxslt.
  • boto - Python interface to Amazon Web Services
  • Django - Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
  • Fabric - Library and command-line tool for streamlining the use of SSH for application deployment or systems administration task.
  • PyMongo - Tools for working with MongoDB, and is the recommended way to work with MongoDB from Python.
  • Celery - Task queue to distribute work across threads or machines.
  • pytz - pytz brings the Olson tz database into Python. This library allows accurate and cross platform timezone calculations using Python 2.4 or higher.

Guides

@neoneo40
neoneo40 / javascript_resources.md
Last active August 29, 2015 14:08 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
@neoneo40
neoneo40 / emf_in_matplotlib.py
Created November 14, 2014 02:28
matplotlib์œผ๋กœ EMF ์ฐ์–ด๋ณด๊ธฐ, http://www.instructables.com/id/Arduino-EMF-Detector/
import time
import numpy as np
import matplotlib.pyplot as plt
import serial
sr = serial.Serial('/dev/tty.usbmodem1421',9600)
plt.axis([0, 1000, 0, 256])
plt.ion()
plt.show()
@neoneo40
neoneo40 / meta_congnition.md
Last active August 29, 2015 14:09
Meta cognition

๋ฉ”ํƒ€์ธ์ง€

์ฐพ์•„๋ณด๊ฒŒ ๋œ ๋™๊ธฐ

  • ใ…‡ใ…‡ใ…‡๋‹˜์ด 2014-11-08 15:50 ์— ์ž‘์„ฑํ•œ ๊ธ€์ด ๋ชจํ‹ฐ๋ธŒ
  • ์–ด์ œ ๋ฏธํŒ…์ด ์žˆ์–ด์„œ ๊ฐ•๋‚จ์—์„œ ์—ฐ๊ทน๋ณด๊ณ  ์ €๋…์€ ์ฐจ์ด๋‚˜ ํŒฉํ† ๋ฆฌ์—์„œ ์—„์ฒญ ์ˆ˜๋‹ค๋ฅผ ๋–จ์—ˆ์Šต๋‹ˆ๋‹ค. ๊ทธ๋Ÿฐ๋ฐ ์ „์—๋„ ๋“ค์€ ์ด์•ผ๊ธฐ์ง€๋งŒ ์™œ ๊ทธ๋ ‡๊ฒŒ ์™ธ๋ถ€์—์„œ ํ™œ๋™์„ ํ•˜๋ƒ๋Š” ์งˆ๋ฌธ์„ ๋“ค์—ˆ์Šต๋‹ˆ๋‹ค.
  • ๊ทธ๋Ÿด๋•Œ๋งˆ๋‹ค ๋ฐ˜ ๋†๋‹ด์‚ผ์•„ ํšŒ์‚ฌ์—์„œ ์–ต์šธํ•œ ์ผ์ด ์žˆ์–ด์„œ ๋ณด์ƒ์‹ฌ๋ฆฌ์— ๋ฐ–์—์„œ ๋…ผ๋‹ค๊ณ  ์ด์•ผ๊ธฐํ–ˆ๋Š”๋ฐ.. ์†”์งํžˆ ๋ˆ์ด๋‚˜ ๋ช…์˜ˆ? ์ด๋Ÿฐ๊ฒƒ์„ ๋ฐ”๋ผ๊ณ  ์—ฌ๋Ÿฌ ๋ชจ์ž„์— ์ฐธ์„ํ•˜๊ณ  ๋ฐœํ‘œํ•œ๋‹ค๋ฉด ์ˆ˜์ง€ํƒ€์‚ฐ์— ๋งž์ง€ ์•Š์Šต๋‹ˆ๋‹ค.
  • ๊ฐ€์กฑ์ด ํž˜๋“ค์–ด์ง€๋ฉด(์ง€๋ฐฉ ๋ฐœ๋ น์ด๋‚˜ ์žฆ์€์•ผ๊ทผ) ์ง€๊ธˆ ๋‹น์žฅ์ด๋ผ๋„ ๋ชจ๋“  ํ™œ๋™ ๋ฟ๋งŒ ์•„๋‹ˆ๋ผ ์ข‹๋‹ค๊ณ  ์ž๋ž‘ํ•˜๋˜ ์ง€๊ธˆ ์ง์žฅ๋„ ์˜ฎ๊ธธ ์ƒ๊ฐ์ด ์žˆ์Šต๋‹ˆ๋‹ค. ์ง€๊ธˆ๋„ ๋ชจ๋“  ๊ณต๋ถ€๋Š” ์•„๊ธฐ๋ž‘ ๋†€๊ณ  ์•„๊ธฐ ์ทจ์นจ์‹œ๊ฐ„์ธ ์ €๋… 8์‹œ์— ์ดํ›„์—๋งŒ ํ•ฉ๋‹ˆ๋‹ค. ๊ฒŒ๋‹ค๊ฐ€ ์™€์ดํ”„๊ฐ€ ํ›จ์”ฌ ๋งŽ์€ ๋ˆ์„ ๋ฒŒ์–ด๋‹ค์ฃผ๊ณ  ์žˆ์œผ๋‹ˆ;;
  • ๊ทธ๋Ÿผ์—๋„ ๊ฐœ๋ฐœ์ž ๋ชจ์ž„์ด๋‚˜ ์Šคํ„ฐ๋”” ๊ฐ•์˜ ๋“ฑ์„ ํ•˜๋Š” ์ด์œ ๋Š” ๊ทธ๋Ÿฐ ๋ชจ์ž„์„ ํ†ตํ•ด์„œ ๋‚ด๊ฐ€ ๋ถ€์กฑํ•œ ๊ฒƒ์„ ์•Œ๊ณ  ์ง„์งœ ๊ณ ์ˆ˜๋“ค๋กœ๋ถ€ํ„ฐ ์ž๊ทน์„ ๋ฐ›๊ธฐ ์œ„ํ•˜๋Š” ๊ฒƒ์ด ์ฒซ๋ฒˆ์งธ. >- ๋‘๋ฒˆ์งธ๋กœ ๋‚ด๊ฐ€ ์•ˆ๋‹ค๊ณ  ์ƒ๊ฐํ•œ ๊ฒƒ๋„ ์ง์ ‘ ๋‚จ์—๊ฒŒ ์„ค๋ช…ํ•ด๋ณด๋ฉด ์•ˆ๋‹ค๊ณ  ์ƒ๊ฐํ–ˆ์ง€๋งŒ ๋ชจ๋ฅด๊ณ  ์žˆ๋Š” ๊ฒƒ์„ ํŒŒ์•…ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.(๋ฉ”ํƒ€์ธ์ง€์™€ ํ•™์Šต ํ”ผ๋ผ๋ฏธ๋“œ)
@neoneo40
neoneo40 / gist:705a68bb223e1a4887c1
Last active August 29, 2015 14:09
Python tools

ํŒŒ์œผ๋ฆฌ์ฌ ๊ตฐ์‚ฐ๋Œ€ ๊ฐ•์˜ ์ž๋ฃŒ

๊ฐ•์˜ ์ผ์ •

  • 1์ฃผ: ํŒŒ์ด์ฌ ๊ธฐ์ดˆ ๋ฐฐ์šฐ๊ณ  ๋ฐœํ‘œ
  • 2์ฃผ: ํŒŒ์ด์ฌ ๊ธฐ์ดˆ์—์„œ ์ž˜ ์ดํ•ด๋˜์ง€ ์•Š์€ ๊ฐœ๋… ๋ฐœํ‘œ
  • 3์ฃผ: ์›นํˆฐ ๋‹ค์šด๋กœ๋” ์ž‘์„ฑ(๋™๊ธฐ ๋ถ€์—ฌ๋ฅผ ์œ„ํ•ด ์นœ์ˆ™ํ•œ ์›นํˆฐ ์ด์šฉ)
  • 4์ฃผ: ์ค‘๋ณต ํŒŒ์ผ ์ œ๊ฑฐ
  • 5์ฃผ: github์— ์›นํˆฐ ๋‹ค์šด๋กœ๋” ๊ณต๊ฐœํ•  ์˜ˆ์ •
  • ์›นํˆฐ ๋‹ค์šด๋กœ๋”(๋„ค์ด๋ฒ„, ๋‹ค์Œ, ๋ ˆ์ง„์ฝ”๋ฏน์Šค, ํƒ‘ํˆฐ)
@neoneo40
neoneo40 / gist:78cae84e0bb8425a4752
Last active August 29, 2015 14:10
How to install python, ipython and pip in Windows

ํŒŒ์ด์ฌ ์„ค์น˜

PATH ์— ๋“ฑ๋ก

  • ์ œ์–ดํŒ -> ์‹œ์Šคํ…œ -> ๊ณ ๊ธ‰ ์‹œ์Šคํ…œ ์„ค์ • -> ๊ณ ๊ธ‰ -> ํ™˜๊ฒฝ๋ณ€์ˆ˜
  • ๋งจ ๋’ค์— ํŒŒ์ด์ฌ ์„ค์น˜ํ•œ ๊ฒฝ๋กœ ์ถ”๊ฐ€
  • ์˜ˆ) ;C:\Python27\Scripts;C:\Python27

pip ์„ค์น˜

@neoneo40
neoneo40 / How_to_write_article_in_euripy.md
Last active August 29, 2015 14:11
How to write article in euripy

How to write article in euripy

๊ฐ ํŒŒ์ผ๋“ค์ด ํ•˜๋Š” ์—ญํ• 

index.html

  • ์ด 1๊ฐœ์˜ index.html ์—์„œ ๋‚˜๋จธ์ง€ md๋“ค์„ ๋ถˆ๋Ÿฌ์˜ค๋Š” ๊ตฌ์กฐ
  • index.html๋งŒ ๋ฐ›์€ ๋‹ค์Œ์— ๋ชจ๋‘ ๋กœ๋”ฉ๋˜๊ณ  ๋‚œ ํ›„ client์—์„œ ๋‹ค์‹œ md๋“ค์„ ๋ฐ›์•„์„œ ์•ฝ๊ฐ„ ๋А๋ฆผ. ๊ทธ๋ž˜์„œ ๋งŒํ™” ๋œจ๋Š”๊ฒŒ ๋А๋ฆผ

navigation.md

int before_sw = HIGH;
void setup() {
Serial.begin(9600);
pinMode(9, INPUT_PULLUP);
pinMode(13, OUTPUT);
}
void loop() {
if(digitalRead(9) == LOW && before_sw == HIGH)
@neoneo40
neoneo40 / pycharm_education.md
Last active August 29, 2015 14:11
ํŒŒ์œผ๋ฆฌ์ฌ Season2 ํŒŒ์ด์ฌ

ํŒŒ์œผ๋ฆฌ์ฌ Season2 ํŒŒ์ด์ฌ

2๋‹จ๊ณ„

class Stack:
def __init__(self):
self.storage = []
def is_empty(self):
return len(self.storage) == 0
def push(self, value):
self.storage.append(value)