Skip to content

Instantly share code, notes, and snippets.

println(scala.util.Random.shuffle(1 to 45) take 6 mkString " ")
@Naetmul
Naetmul / signature.py
Created June 15, 2018 11:38
Twitter (OAuth): Creating a signature in Python 3.6.5
from typing import Optional, Dict
from enum import Enum, auto
import base64
import hmac
import requests
class HttpMethod(Enum):
GET = auto()
POST = auto()
@Naetmul
Naetmul / Tensorflow-Keras ADAM with lr=0.0002.txt
Created November 2, 2018 05:45
Adam is also affected by the initial learning rate (lr).
Vocabulary size 2544
Sequence length 20
_________________________________________________________________
Layer (type) Output Shape Param #
=================================================================
embedding (Embedding) (None, 20, 50) 127200
_________________________________________________________________
lstm (LSTM) (None, 20, 100) 60400
_________________________________________________________________
lstm_1 (LSTM) (None, 100) 80400
@Naetmul
Naetmul / Paste As Text.ahk
Created February 6, 2023 07:04
AutoHotkey script to "Paste As Text" when Ctrl+Win+V is pressed (for AHK v2.0)
#Requires AutoHotkey v2.0
^#v:: ; Ctrl + Win + V
{
ClipboardOld := ClipboardAll() ; Save the original clipboard contents
; A_Clipboard is a built-in variable that reflects the current contents of
; the Windows clipboard if those contents can be expressed as text.
A_Clipboard := A_Clipboard
SendInput "^v" ; Send Ctrl + V (SendInput is faster than Send)