This gist contains lists of modules available in
in AWS Lambda.
#!/usr/bin/env php | |
<?php | |
function helpMessage($exit = 0) { | |
echo <<<EOT | |
Delay output by specified number of seconds. | |
-t <float> duration in seconds | |
EOT; |
/* | |
* Handling Errors using async/await | |
* Has to be used inside an async function | |
*/ | |
try { | |
const response = await axios.get('https://your.site/api/v1/bla/ble/bli'); | |
// Success 🎉 | |
console.log(response); | |
} catch (error) { | |
// Error 😨 |
This gist contains lists of modules available in
in AWS Lambda.
Database: heroku_1ed5a148e6d9415 | |
Table: black_cards | |
[16 entries] | |
+----+--------------------------------------------------------------------------------------------------------------+ | |
| id | content | | |
+----+--------------------------------------------------------------------------------------------------------------+ | |
| 1 | _____ means never having to say you're sorry. | | |
| 2 | The pen tester found _____ in the trash while dumpster diving. | | |
| 3 | Our CIO has a framed a picture of _____. | | |
| 4 | 9 out of 10 experts agree, _____ will increase your security effectiveness. | |
javascript | |
ES6ValidationInspection | |
JSAccessibilityCheckInspection | |
JSBitwiseOperatorUsageInspection | |
JSCheckFunctionSignaturesInspection | |
JSClosureCompilerSyntaxInspection | |
JSCommentMatchesSignatureInspection | |
JSComparisonWithNaNInspection | |
JSConsecutiveCommasInArrayLiteralInspection |
<?php | |
require_once __DIR__ . 'path/to/src/Verraes/Lambdalicious/load.php'; | |
assert( | |
isatom(@my_atom) | |
); | |
atom(@my_atom); | |
assert( | |
isatom(my_atom) |
// Alerts | |
@include alert-variant($background, $border, $text-color); | |
// Background Variant | |
@include bg-variant($parent, $color); | |
// Border Radius | |
@include border-top-radius($radius); | |
@include border-right-radius($radius); | |
@include border-bottom-radius($radius); |
Since I was looking all around how to uninstall packages and after reading tones | |
of documentations here's the short how-to uninstall a workbench package in Laravel | |
(or how I managed it to work out): | |
1. Remove package service provider from 'providers' array in app/config/app.php | |
2. Remove the package folder in workbench/ | |
3. Run: |
<?php | |
/* Demonstration of problem with large integers in JSON, and | |
a couple options for dealing with them as strings instead. | |
ref: | |
* http://php.net/manual/en/function.json-decode.php | |
* http://stackoverflow.com/questions/2907806/handling-big-user-ids-returned-by-fql-in-php | |
*/ | |
$json = <<<EOT |
As configured in my dotfiles.
start new:
tmux
start new with session name: