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
/** | |
* Smart contract enabling funding and exchanging of DevCoin. | |
* The rate is defined by the owner of the contract, but it will never be less than ICO price. | |
* The price of token in ETH is 1/rate. Eg for 1 Eth the sender will get rate number of tokens. | |
*/ | |
contract Exchange { | |
using SafeMath for uint256; | |
address public owner; | |
uint public creationTime = now; |
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 }, | |
]; |
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
from lib import appsync | |
def lambda_handler(event, context): | |
print(event) | |
input = { | |
'name': 'test123', | |
'description': 'some cool description' | |
} |
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' |
import { | |
Account, | |
clusterApiUrl, | |
Connection, | |
PublicKey, | |
sendAndConfirmTransaction, | |
SystemProgram, | |
Transaction, | |
} from '@solana/web3.js'; |
import { useState, useEffect } from 'react' | |
import Web3 from 'web3' | |
const [account, setAccount] = useState(null) | |
let [web3, setWeb3] = useState(null) | |
useEffect(() => { | |
checkAccount() | |
}, []) | |
// invoke to connect to wallet account |
// 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; |