Skip to content

Instantly share code, notes, and snippets.

View yeongseon's full-sized avatar

Yeongseon Choe yeongseon

  • Microsoft
  • Seoul, Korea
View GitHub Profile
@bbengfort
bbengfort / Makefile
Created January 10, 2016 19:20
Basic Python Project files - my Makefile and the dependencies that I have in everything.
# Shell to use with Make
SHELL := /bin/bash
# Set important Paths
PROJECT := # Set to your project name
LOCALPATH := $(CURDIR)/$(PROJECT)
PYTHONPATH := $(LOCALPATH)/
PYTHON_BIN := $(VIRTUAL_ENV)/bin
# Export targets not associated with files
@bwv988
bwv988 / docker-compose.yml
Created April 24, 2018 10:53
Docker compose file for the Kaggle Python container
version: '2'
services:
kaggle:
image: kaggle/python
container_name: kaggle
command: jupyter notebook --allow-root --no-browser --ip="0.0.0.0" --notebook-dir=/notebooks --NotebookApp.token='' --allow-root
user: root
ports:
- "8888:8888"
volumes:
@shoveller
shoveller / gist:b4d2e1e6d33906f2a667
Created July 3, 2014 14:06
왜 파이썬 데코레이터를 만들때, @wraps어노테이션을 쓰는 것을 권장하는 걸까?
__author__ = 'artemr'
'''
왜 파이썬 데코레이터를 만들때, @wraps어노테이션을 쓰는 것을 권장하는 걸까?
이유인 즉슨, 데코레이터 내부에서 인자로 전달받은 함수가 익명함수 처럼 취급되어 버리므로 디버깅이 난해해지는 단점이 있었기 때문이다.
자세한 설명은 아래의 링크에 첨부되어 있다.
원본: http://artemrudenko.wordpress.com/2013/04/15/python-why-you-need-to-use-wraps-with-decorators/
사본: https://www.evernote.com/shard/s174/sh/78eaad5f-a8f2-4496-b984-e3385fb963c0/922d9ab4b5cd23ac7b85aab42536aa4f
'''
@yeongseon
yeongseon / docker-compose.yml
Last active January 5, 2021 14:01
docker-compose.yml for kaggle/python-gpu-build
version: '2.3'
services:
kaggle:
image: kaggle/python-gpu-build
runtime: nvidia
container_name: kaggle
user: root
ports:
- "8888:8888"
volumes:
@icron
icron / export.py
Last active February 9, 2021 15:34
Flask-Admin Export CSV
from flask import send_file
from pandas import DataFrame
class MyModelView(ModelView):
@expose('/export')
def export(self):
# Grab parameters from URL
page, sort_idx, sort_desc, search, filters = self._get_list_extra_args()
sort_column = self._get_column_by_idx(sort_idx)
if sort_column is not None:
sort_column = sort_column[0]
@LordAmit
LordAmit / buffer1.c
Last active October 28, 2022 11:24
Buffer Overflow / Stack Smashing Example
/*
Written by Amit Seal Ami
*/
#include <stdio.h>
#include <string.h>
/*
Instructions
============
@junzis
junzis / lowpass.py
Last active December 6, 2022 08:16
Python Lowpass Filter
# https://stackoverflow.com/questions/25191620/
# creating-lowpass-filter-in-scipy-understanding-methods-and-units
import numpy as np
from scipy.signal import butter, lfilter, freqz
from matplotlib import pyplot as plt
def butter_lowpass(cutoff, fs, order=5):
nyq = 0.5 * fs
@bcnzer
bcnzer / web.config
Last active January 2, 2023 16:28
Web.config for use with a Vue.js SPA (single page app) and woff font files
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<staticContent>
<mimeMap fileExtension="woff" mimeType="application/font-woff" />
<mimeMap fileExtension="woff2" mimeType="application/font-woff" />
</staticContent>
<rewrite>
<rules>
<rule name="Handle History Mode and custom 404/500" stopProcessing="true">
@haje01
haje01 / TensorFlow 시작하기.md
Last active September 4, 2023 06:58
TensorFlow 시작하기

텐서플로우 시작하기

글쓴이: 김정주(haje01@gmail.com)

이 문서는 텐서플로우 공식 페이지 내용을 바탕으로 만들어졌습니다.


소개

텐서플로우(TensorFlow)는 기계 학습과 딥러닝을 위해 구글에서 만든 오픈소스 라이브러리입니다. 데이터 플로우 그래프(Data Flow Graph) 방식을 사용하였습니다.

@copyfun
copyfun / flash_win10IoT_onto_sdcard_OSX.sh
Last active September 15, 2023 10:21
Install Windows 10 IoT core on Raspberry Pi 2 using OS X
# download iot core iso file
# curl http://go.microsoft.com/fwlink/?LinkId=616847
curl http://download.microsoft.com/download/8/C/B/8CBE5D09-B5C5-462B-8043-DAC64938FDAC/IOT%20Core%20RPi.ISO > IOT-Core-RPi.iso
# install p7zip for decompress *.iso and *.msi files
sudo port install p7zip
# decompress files
7z x IOT-Core-RPi.ISO
7z x Windows_10_IoT_Core_RPi2.msi