alias soltv="solana-test-validator"
alias solcs="solana config set --url"
alias solcg="solana config get"
alias solb="solana balance"
alias sola="solana address"
alias solair="solana airdrop"
This file contains 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
REMIX EXAMPLE PROJECT | |
Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer. | |
It contains 3 directories: | |
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name. | |
2. 'scripts': Holds two scripts to deploy a contract. It is explained below. | |
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity. | |
SCRIPTS |
This file contains 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
REMIX EXAMPLE PROJECT | |
Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer. | |
It contains 3 directories: | |
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name. | |
2. 'scripts': Holds two scripts to deploy a contract. It is explained below. | |
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity. | |
SCRIPTS |
This file contains 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 json | |
import csv | |
import sys | |
def process(): | |
arguments = sys.argv | |
if len(arguments) != 2: | |
print('please pass your json file as argument i.e. python json_to_csv.py [FILENAME].json') | |
return | |
json_file = arguments[1] |
This file contains 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
// Repository | |
class BasePublicChatRepository { | |
@Published var publicChats = [PublicChat]() | |
} | |
// In repository, I load data from firebase. Like, | |
self.db.collection(self.publicChatsPath) | |
.whereField(...) | |
.getDocuments(completion: { (querySnapshot, error) in | |
if let querySnapshot = querySnapshot { |
This file contains 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
// | |
// OnboardingViewController.swift | |
// PWMe | |
// | |
// Created by Stephen lee on 8/22/19. | |
// Copyright © 2019 Stephen lee. All rights reserved. | |
// | |
import UIKit |
This file contains 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
// | |
// Item.swift | |
// todosy | |
// | |
// Created by Stephen lee on 3/6/18. | |
// Copyright © 2018 Stephen Lee. All rights reserved. | |
// | |
import Foundation | |
class Item: Codable { |
This file contains 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
version: 2 | |
jobs: | |
build: | |
working_directory: ~/firebase-functions-hello-world | |
docker: | |
# specify the version you desire here | |
- image: circleci/node:7.10 | |
steps: | |
- checkout | |
- restore_cache: |
This file contains 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
go run - compiles and excutes one or two files | |
go build - compiles a bunch of go source code files | |
go fmt - formats all the code in each file in the current directory | |
go install - compiles and installs a package | |
go get - downloads the raw source code of someone else's package | |
go test - runs any tests associated with the current project |
NewerOlder