Skip to content

Instantly share code, notes, and snippets.

View janewang's full-sized avatar

Jane Wang janewang

  • Washington, DC
View GitHub Profile
@janewang
janewang / gist:ff069629b8767fb2f7a2b7c89934ef06
Last active January 9, 2026 18:49
Commands Used for Dev Docs

Get the code and run on localhost

git clone git@github.com:stellar/stellar-docs.git 
cd stellar-docs
yarn install 
npx docusaurus start

This puts you on a new local branch

Make sure you start on the main branch, and git pull latest. Now:

# Download foundry installer `foundryup`
> curl -L https://foundry.paradigm.xyz | bash
# Install forge, cast, anvil, chisel
> foundryup
> forge init counter
> cd counter
Create an issuer
➜ ~ stellar env
STELLAR_NETWORK=mainnet # use
➜ ~ stellar network use testnet
ℹ️ The default network is set to `testnet`
➜ ~ stellar keys generate issuer
✅ Key saved with alias issuer in "/Users/janewang/.config/soroban/identity/issuer.toml"
➜ ~ export STCNET=test
➜ ~ stc -keygen A
Passphrase:
GCNGZKJ3G6CJQWBLCXUDNS5WSTU6DWVDJUUJRU2GBUHAPK4UCEITXYR6
➜ ~ stc -keygen -nopass B
GDHARS2CIN45LY4RLGQQIDSYNCNRF37O3OLYUQR7RFMPCKYJOZVP67I7
➜ ~ stc -create GCNGZKJ3G6CJQWBLCXUDNS5WSTU6DWVDJUUJRU2GBUHAPK4UCEITXYR6 // friendbot gives 10,000 lumen
# Prompt: using R, create an array containing objects each iterated over a set of columns in a spreadsheet
# To create an array in R where each element is an object representing a set of columns from a spreadsheet, you can use the following steps:
# Load the required libraries, such as readxl, which allows you to read Excel files.
# Read the spreadsheet data into a data frame using the read_excel function from the readxl library.
# Iterate over the columns and create objects containing the desired columns.
# Here's an example code that demonstrates this process:
# Load the required library

Keybase proof

I hereby claim:

  • I am janewang on github.
  • I am jlwang (https://keybase.io/jlwang) on keybase.
  • I have a public key ASC8mWdvIYjxA4EDODaJIu0FJjpuq0wzAfnh1eJ-AEieHQo

To claim this, I am signing this object:

const nearAPI = require('near-api-js')
const { keyStores, KeyPair, connect } = nearAPI;
const keyStore = new keyStores.InMemoryKeyStore();
// const PRIVATE_KEY =
// "by8kdJoJHu7uUkKfoaLd2J2Dp1q1TigeWMG123pHdu9UREqPcshCM223kWadm";
// // creates a public / private key pair using the provided private key
// const keyPair = KeyPair.fromString(PRIVATE_KEY);
// // adds the keyPair you created to keyStore
// await keyStore.setKey("testnet", "example-account.testnet", keyPair);
function($http, $cordovaPush, $ionicApp, $ionicUser, $rootScope, $log, $q) {
// Grab the current app
var app = $ionicApp.getApp();
//Check for required credentials
if(!app || !app.app_id) {
console.error('PUSH: Unable to initialize, you must call $ionicAppProvider.identify() first');
}
.controller('WelcomeCtrl', function ($scope, $state, $ionicPush, $cordovaPush, $ionicUser, $rootScope, $ionicHistory, $stateParams) {
$rootScope.$on('$cordovaPush:tokenReceived', function (event, data) {
console.log('Got token', data.token, data.platform);
});
//Basic registration
$scope.pushRegister = function () {
console.log('Registering...');
console.log('This has device Token! :', deviceToken);
RECOMMENDATION GRADE TYPE PRIORITY
Defer parsing of JavaScript
61%
JS High
What does this mean?
414.4KiB of JavaScript is parsed during initial page load. Defer parsing JavaScript to reduce blocking of page rendering.
http://www.swellbottle.com/wp-content/plugins/revslider/rs-plugin/js/jquery.themepunch.tools.min.js?ver=4.6.5 (86.8KiB)
http://www.swellbottle.com/wp-includes/js/jquery/jquery.js?ver=1.11.1 (85.7KiB)
http://www.swellbottle.com/wp-content/plugins/revslider/rs-plugin/js/jquery.themepunch.revolution.min.js?ver=4.6.5 (80.4KiB)