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 Tatum = require("@tatumio/tatum"); | |
| async function start() { | |
| const btcWallet = await Tatum.generateWallet( Tatum.Currency.BTC, true); | |
| console.log(btcWallet); | |
| } | |
| start(); |
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
| //Widget PULA | |
| const widget = new ListWidget() | |
| const indexData = await fetchFngValue() | |
| await createWidget() | |
| // used for debugging if script runs inside the app | |
| if (!config.runsInWidget) { |
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 * as tf from '@tensorflow/tfjs-node-gpu'; | |
| const csvUrl = | |
| 'https://storage.googleapis.com/tfjs-examples/multivariate-linear-regression/data/boston-housing-train.csv'; | |
| async function run() { | |
| // We want to predict the column "medv", which represents a median value of | |
| // a home (in $1000s), so we mark it as a label. | |
| const csvDataset = tf.data.csv( | |
| csvUrl, { |
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
| survived | fare_class | sex | age | fare | |
|---|---|---|---|---|---|
| died | first | male | 39 | 0 | |
| died | first | male | 29 | 0 | |
| died | first | male | 38 | 0 | |
| died | first | male | 40 | 0 | |
| lived | first | male | 49 | 0 | |
| died | first | male | 30 | 0 | |
| died | first | male | 38 | 0 | |
| died | second | male | 34 | 0 | |
| died | second | male | 28 | 0 |
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 * as React from 'react'; | |
| import { | |
| Text, | |
| View, | |
| StyleSheet, | |
| Animated, | |
| PanResponder, | |
| Easing, | |
| } from 'react-native'; | |
| import { Dimensions } from 'react-native'; |
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
| stop |
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
| { | |
| "USD": { | |
| "symbol": "$", | |
| "name": "US Dollar", | |
| "symbol_native": "$", | |
| "decimal_digits": 2, | |
| "rounding": 0, | |
| "code": "USD", | |
| "name_plural": "US dollars" | |
| }, |
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
| // Not published on npm! use this fork https://github.com/gpbl/react-native-device-info | |
| import DeviceInfo from "@gpbl/react-native-device-info"; | |
| const PARSE_URL = "https://api.parse.com/1/installations"; | |
| const PARSE_APP_ID = "YOUR_APP_ID"; | |
| const PARSE_REST_KEY = "YOUR_REST_KEY"; | |
| function registerParseInstallation(pushToken) { |
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
| // run: pm2 start app.js -i max | |
| var app = require('express')(); | |
| var http = require('http').Server(app); | |
| var io = require('socket.io')(http); | |
| app.get('/', function(req, res){ | |
| res.send(process.env.NODE_APP_INSTANCE); | |
| }); |
NewerOlder