Skip to content

Instantly share code, notes, and snippets.

@jordanmkoncz
jordanmkoncz / .react-navigation iOS 11 Navigation Bar with Large Title
Last active May 9, 2022 16:21
react-navigation iOS 11 Navigation Bar with Large Title
#
@singhshivam
singhshivam / Immutable JS Examples
Last active August 5, 2023 19:16
Immutable JS Examples
List()
var list = Immutable.List([1,2,3])
// [1, 2, 3]
List.isList()
Immutable.List.isList(list)
// true
List.of()
var list = Immutable.List.of(1,2,3);
@dchaplinsky
dchaplinsky / print_statement.py
Created November 5, 2014 19:03
A neat way to print raw SQL for SQLAlchemy statement with dialect specific stuff and all params substituted.
from sqlalchemy.dialects import postgresql
print(YOUR_SQL.statement.compile(dialect=postgresql.dialect(), compile_kwargs={"literal_binds": True}))
@enagorny
enagorny / gist:1626212
Created January 17, 2012 10:55
JS GET parameters as dict
function urlGET(){
var search = window.location.search.replace('?', '').split('&');
var GET = new Array();
for(var i=0; i<search.length; i+=1){
search[i] = search[i].split('=');
GET[decodeURIComponent(search[i][0])] = decodeURIComponent(search[i][1]);
};
return GET;
};