Skip to content

Instantly share code, notes, and snippets.

🚀
Flying high, in the sky...

Kwun Yeung kwunyeung

🚀
Flying high, in the sky...
Block or report user

Report or block kwunyeung

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Coordinates.php
<?php
/**
* Coordinates.php
* An utility for converting HK80 to WGS84 coordinates
*
* Copyright (C) 2010, 2013 Kelvin Wong
* Licensed under the MIT License (http://opensource.org/licenses/MIT)
*
* Note: For the glossaries and conventions for coordinates convertion, please refer to
* the website of Geodetic Survey of Hong Kong.
View SearchBar.jsx
toggleSearchInput = e => {
e.preventDefault();
this.setState({isShown = !this.state.isShown});
}
render(){
return
<div>
(this.state.isShown?
<SearchInput />:''}
View keybase.md

Keybase proof

I hereby claim:

  • I am kwunyeung on github.
  • I am kwunyeung (https://keybase.io/kwunyeung) on keybase.
  • I have a public key ASBKle1_ImJusPpwHeOAlNI6BMlKmtb2b-UB_JAZJedtego

To claim this, I am signing this object:

@kwunyeung
kwunyeung / addrbook.json
Created Dec 12, 2018
address book of genki-2000
View addrbook.json
{
"key": "396c2b6ffff9f409da13997b",
"addrs": [
{
"addr": {
"id": "4173a31e168b139989d87d2a3e6462ba138c6e74",
"ip": "85.214.84.224",
"port": 26656
},
"src": {
@kwunyeung
kwunyeung / iris_install.sh
Last active Apr 27, 2019
Install IRIShub
View iris_install.sh
#!/bin/bash
# Upgrade the system and install go
sudo apt update
sudo apt upgrade -y
sudo apt install gcc git make -y
sudo snap install --classic go
sudo mkdir -p /opt/go/bin
# Export environment variables
View iris_upgrade.sh
#!/bin/bash
# Upgrade IRIS and restart gaiad
POSITIONAL=()
while [[ $# -gt 0 ]]
do
key="$1"
case $key in
-t|--tag)
@kwunyeung
kwunyeung / gaia_upgrade.sh
Last active May 31, 2019
script to upgrade the Cosmos gaia testnet
View gaia_upgrade.sh
#!/bin/bash
# Upgrade Cosmos SDK and restart gaiad
POSITIONAL=()
while [[ $# -gt 0 ]]
do
key="$1"
case $key in
-t|--tag)
@kwunyeung
kwunyeung / gaiad.service
Last active Jun 6, 2019
systemd unit file of Cosmos gaia testnet
View gaiad.service
[Unit]
Description=Cosmos Gaia Node
After=network-online.target
[Service]
User=gaiad
ExecStart=/opt/go/bin/gaiad start --home=/opt/gaiad/
Restart=always
RestartSec=3
LimitNOFILE=4096
View kava_install.sh
#!/bin/bash
# Upgrade the system and install go
sudo apt update
sudo apt upgrade -y
sudo apt install gcc git make -y
sudo snap install --classic go
sudo mkdir -p /opt/go/bin
# Export environment variables
@kwunyeung
kwunyeung / gaia_install.sh
Last active Jul 12, 2019
bash script for installing go and gaia cosmoshub-1 on Ubuntu
View gaia_install.sh
#!/bin/bash
# Upgrade the system and install go
sudo apt update
sudo apt upgrade -y
sudo apt install gcc git make -y
sudo snap install --classic go
sudo mkdir -p /opt/go/bin
# Export environment variables
You can’t perform that action at this time.