Some notes on accessing / exporting Apple's Screen Time data
This file contains hidden or 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
| # update system | |
| $ sudo apt update && sudo apt upgrade | |
| # uninstall old node (v10?) | |
| $ sudo apt remove nodejs npm -y | |
| # install nvm | |
| $ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash | |
| # use 'unofficial builds' in nvm |
This file contains hidden or 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
| for DB in $(mysql -u root -p<password> -h <IP of DB> -e 'show databases' -s --skip-column-names); do | |
| mysqldump -u root -p<password> -h<IP of DB> $DB > "$DB.sql"; | |
This file contains hidden or 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
| //Import dependencies | |
| const bip32 = require('bip32') | |
| const bip39 = require('bip39') | |
| const bitcoin = require('bitcoinjs-lib') | |
| //Define the network | |
| const network = bitcoin.networks.bitcoin //use networks.testnet for testnet | |
| // Derivation path | |
| const path = `m/49'/0'/0'/0` // Use m/49'/1'/0'/0 for testnet |
The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.
This means you have the following choices:
- Use ESM yourself. (preferred)
Useimport foo from 'foo'instead ofconst foo = require('foo')to import the package. You also need to put"type": "module"in your package.json and more. Follow the below guide. - If the package is used in an async context, you could use
await import(…)from CommonJS instead ofrequire(…). - Stay on the existing version of the package until you can move to ESM.
This file contains hidden or 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
| pragma solidity ^0.6.7; | |
| import "@chainlink/contracts/src/v0.6/interfaces/AggregatorInterface.sol"; | |
| contract PriceConsumer { | |
| AggregatorInterface internal priceFeed; | |
| /** | |
| * Network: Kovan |
This file contains hidden or 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 TronWeb = require('tronweb'); | |
| const HttpProvider = TronWeb.providers.HttpProvider; | |
| const fullNode = new HttpProvider("https://api.trongrid.io"); | |
| // const fullNode = new HttpProvider("http://192.168.1.162:8090"); | |
| const solidityNode = new HttpProvider("https://api.trongrid.io"); | |
| const eventServer = new HttpProvider("https://api.trongrid.io"); | |
| const privateKey = "3481E79956D4BD95F358AC96D151C976392FC4E3FC132F78A847906DE588C145"; | |
| const tronWeb = new TronWeb(fullNode, solidityNode, eventServer, privateKey); | |
This file contains hidden or 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
| /* | |
| * RPC: https://rpc.tomochain.com mainnet, https://rpc.testnet.tomochain.com testnet | |
| * chainId: 88 mainnet, 89 testnet | |
| */ | |
| const Web3 = require('web3') | |
| const rpc = 'https://rpc.testnet.tomochain.com' | |
| const chainId = 89 | |
| const pkey = 'YOUR_PKEY' // token holder pkey |
A non-exhaustive list of WebGL frameworks and libraries. It is mostly for learning purposes as some of the libraries listed are outdated/not maintained anymore.
- three.js: JavaScript 3D library
- stack.gl: an open software ecosystem for WebGL, built on top of browserify and npm.
- PixiJS: Super fast HTML 5 2D rendering engine that uses webGL with canvas fallback
- Pex: Pex is a javascript 3d library / engine allowing for seamless development between Plask and WebGL in the browser.
- Babylon.js: a complete JavaScript framework for building 3D games with HTML 5 and WebGL
- Filament: Filament is a real-time physically based rendering engine for Android, iOS, Windows, Linux, macOS and WASM/WebGL
- ClayGL: A WebGL graphic library helping you to
This file contains hidden or 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
| /** | |
| * Copyright 2019 Google LLC. | |
| * SPDX-License-Identifier: Apache-2.0 | |
| */ | |
| function getEnvironment() { | |
| var environment = { | |
| spreadsheetID: "<REPLACE WITH YOUR SPREADSHEET ID>", | |
| firebaseUrl: "<REPLACE WITH YOUR REALTIME DB URL>" | |
| }; |
NewerOlder