This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- This function is a generalized way to upsert multiple optional fields of a | |
-- table based on the hstore param "my_params" | |
create or replace function upsert_table_vararg( | |
my_table_name text, | |
my_id_col_name text, | |
my_params hstore | |
) | |
returns void as $$ | |
declare vkey text; | |
declare vquery text; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function d() { | |
return Math.random() >= 0.5; | |
} | |
function myLoop() { | |
var interval = setInterval(function() { | |
var str = '`~=~`~=+=~`~``~=~`~-+==~`~-_-~`:'; | |
if ($('body')) { | |
var str = $('body').text(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function myLoop() { | |
var interval = setInterval(function() { | |
$.post('/mojis', { 'moji[content]': 'hi' }); | |
/*$.post('/users', { | |
'user[username]': Date(), | |
'user[password]': 'sillypass', | |
'user[password_confirmation]': 'sillypass' | |
});*/ | |
}, 500); | |
} |
NewerOlder