https://developers.cloudflare.com/workers/about/how-it-works/
- goto workers.dev to create your account
- create a cloudflare account, verify your account thru email (IMPORTANT)
after registration you are prompted to add a site
https://developers.cloudflare.com/workers/about/how-it-works/
after registration you are prompted to add a site
for f in foo.replace; do
mv -- "$f" "${f%.ts}.tsx"
done
find . -name "*.txt" -exec rename 's/.txt$/.newext/' {} \;
#!/bin/bash | |
# Chrome Refresh | |
# | |
# Simple applescript browser reloader for Google Chrome. It will either open a | |
# new tab with the url passed in as an argument, refresh an existing tab, or open | |
# a file from your current working directory. | |
# | |
# Link this up with watchr to auto-refresh browser windows when you save files | |
# or bind it in vim, textmate etc. |
#! /bin/bash | |
function runCheck() { | |
while :; do | |
curl 'https://ww8.ikea.com/clickandcollect/us/receive/' \ | |
-H 'authority: ww8.ikea.com' \ | |
-H 'pragma: no-cache' \ | |
-H 'cache-control: no-cache' \ | |
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36' \ | |
-H 'dnt: 1' \ |
== bin/development.ts (4 issues) ==
20-106: Function startServer
has 56 lines of code (exceeds 25 allowed). Consider refactoring. [structure]
40-50: Similar blocks of code found in 3 locations. Consider refactoring. [duplication]
52-62: Similar blocks of code found in 3 locations. Consider refactoring. [duplication]
64-74: Similar blocks of code found in 3 locations. Consider refactoring. [duplication]
== coverage/lcov-report/block-navigation.js (2 issues) ==
2-78: Function init
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. [structure]
2-78: Function init
has 57 lines of code (exceeds 25 allowed). Consider refactoring. [structure]
// exmaple.js | |
var express = require('express') | |
var app = express() | |
app.get('/foo', function (req, res) { | |
res.redirect(301, '/bar') | |
res.send('hello world') // should not set body while redirect in flight | |
}) | |
#!/bin/bash | |
# Output the current deployment URL for a PR. | |
# - Automatically determines the PR for your current branch if possible. | |
# Dependencies: `gh` and `jq` | |
ME=`basename $0` | |
# helpFunction([error message]) | |
helpFunction() | |
{ |
a feature is to be considered in 'critical path' if it would require a rollback after breaking
// Application Javascript - see https://github.com/lfender6445/google_places for full example | |
var autocomplete, input, address = {}; | |
$(document).ready(function(){ | |
input = $("#searchBox"); | |
$("#searchBox").clearOnFocus(); | |
$('form').submit(function(){ return false; }); | |
}); | |
var init = function(){ |
import React, { Component } from 'react' | |
import PropTypes from 'prop-types' | |
import Baz from 'baz' | |
class Foo extends Component { | |
static propTypes = { | |
baz: PropTypes.bool, | |
list: PropTypes.array, | |
} |