I hereby claim:
- I am entropitor on github.
- I am entropitor (https://keybase.io/entropitor) on keybase.
- I have a public key ASC1g7JjRIQbFR6uY1mozUi8sqxEi6w3SmywtO5Kai9ynAo
To claim this, I am signing this object:
// Why do we compute types from other types? Is it practical? | |
// | |
// Image a function that takes a url like "/company/:companyName" and some parameters like {companyName: "DataCamp"} | |
// and returns the url with parameters filled in like "/company/DataCamp" | |
// | |
// How would we type this? | |
// A naive implementation might be like the following: | |
// (With Record<string, string> just be any "map"/"object" with string keys and string values) | |
const fillInUrl = (url: string, parameters: Record<string, string>): string => { |
import fs from "fs"; | |
const body = JSON.parse(fs.readFileSync("./dashboard.json").toString()); | |
const renderGroupWidget = (widget) => { | |
return `widget { | |
group_definition { | |
layout_type = "${widget.definition.layout_type}" | |
title = "${widget.definition.title}" | |
${renderWidgets(widget.definition.widgets) |
import React, { Component } from 'react' | |
import { View, Text, TouchableOpacity, AppRegistry } from 'react-native' | |
import { | |
createSwitchNavigator, | |
createStackNavigator, | |
StackActions, | |
NavigationActions, | |
createAppContainer, | |
} from 'react-navigation' |
I hereby claim:
To claim this, I am signing this object:
### Keybase proof | |
I hereby claim: | |
* I am caske33 on github. | |
* I am caske33 (https://keybase.io/caske33) on keybase. | |
* I have a public key whose fingerprint is C7F4 D6E1 1E71 93E1 E5A1 127D 9320 04D3 6CE7 311C | |
To claim this, I am signing this object: |