Skip to content

Instantly share code, notes, and snippets.

View NatLee's full-sized avatar
🌵
I NEED SLEEP *FOREVER*

Nat NatLee

🌵
I NEED SLEEP *FOREVER*
View GitHub Profile
@raghavgurbaxani
raghavgurbaxani / imdb_lstm.py
Created June 25, 2018 19:43
Embedding Layer Float 16
'''Trains an LSTM model on the IMDB sentiment classification task.
The dataset is actually too small for LSTM to be of any advantage
compared to simpler, much faster methods such as TF-IDF + LogReg.
# Notes
- RNNs are tricky. Choice of batch size is important,
choice of loss and optimizer is critical, etc.
Some configurations won't converge.
@fernandoremor
fernandoremor / video.py
Created February 1, 2017 14:32 — forked from artizirk/01-video.py
python v4l2 webcam capture test
#!/usr/bin/env python3
from v4l2 import *
import fcntl
import mmap
import select
import time
vd = open('/dev/video0', 'rb+', buffering=0)
@subfuzion
subfuzion / curl.md
Last active December 5, 2025 19:15
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@iros
iros / API.md
Created August 22, 2012 14:42
Documenting your REST API

Title

<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method: