Since Twitter doesn't have an edit button, it's a suitable host for JavaScript modules.
Source tweet: https://twitter.com/rauchg/status/712799807073419264
const leftPad = await requireFromTwitter('712799807073419264');Since Twitter doesn't have an edit button, it's a suitable host for JavaScript modules.
Source tweet: https://twitter.com/rauchg/status/712799807073419264
const leftPad = await requireFromTwitter('712799807073419264');This script is intended to automatically fix the sequence numbers for all tables in the current database.
This is accomplished through the use of the setval() command, which we provide with the next ID value we wish to make use of.
We use the setval(sequence, number, is_called) overload
and set is_called = false in conjunction with COALESCE(MAX + 1, 1) to ensure that, with an empty table, the next sequence
value is 1 as expected.
It's now here, in The Programmer's Compendium. The content is the same as before, but being part of the compendium means that it's actively maintained.
| { | |
| "Type": "AWS::Logs::SubscriptionFilter", | |
| "DependsOn": "LoggingLambdaPermission", | |
| "Properties": { | |
| "LogGroupName": "LogGroup", | |
| "FilterPattern": "{ $.HaHaThisIsJson NOT EXISTS }", | |
| "DestinationArn": { | |
| "Fn::GetAtt": [ | |
| "LoghandlerLambdaFunction", | |
| "Arn" |
| #!/bin/bash | |
| # This is a companion script to https://github.com/konstantin-kelemen/arduino-amiibo-tools | |
| # The original post this was crafted for was https://games.kel.mn/en/create-amiibo-clones-with-arduino/ | |
| # For more info go to https://games.kel.mn/en/companion-script-to-simplify-amiibo-cloning-with-arduino/ | |
| #requirements: | |
| #sha1sum (part of coreutils) | |
| #xxd (part of vim) | |
| #hexdump | |
| #amiitool (https://github.com/socram8888/amiitool) |
| import { GraphQLRequestContext } from 'apollo-server-core/dist/requestPipelineAPI'; | |
| import { Request } from 'apollo-server-env'; | |
| import beeline from 'honeycomb-beeline'; | |
| import { | |
| DocumentNode, | |
| GraphQLResolveInfo, | |
| ResponsePath, | |
| ExecutionArgs, | |
| GraphQLOutputType, | |
| GraphQLCompositeType, |
myMac.domain.comsudo scutil --set HostName <new host name>The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.
This means you have the following choices:
import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.await import(…) from CommonJS instead of require(…).