This file contains 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
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})" | |
if [[ $UID -eq 0 ]]; then | |
local user_host='%{$terminfo[bold]$fg[red]%}%n@%m %{$reset_color%}' | |
local user_symbol='#' | |
else | |
local user_host='%{$terminfo[bold]$fg[green]%}%n@%m %{$reset_color%}' | |
local user_symbol='$' | |
fi |
This file contains 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
import | |
{ [Function: model] | |
hooks: | |
Kareem { | |
_pres: Map { 'save' => [Array], 'remove' => [Array] }, | |
_posts: Map { 'save' => [Array], 'init' => [Array] } }, | |
base: | |
Mongoose { | |
connections: [ [NativeConnection] ], | |
models: { User: [Circular] }, |
This file contains 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
Import Cost | |
Auto Close Tag | |
Auto Rename Tag | |
TODO highlight | |
ES7 React | |
GitLens | |
ESLint |
This file contains 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
export default (url, method = 'POST', params) => { | |
return new Promise((resolve, reject) => { | |
const request = new XMLHttpRequest(); | |
request.open(method, url, true); | |
request.setRequestHeader("X-Requested-With", "XMLHttpRequest"); | |
request.onload = () => { | |
if (request.status >= 200 && request.status < 400) { | |
try{ | |
resolve(JSON.parse(request.responseText)); |