Skip to content

Instantly share code, notes, and snippets.

View janewang's full-sized avatar

Jane Wang janewang

View GitHub Profile
➜ ~ 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)
>> MySQLTuner 1.4.0 - Major Hayden <major@mhtx.net>
>> Bug reports, feature requests, and downloads at http://mysqltuner.com/
>> Run with '--help' for additional options and output filtering
[--] Performing tests on aa1b6ongzhnykri.ckeugrtmtumo.us-west-2.rds.amazonaws.com:3306
[OK] Logged in using credentials passed on the command line
[--] Assuming 15000 MB of physical memory
[!!] Assuming 0 MB of swap space (use --forceswap to specify)
[OK] Currently running supported MySQL version 5.6.21-log
=====================================
2015-02-10 16:14:20 2ad28e0c6700 INNODB MONITOR OUTPUT
=====================================
Per second averages calculated from the last 37 seconds
-----------------
BACKGROUND THREAD
-----------------
srv_master_thread loops: 121769 srv_active, 0 srv_shutdown, 450748 srv_idle
srv_master_thread log flush and writes: 572511
=====================================
2015-02-10 16:02:32 2ad28e0c6700 INNODB MONITOR OUTPUT
=====================================
Per second averages calculated from the last 7 seconds
-----------------
BACKGROUND THREAD
-----------------
srv_master_thread loops: 121502 srv_active, 0 srv_shutdown, 450621 srv_idle
srv_master_thread log flush and writes: 572117