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
{"lastUpload":"2018-07-09T03:53:18.280Z","extensionVersion":"v2.9.2"} |
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
// Cascade delete for loopback | |
// https://gist.github.com/CjS77/44b2f75c0ec468f590d0 | |
/* jshint node:true */ | |
'use strict'; | |
/** | |
* There is an incubating feature to cascade the deletes to the relational tables. see | |
* https://github.com/strongloop/loopback-datasource-juggler/issues/88 | |
*/ |
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
Show hidden characters
{ | |
"defaultSeverity": "error", | |
"extends": ["tslint:recommended"], | |
"jsRules": {}, | |
"rules": { | |
"quotemark": [true, "single"], | |
"trailing-comma": [false], | |
"only-arrow-functions": [false], | |
"no-console": [false], | |
"ordered-imports": [false], |
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
find . -name .DS_Store -print0 | xargs -0 git rm --ignore-unmatch |
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
# Edit this file | |
alias aliases="nano ~/.bash_profile" # usage: type `aliases` in Terminal | |
# Navigate to location | |
alias home="cd ~" | |
alias desktop="cd ~/Desktop/" | |
alias repos="cd ~/Documents/Repos/" | |
# Navigate to project directory | |
alias ds="clear && cd ~/Documents/Repos/design-system" |
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
- Open Automator | |
- File -> New -> Service | |
- Change "Service Receives" to "files or folders" in "Finder" | |
- Add a "Run Shell Script" action | |
- Change "Pass input" to "as arguments" | |
- Paste the following in the shell script box: open -n -b "com.microsoft.VSCode" --args "$*" | |
- Save it as something like "Open in Visual Studio Code" |
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 timeConvert(minutes) { | |
return `${Math.floor(minutes / 24 / 60)}:${Math.floor((minutes / 60) % 24)}:${Math.floor(minutes % 60)}`; | |
} |
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
{ | |
"compilerOptions": { | |
"target": "ES6", | |
"module": "commonjs", | |
"allowSyntheticDefaultImports": true, | |
"checkJs": true, | |
"jsx": "react-native" | |
}, | |
"exclude": ["node_modules"] | |
} |
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 file should execute in the database that you want to assign this user | |
CREATE USER webappuser | |
FOR LOGIN webappuser | |
GO | |
EXEC sp_addrolemember N'db_datareader', N'webappuser' | |
EXEC sp_addrolemember N'db_datawriter', N'webappuser' | |
EXEC sp_addrolemember N'db_ddladmin', N'webappuser' | |
GO |
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
GRANT EXECUTE ON schema::<schema name> TO <user name> |
OlderNewer