As easy as 1, 2, 3!
Updated:
- Aug, 08, 2022 update
config
docs for npm 8+ - Jul 27, 2021 add private scopes
- Jul 22, 2021 add dist tags
- Jun 20, 2021 update for
--access=public
- Sep 07, 2020 update docs for
npm version
const sharp = require('sharp'); | |
const aws = require('aws-sdk'); | |
const s3 = new aws.S3(); | |
const Bucket = "BucketName"; | |
const transforms = [ | |
{ name: 'small', size: 85 }, | |
{ name: 'medium', size: 160 }, | |
{ name: 'large', size: 250 }, | |
]; |
// SPDX-License-Identifier: MIT OR Apache-2.0 | |
pragma solidity ^0.8.4; | |
import "@openzeppelin/contracts/utils/Counters.sol"; | |
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; | |
import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; | |
import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; | |
contract NFT is ERC721URIStorage { | |
using Counters for Counters.Counter; |
from lib import appsync | |
def lambda_handler(event, context): | |
print(event) | |
input = { | |
'name': 'test123', | |
'description': 'some cool description' | |
} |
/* | |
* Resources | |
* Medium: https://medium.com/walletconnect/how-to-build-a-react-native-dapp-with-walletconnect-28f08f332ed7 | |
* YouTube: https://www.youtube.com/watch?v=mGtEPQfqMV8 | |
* Docs: https://docs.walletconnect.com/2.0/advanced/walletconnectmodal/about?platform=react-native | |
*/ | |
import { WalletConnectModal, useWalletConnectModal } from "@walletconnect/modal-react-native" | |
import { StyleSheet, Text, View, TouchableHighlight } from "react-native" | |
const projectId = 'my-project-id' // see https://cloud.walletconnect.com/ |
The first post has been published: https://www.swyx.io/writing/cloud-distros
The second post has been adapted for Temporal: https://www.swyx.io/why-temporal/
these are bullet points of a blogpost on a topic i know very little about but i feel like there is something there that is happening as we speak
import { WebBundlr } from "@bundlr-network/client" | |
import { providers } from "ethers" | |
/* initialize some local state to store the bundlr instance */ | |
const [bundlrInstance, setBundlrInstance] = useState(null) | |
/* connect to the user's wallet */ | |
async function connect() { | |
await window.ethereum.request({ method: 'eth_requestAccounts' }) | |
const provider = new providers.Web3Provider(window.ethereum) |
import { | |
Account, | |
clusterApiUrl, | |
Connection, | |
PublicKey, | |
sendAndConfirmTransaction, | |
SystemProgram, | |
Transaction, | |
} from '@solana/web3.js'; |
import React from 'react'; | |
import logo from './logo.svg'; | |
import './App.css'; | |
import ReactPlayer from 'react-player' | |
import { HashRouter, Link, Switch, Route } from 'react-router-dom' | |
import AuthComponent from './AuthComponent' | |
import { Auth, API } from 'aws-amplify' | |
import { createComment as CreateComment } from './graphql/mutations' | |
import { listComments as ListComments } from './graphql/queries' | |
import { onCreateComment as OnCreateComment } from './graphql/subscriptions' |