Skip to content

Instantly share code, notes, and snippets.

View darjeeling's full-sized avatar

Kwon-Han Bae darjeeling

  • LineCorp
  • Seoul, Korea
  • 20:57 (UTC +09:00)
View GitHub Profile
from flask import Flask, request, session, g, redirect, url_for
from flask import abort, render_template, flash
app = Flask(__name__)
app.config.from_object(__name__)
hosts = {
'b': "https://code.google.com/p/android/issues/"
's': "https://android.googlesource.com/",
'r': "https://android-review.googlesource.com/",
@chaeplin
chaeplin / lgacir.ino
Last active September 8, 2015 16:04
lgacir.ino
https://github.com/z3t0/Arduino-IRremote/tree/master/examples/LGACSendDemo
@chaeplin
chaeplin / lgacir.py
Last active August 29, 2015 14:25
lgacir.py
# https://github.com/chaeplin/Arduino-IRremote/
# 02.test_i2c.py
import smbus
import time
bus = smbus.SMBus(1)
address = 0x07
def writeNumber(a, b ):
@simonw
simonw / recover_source_code.md
Last active May 21, 2024 19:04
How to recover lost Python source code if it's still resident in-memory

How to recover lost Python source code if it's still resident in-memory

I screwed up using git ("git checkout --" on the wrong file) and managed to delete the code I had just written... but it was still running in a process in a docker container. Here's how I got it back, using https://pypi.python.org/pypi/pyrasite/ and https://pypi.python.org/pypi/uncompyle6

Attach a shell to the docker container

Install GDB (needed by pyrasite)

apt-get update && apt-get install gdb
@ziozzang
ziozzang / README.md
Last active July 30, 2021 10:01
코로나 잔량 백신 검색 스크립트

코로나 백신 잔량 검색 스크립트

  • 네이버 맵 API를 사용 합니다.

  • 언제든지 동작 하지 않을수 있습니다.

  • 그냥 가져가서 쓰세요

  • 지정된 좌표 주변으로 최대 100개의 의료기관을 검색해서 잔량 백신을 검색해서 수량을 알려줍니다.

사용법

  • 파이썬 3 + requests에서 동작 합니다.