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
const generateUpdateQueryExpression = (fields: Partial<TableStructure>) => { | |
const exp = { | |
UpdateExpression: "SET", | |
ExpressionAttributeNames: {} as ObjectWithProperties, | |
ExpressionAttributeValues: {} as ObjectWithProperties, | |
}; | |
Object.entries(fields).forEach(([key, item]) => { | |
const keyParts = key.split("."); | |
const valueKey = keyParts[keyParts.length - 1]; | |
const attributeNames = `#${keyParts.join(".#")}`; |
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
FROM openjdk:8 | |
# Install Git and dependencies | |
RUN dpkg --add-architecture i386 \ | |
&& apt-get update \ | |
&& apt-get install -y file git curl zip libncurses5:i386 libstdc++6:i386 zlib1g:i386 \ | |
&& apt-get clean \ | |
&& rm -rf /var/lib/apt/lists /var/cache/apt | |
# Set up environment variables |
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
openssl genrsa -out saml.pem 1024 | |
openssl req -new -key saml.pem -out saml.csr | |
openssl x509 -req -in saml.csr -signkey saml.pem -out saml.crt |
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
const Primus = require('primus') | |
const Socket = Primus.createSocket({ parser: 'binary' }) | |
const client = new Socket('http://localhost:3030', { transport: { headers: { 'admin': 'true' } } }) | |
client.on('open', () => { | |
console.log('opened!') | |
client.on('data', data => { | |
console.log(data) | |
}) | |
client.write('Hello') |
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
DB: | |
Honour: | |
{ id: '' | |
, tournamentId: '' | |
, slug: 'runner-up || winner || mvp' | |
, priority: '' | |
} |
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
{ "scripts": | |
{ "prepare": "nave use 4.3.1 npm install" | |
}, | |
"dependencies": | |
{ "multi-glob": "1.0.1" | |
} | |
} |
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
{ "excludeFiles": | |
[ "node_modules/**" | |
, "coverage" | |
] | |
, "requireLineFeedAtFileEnd": true | |
, "disallowMultipleLineBreaks": true | |
, "requireMultipleVarDecl": true | |
, "disallowEmptyBlocks": true | |
, "disallowSpaceAfterObjectKeys": true | |
, "disallowCommaBeforeLineBreak": true |
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
{ "asi": true | |
, "boss": true | |
, "browser": true | |
, "camelcase": true | |
, "curly": false | |
, "devel": false | |
, "devel": true | |
, "eqeqeq": true | |
, "eqnull": true | |
, "es5": false |
NewerOlder