Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Block Photos 2.0 will be out soon and is going to be great!

Johan Axelsson nerdic-coder

💭
Block Photos 2.0 will be out soon and is going to be great!
View GitHub Profile
View gist:4b8a739ddceec0eb63888f1016b40325
Verifying my Blockstack ID is secured with the address 1KnZ7uCnqtd3BsbZ3C4S2UM5KnjeJG2XP5 https://explorer.blockstack.org/address/1KnZ7uCnqtd3BsbZ3C4S2UM5KnjeJG2XP5
View blockstack
Verifying my Blockstack ID is secured with the address 1B5R71GJy7JekqmBAjnJFPVJnpNrUVvVYL https://explorer.blockstack.org/address/1B5R71GJy7JekqmBAjnJFPVJnpNrUVvVYL
@nerdic-coder
nerdic-coder / blockstackjs-get.js
Created Jul 3, 2018
Blockstack JS get bucket URL
View blockstackjs-get.js
this.userUrl = await getAppBucketUrl(loadUserData().hubUrl, loadUserData().appPrivateKey);
console.log(this.userUrl);
@nerdic-coder
nerdic-coder / header.html
Created Jun 21, 2018
Photos App header.html
View header.html
<title>React Photos</title>
<script src="https://unpkg.com/@ionic/core@4.0.0-alpha.7/dist/ionic.js"></script>
View ion-react.html
<ion-app>
<ion-header>
<ion-toolbar>
<ion-title>React Photos</ion-title>
</ion-toolbar>
</ion-header>
<ion-content>
<h1>Welcome to React Photos!</h1>
</ion-content>
</ion-app>
View blockstack
Verifying my Blockstack ID is secured with the address 16ouDBkQRBzV447krGJ3RpSpNH9rpjppii https://explorer.blockstack.org/address/16ouDBkQRBzV447krGJ3RpSpNH9rpjppii
@nerdic-coder
nerdic-coder / generate.js
Created Jun 3, 2018
stencil-cli generate.js
View generate.js
// Command for generating a new stencil component within any stencil project, example 'stencil generate my-component'
if (process.argv[2] === 'generate') {
if (!process.argv[3]) {
shell.echo('Please state the component name after the "generate" command.');
shell.exit(1);
}
// The uppercase version of the component alias
var componentName = capitalizeFirstLetter(process.argv[3]);
@nerdic-coder
nerdic-coder / start-component.js
Created Jun 3, 2018
stencil.cli start-component.js
View start-component.js
// Command for starting a new stencil component project, example 'stencil start-component my-component'
if (process.argv[2] === 'start-component') {
if (!shell.which('git')) {
shell.echo('Sorry, this script requires git');
shell.exit(1);
}
var projectName = process.argv[3];
if (!projectName) {
shell.echo('Please state the project name after the "start-component" command.');
@nerdic-coder
nerdic-coder / start-app.js
Created Jun 2, 2018
stencil-cli start-app.js
View start-app.js
// Command for starting a new stencil starter app, example 'stencil start-app my-app'
if (process.argv[2] === 'start-app') {
if (!shell.which('git')) {
shell.echo('Sorry, this script requires git');
shell.exit(1);
}
var projectName = process.argv[3];
if (!projectName) {
shell.echo('Please state the project name after the "start-app" command.');
View cli-dependecies.js
#! /usr/bin/env node
var shell = require("shelljs");
const path = require('path');
// The path to the installation directory if this tool
var cliPath = path.join(path.dirname(__filename), '..');
// Check that a command is given
if (!process.argv[2]) {
shell.echo('Please tell me what you want me todo!');