I hereby claim:
- I am willdages on github.
- I am willdages (https://keybase.io/willdages) on keybase.
- I have a public key ASBYiYMBfMxo4OhSOp6SKlEo6f_fT8GUFdM4JwFb6JpJIwo
To claim this, I am signing this object:
var query = new Parse.Query("Classname"); | |
query.count({ | |
error: function(error) { | |
// Error counting objects | |
}, | |
success: function(count) { | |
query.skip(Math.floor(Math.random() * (count - 1))); | |
query.first({ | |
error: function(error){ | |
// Error getting object |
var object = { | |
"a": 1, | |
"b": 2, | |
"c": 3 | |
} | |
console.log('Look at this awesome object: ' + object); | |
// Outputs: Look at my awesome object: [object Object] -- totally opaque :( | |
console.log('Look at this awesome object: %o', object); |
function add(input1, input2) { | |
debugger; | |
return input1 + input2; | |
} | |
// Debugger is like using breakpoints in the source inspector, | |
// it pauses script execution and gives you access to local variables | |
// Run this example and type in 'input1' into the console when the page | |
// goes gray -- you have access to the scope where you put the 'debugger' statement! |
I hereby claim:
To claim this, I am signing this object:
## The `substring(8)` returns the input with everything after "payload=" which is the only parameter passed in, | |
## everything else is encoded JSON inside that parameter. | |
#set ($encodedJSON = $input.body.substring(8)) | |
$util.urlDecode(${encodedJSON}) |