Skip to content

Instantly share code, notes, and snippets.

@u4587426
u4587426 / sql-updates.sql.groovy
Created January 21, 2019 10:17
Simple Script to Bulk Extract CSV from IntelliJ (DataGrip) as Update Statements (Custom Extractor)
SEP = ", "
QUOTE = "\'"
NEWLINE = System.getProperty("line.separator")
KEYWORDS_LOWERCASE = com.intellij.database.util.DbSqlUtil.areKeywordsLowerCase(PROJECT)
KW_UPDATE = KEYWORDS_LOWERCASE ? "update " : "UPDATE "
KW_SET = KEYWORDS_LOWERCASE ? " set " : " SET "
KW_NULL = KEYWORDS_LOWERCASE ? "null" : "NULL"
KW_EQUALS = " = "
KW_WHERE = KEYWORDS_LOWERCASE ? " where " : " WHERE "

Keybase proof

I hereby claim:

  • I am u4587426 on github.
  • I am u4587426 (https://keybase.io/u4587426) on keybase.
  • I have a public key ASDFFoSTxjxtXzaU5A-K4V7BbS5UdAwfWOSoYcn_kJsP0go

To claim this, I am signing this object:

@u4587426
u4587426 / min-char-rnn.py
Created February 14, 2017 02:24 — forked from karpathy/min-char-rnn.py
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy
"""
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
BSD License
"""
import numpy as np
# data I/O
data = open('input.txt', 'r').read() # should be simple plain text file
chars = list(set(data))
data_size, vocab_size = len(data), len(chars)