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
{ | |
"meta": { "theme": "elegant" }, | |
"basics": { | |
"name": "Alex Moreton", | |
"label": "Software Developer", | |
"image": "", | |
"email": "[email protected]", | |
"phone": "", | |
"url": "https://registry.jsonresume.org/lxm7", | |
"summary": "React full-stack developer", |
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 useReduxState from 'utils/hooks/useReduxState'; | |
// Interfaces | |
import ICreditPack, { emptyCreditPack } from 'utils/interfaces/ICreditPack'; | |
import ICreditPackExecutiveSummary from 'utils/interfaces/ICreditPackExecutiveSummary'; | |
import ICreditPackApplicationFace from 'utils/interfaces/ICreditPackApplicationFace'; | |
import ICreditPackAppraisal, { | |
ICreditPackAppraisalSubSection, | |
TSectionKey, | |
TClippingType, |
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 rootResolvers = { | |
Query: { | |
coins: async (_, { limit, offset }) => { | |
const initialLimit = process.env.LIMIT || limit; | |
const initialOffset = offset || 0; | |
const cmc = await fetchCmcListFn(initialLimit, initialOffset); | |
const cc = await fetchCcListFn(); | |
const coinListWithCcId = lodash(cmc) // start sequence |
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
# Add git branch if its present to PS1 | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
} | |
if [ "$color_prompt" = yes ]; then | |
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[01;31m\]$(parse_git_branch)\[\033[00m\]\$ ' | |
else | |
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w$(parse_git_branch)\$ ' |
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 prizesArr = [{id:1, value: "100"}, {id:2, value: "10"}, {id:3, value: "100"}]; | |
let values = [] as string[]; | |
// This checks for the highest occurence of the property value in each prize. | |
// They're wont be any higher than 3, and this 3x occurence is the prize | |
// amount that's passed to the promotionTriggerOptIn function | |
return prizesArr | |
.reduce((prev, curr) => { prev.push(curr.value); return prev; }, values = []) | |
.sort((a, b) => values.filter((v) => v === a).length - values.filter((v) => v === b).length) | |
.pop(); | |
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
{ | |
"color_scheme": "Packages/Oceanic Next Color Scheme/Oceanic Next.tmTheme", | |
"ensure_newline_at_eof_on_save": true, | |
"folder_exclude_patterns": | |
[ | |
".svn", | |
".git", | |
".hg", | |
"CVS", | |
"node_modules" |