Skip to content

Instantly share code, notes, and snippets.

with columns as (
select x.table_name, string_agg(x.column, E'\n') as columns
from (
select
table_name,
(
column_name ||
' ' || data_type ||
' ' || (case when is_nullable is null or is_nullable = 'YES' then 'NULL' else 'NOT NULL' end) ||
' DEFAULT ' || (case when column_default is null then 'NULL' else column_default end)
@maximerety
maximerety / js_types.md
Last active September 20, 2019 16:12
Type checking in JS
@maximerety
maximerety / _webkit_issue_185906
Last active May 23, 2018 09:59
Safari issue with instanceof when retrieving data in an iframe
Filed: https://bugs.webkit.org/show_bug.cgi?id=185906
@maximerety
maximerety / _webkit_issue_185869
Last active May 23, 2018 09:59
Safari issue when having an autoIncrement key and binary data in indexedDB
Filed: https://bugs.webkit.org/show_bug.cgi?id=185869
@maximerety
maximerety / android_app_development_in_java.md
Last active October 17, 2017 08:17
Compilation of links for Android app development (in Java)
@maximerety
maximerety / java_notes.md
Created October 15, 2017 17:29
Java notes

Miscellaneous Java notes

@maximerety
maximerety / gist:9089685
Created February 19, 2014 10:46
Debug YUI loader
// to find which module not named "%anim%" is requiring an "%anim%" module:
// add a conditional breakpoint on the first line of addModule in yui.js
arr = o.requires || []; res = false; for (i = 0; i < arr.length; i++) { if (arr[i].match(/anim/) && !name.match(/anim/)) { res = true; }}; res