View file-to-delete.js
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
["academy/react.html", | |
"academy/react/sample.html", | |
"academy/learn-technology-consulting/management.html", | |
"academy/learn-technology-consulting/tools-and-technology.html", | |
"academy/learn-technology-consulting/transition-sales-to-delivery.html", | |
"academy/learn-technology-consulting/prioritizing.html", | |
"academy/learn-technology-consulting/product-management.html", | |
"academy/learn-technology-consulting/priorities.html", | |
"academy/learn-react-the-right-way/sample.html", |
View foo.md
Learn more about how the database is created
Foo bar
asdfasdfa
asd fads fsda
View foo.js
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
async $beforeInsert (queryContext) { | |
await super.$beforeInsert(queryContext) | |
validateStartDate(this) | |
const trx = await Person.startTransaction(); | |
await this.validateAssignmentOverlap(this, trx) | |
queryContext.resolveTransaction = trx; | |
} | |
async $afterInsert (queryContext) { |
View simple-reduce.jsx
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
type CounterState = { count: number }; | |
const initialState = { | |
count: 0, | |
}; | |
function Counter() { | |
const [state, actions, queue, error] = useSimpleReducer( | |
// initial state | |
initialState, |
View reducer.jsx
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
type ActionType = | |
| { type: "LOADING" } | |
| { type: "ADD_SUCCESS", payload: number } | |
| { type: "ADD_FAILURE", payload: any }; | |
type StateType = { | |
count: number, | |
isActive: boolean, | |
error: any, | |
}; |
View gist:dc11015d89a44f5a4b0fd949fe677214
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
<script> | |
function fac(num) { | |
if(!Number.isInteger(num)) { | |
return NaN; | |
} | |
if(num > 10) { | |
return Infinity; | |
} | |
if (num === 0 || num === 1) |
View yum-test.md
Hello!
Thank you for applying to ROLE
.
In this take home exercise, you will test that one of the YumCommerce endpoints is returning data successfully.
While we suggest particular technologies (mocha), you can build a similar test script with the technology you are most comfortable with.
- Create a github repo
- Setup a nodejs project
View Elevator Pitches.md
Easily build components
CanJS makes it really easy to build web components. Why easy:
A class-based, object oriented API
CanJS has a class-based, Object Oriented API:
class MyCounter extends StacheElement {
NewerOlder