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
// <Route exact path="/staff/:staffId/:type" Component={StaffReference} /> | |
// type == personal or work | |
// GET: /api/v1/get-refer/:staffId/:type | |
const { staffId, type } = req.params; | |
let findRef; | |
if (type === 'personal'){ | |
findRef = await PersonalReference.findOne({ where: { staffId }}); |
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
[ | |
"Abbey" | |
, "Aboriginal and Torres Strait Islander Organisation" | |
, "Aboriginal Art Gallery" | |
, "Abrasives Supplier" | |
, "Accountant" | |
, "Accounting Firm" | |
, "Accounting School" | |
, "Accounting Software Company" |
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
// build any express app that shows backend skills | |
const skills = [ | |
'deep database knowledge', | |
'deep security knowledge', | |
'deep testing (unit, integrated, and e2e)', | |
'worker_thread and clusters', | |
'networking' | |
] |
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
// 1. Given an array arr and a number N, find a pair (x,y) such that x+y=N. Return null if it doesn’t exist. | |
// 2. Find the sum of continuous subarray within a one-dimensional array of numbers that has the largest sum. | |
// 1.... | |
function isPairInArray(arr, n) { | |
for (let i=0;i < arr.length; i++) { | |
for (let j=1; j < arr.length; j++) { |
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 App = () => { | |
const [word, setWord] = React.useState(''); | |
const [array, setArray] = React.useState([]); | |
function isPal(word) { | |
return word.split('').reverse().join('') === word; | |
} | |
function setValue (evnt) { | |
setWord(evnt.target.value) | |
} |
OlderNewer