Skip to content

Instantly share code, notes, and snippets.

View justinbmeyer's full-sized avatar

Justin Meyer justinbmeyer

View GitHub Profile
View survey.md

Continuous Exploration

The process of refining ideas into an actionable backlog.

image

View file-to-delete.js
["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

@justinbmeyer
justinbmeyer / jsmem.md
Last active August 19, 2022 04:50
JS Memory
View jsmem.md

JavaScript Code

var str = "hi";

Memory allocation:

Address Value Description
...... ...
View foo.js
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
type CounterState = { count: number };
const initialState = {
count: 0,
};
function Counter() {
const [state, actions, queue, error] = useSimpleReducer(
// initial state
initialState,
View reducer.jsx
type ActionType =
| { type: "LOADING" }
| { type: "ADD_SUCCESS", payload: number }
| { type: "ADD_FAILURE", payload: any };
type StateType = {
count: number,
isActive: boolean,
error: any,
};
@justinbmeyer
justinbmeyer / gist:dc11015d89a44f5a4b0fd949fe677214
Created November 27, 2020 18:40
how many numbers can you create with five 2s?
View gist:dc11015d89a44f5a4b0fd949fe677214
<script>
function fac(num) {
if(!Number.isInteger(num)) {
return NaN;
}
if(num > 10) {
return Infinity;
}
if (num === 0 || num === 1)