URL: Stage: <dev/staging/qa/prod> (if applicable)
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 [widgets, setWidgets] = React.useState<Widget[]>([]); | |
const [animals, setAnimals] = React.useState<Animal[]>([]); | |
useSyncToTable<Widget[]>({ | |
thingToWatch: widgets, | |
tableName: "widgets", | |
debounce: 500, | |
}); | |
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
{ | |
"location": { | |
"name": "Nederland", | |
"region": "Colorado", | |
"country": "United States of America", | |
"lat": 39.96, | |
"lon": -105.5, | |
"tz_id": "America/Denver", | |
"localtime_epoch": 1608142276, | |
"localtime": "2020-12-16 11:11" |
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 calculateLoadTimes = () => { | |
// Check performance support | |
if (performance === undefined) { | |
return []; | |
} | |
// Get a list of "resource" performance entries | |
const resources = performance.getEntriesByType("resource"); | |
if (resources === undefined || resources.length <= 0) { | |
return []; |
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
Packing version 98c8d04-master | |
Deploying to Scrapy Cloud project "373200" | |
Deploy log last 3 lines: | |
{"message": "500 Server Error: Internal Server Error for url: https://kumo-builder-prod.dc21.scrapinghub.com:2376/v1.27/auth", "error": "internal_error"} | |
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
from sklearn.ensemble import RandomForestClassifier | |
clf = RandomForestClassifier() | |
target_variable = 'does-make-more-than-50k' | |
columns = ['age', 'education', 'hours-worked-per-week'] | |
clf.fit(df[columns], df[target_variable]) |
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
version: '3.3' | |
services: | |
db: | |
image: mysql:5.7 | |
volumes: | |
- dbdata:/var/lib/mysql | |
restart: always | |
environment: | |
MYSQL_ROOT_PASSWORD: somewordpress |
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
" Generated by Color Theme Generator at Sweyla | |
" http://sweyla.com/themes/seed/690000/ | |
set background=dark | |
hi clear | |
if exists("syntax_on") | |
syntax reset | |
endif |
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
" Generated by Color Theme Generator at Sweyla | |
" http://sweyla.com/themes/seed/690000/ | |
set background=dark | |
hi clear | |
if exists("syntax_on") | |
syntax reset | |
endif |
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
#!/usr/bin/env bash | |
# make sure the user running this script has permission to run docker | |
docker ps > /dev/null | |
# remove "<none>" images | |
docker rmi -f $(docker images | grep none | awk '{ print $3 }') | |
# cleanup exited containers | |
docker rm -f $(docker ps -f status=exited -q) |
NewerOlder