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
public class Canonical { | |
private int members[]; | |
public void setMembers(int members[]) { | |
this.members = members; | |
} | |
private int findRoot(int memberId) { | |
boolean foundRoot = false; | |
int rootId = memberId; |
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 java.util.EmptyStackException; | |
import java.util.HashMap; | |
class MemberLogItem { | |
public int timestamp = 0; | |
public int follower = 0; | |
public int followee = 0; | |
public MemberLogItem(int timestamp, int follower, int followee) { | |
this.timestamp = timestamp; |
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
[ | |
{ | |
"key": "ctrl+space", | |
"command": "workbench.action.terminal.toggleTerminal" | |
}, | |
{ | |
"key": "ctrl+space", | |
"command": "workbench.action.terminal.focus", | |
"when": "!terminalFocus" | |
}, |
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
// You must create a folder in your root directory named environments/ | |
// Add the following lines to your .gitignore | |
// /src/environments/environment.ts | |
// /src/environments/*.development.ts | |
// /src/environments/*.production.ts | |
// /src/environments/*.staging.ts | |
// Under src/environments add your environment.ts files like you normally do. |
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
'use strict'; | |
import ExampleObject from './../objects/ExampleObject'; | |
const schema = { | |
"properties": { | |
"primaryID": { | |
"type": "string", | |
"format": "uuid" | |
} |
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
'use strict'; | |
import utilities from './../lib/utilities'; | |
import ExampleObject from './../objects/ExampleObject'; | |
import Ajv from 'ajv'; | |
const schema = { | |
"properties": { | |
"primaryID": { | |
"type": "string", |
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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Serverless", | |
"program": "${workspaceFolder}/node_modules/.bin/sls", | |
"cwd": "${workspaceFolder}", | |
"args": [ |
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
const nodeExternals = require('webpack-node-externals'); | |
const path = require('path'); | |
const slsw = require('serverless-webpack'); | |
module.exports = { | |
devtool: 'source-map', | |
entry: slsw.lib.entries, | |
target: 'node', | |
externals: [nodeExternals()], | |
output: { |