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 jobDescription = (language, jobRoll) => { | |
if(language === 'javascript' && jobRoll === 'developer'){ | |
return 'Cool Cat'; | |
} | |
return 'Hot Dog'; | |
} |
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 React, { FC, useLayoutEffect, useCallback } from 'react'; | |
import * as d3 from 'd3'; | |
import * as topojson from 'topojson'; | |
import * as statesMap from '../../data/states-albers-10m.json'; | |
import * as cities from '../../data/us-cities.json'; | |
export const USMapRotate: FC = () => { | |
const projection = d3.geoAlbersUsa().scale(1300).translate([487.5, 305]) | |
const path = d3.geoPath(); |
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 React, { FC, useLayoutEffect, useCallback } from 'react'; | |
import * as d3 from 'd3'; | |
import * as topojson from 'topojson'; | |
import * as statesMap from '../../data/states-albers-10m.json'; | |
import * as cities from '../../data/us-cities.json'; | |
export const USMapRotate: FC = () => { | |
const projection = d3.geoAlbersUsa().scale(1300).translate([487.5, 305]) | |
const path = d3.geoPath(); |
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
// @ts-nocheck | |
import React, { FC, useLayoutEffect, useCallback } from 'react'; | |
import * as d3 from 'd3'; | |
import * as topojson from 'topojson'; | |
import * as statesMap from '../data/states-albers-10m.json'; | |
import * as cities from '../data/us-cities.json'; | |
export const USMap: FC = () => { | |
const projection = d3.geoAlbersUsa().scale(1300).translate([487.5, 305]) |
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
export const twoDimArrayToObject = function(array: string[][]) { | |
const returnObject: { | |
[key: string]: string | |
} = {}; | |
array.forEach((element) => { | |
returnObject[element[0]] = element[1]; | |
}) | |
return returnObject; | |
} |
NewerOlder