Skip to content

Instantly share code, notes, and snippets.

@levelsio
levelsio / gist:5bc87fd1b1ffbf4a705047bebd9b4790
Last active April 26, 2024 19:34
Secret of Monkey Island: Amsterdam (by @levelsio) or how to create your own ChatGPT image+text-based adventure game
# 2023-11-27 MIT LICENSE
Here's the open source version of my ChatGPT game MonkeyIslandAmsterdam.com.
It's an unofficial image+text-based adventure game edition of Monkey Island in Amsterdam, my home town.
Please use it however you want. It'd be nice to see more ChatGPT-based games appear from this. If you get inspired by it, please link back to my X https://x.com/levelsio or this Gist so more people can do the same!
Send me your ChatGPT text adventure game on X, I'd love to try it!
@hannal
hannal / more_http_methods_for_django.py
Last active February 15, 2016 14:02
django에 put, patch, delete method 추가.
from django.http import QueryDict
from django.http.multipartparser import MultiValueDict
class MoreMethodsMiddleware(object):
def process_request(self, request):
method = request.META.get('REQUEST_METHOD', '').upper()
request.PUT = QueryDict('')
request.DELETE = QueryDict('')
@haje01
haje01 / TensorFlow 시작하기.md
Last active May 3, 2024 07:30
TensorFlow 시작하기

텐서플로우 시작하기

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

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


소개

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

@allieus
allieus / Python-UTF8.sublime-build
Last active August 29, 2015 14:18
Sublime Text 3 에서 파이썬2 실행 설정 : 아래 빌드스크립트로 실행 시, 유니코드로 한글출력이 잘 됩니다.
// Preferences -> Browser Packages ... 를 선택하면, 윈도우탐색기(혹은 파인더) 로 Packages 디렉토리가 뜹니다.
// Users 디렉토리에 본 파일을 복사해주세요.
// 맥에서는 $HOME/Library/Application Support/Sublime Text 3/Packages/User/Python-UTF8.sublime-build 과 같은 경로가 됩니다.
// 윈도우에서는 $HOME/Application Data\Sublime Text 3\Packages\User\Python-UTF8.sublime-build 과 같은 경로가 됩니다.
// 이제 Tols -> Build System 에서 Python-UTF8 을 선택하고, 실행할 파이썬 스크립트를 연 후, Ctrl+B 를 눌러봅니다.
// 한글이 잘 출력되면 OK !!!
{
"shell_cmd": "python -u \"$file\"",
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 10, 2024 16:49
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname