Skip to content

Instantly share code, notes, and snippets.

View CodisRedding's full-sized avatar
🎯
Focusing

Rocky Assad CodisRedding

🎯
Focusing
View GitHub Profile
@CodisRedding
CodisRedding / index.js
Created December 11, 2017 17:03
Request event not firing
"use strict";
exports.plugin = {
pkg: require("../package.json"),
register: (server, options) => {
console.log(Object.keys(server.events._eventListeners));
Object.keys(server.events._eventListeners).map(evt => {
server.events.on(evt, () => {
console.log(evt);
@CodisRedding
CodisRedding / cloudSettings
Created September 7, 2017 19:23
Visual Studio Code Settings Sync Gist
{"lastUpload":"2017-09-07T19:22:05.184Z","extensionVersion":"v2.8.3"}
return bluebird.join(
auth.getUserJwt(personId, clientId),
formioSubmissionDiff.diff(submission, personId, clientId, apiPath),
(userToken, diff) => {
saveDataToEhr(diff, personId, clientId);
})
.catch((error) => {
logger.error(error);
return reply(boom.badRequest(error.message));
});
@CodisRedding
CodisRedding / ruby.johnson-when.my.love.comes.down.txt
Last active November 2, 2016 15:18
Ruby Johnson - When my Love Comes Down (lyrics)
when my love comes down
it can be sun down
or just before day
can be in December
or even in May
oh, you don’t have to be around daddy
the very thought of you that’s all my love
all my love come down
@CodisRedding
CodisRedding / ISO-8601.regex
Created August 24, 2016 00:15
ISO 8601 regex
^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24\:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$
@CodisRedding
CodisRedding / formio-auth.js
Last active August 8, 2016 20:20 — forked from rahatarmanahmed/formio-auth.js
Authentication Example.
var request = require('request');
request.post(
'https://formio.form.io/user/login',
{
data: {
'email': email,
'password': password
}
},
" ============================================================================
" Netrw Directory Listing (netrw v156)
" /Users/rocky.assad/src/tools/jira-githooks
" Sorted by name
" Sort sequence: [\/]$,\<core\%(\.\d\+\)\=\>,\.h$,\.c$,\.cpp$,\~\=\*$,*,\.o$,\.obj$,\.info$,\.swp$,\.bak$,\~$
" Quick Help: <F1>:help -:go up dir D:delete R:rename s:sort-by x:special
" ==============================================================================
../
./
.git/
cask_args appdir: '/Applications'
tap 'homebrew/bundle'
brew 'ack'
brew 'coreutils'
brew 'grc'
brew 'libgit2'
brew 'openssl'
brew 'readline'
@CodisRedding
CodisRedding / bash.sh
Created March 19, 2016 00:47
bash cheatsheet
A; B Run A and then B, regardless of success of A
A && B Run B if A succeeded
A || B Run B if A failed
A & Run A in background.
# Use `hub` as our git wrapper:
# http://defunkt.github.com/hub/
hub_path=$(which hub)
if (( $+commands[hub] ))
then
alias git=$hub_path
fi
# The rest of my fun git aliases
alias gpp='git pull --prune'