Skip to content

Instantly share code, notes, and snippets.

View jedsada-gh's full-sized avatar
😄
undefined

Jedsada Tiwongvorakul jedsada-gh

😄
undefined
View GitHub Profile
@jedsada-gh
jedsada-gh / transaction.js
Created February 4, 2019 08:56 — forked from WietseWind/transaction.js
Send XRP transaction to Ripple XRP Ledger
/**
* Use: node transaction.js AMOUNT:FROMADDR:TOADDR:TOTAG
* eg: node transaction.js 10:rXXXXXXX:rXXXXXX:1337
* To be able to sign the transaction, the object 'wallets'
* below should contain the secret key for the used from-wallet.
*/
const RippleAPI = require('ripple-lib').RippleAPI
const api = new RippleAPI({ server: 'wss://s1.ripple.com' }) // Public rippled server
const fetch = require('node-fetch')
const express = require('express');
const morgan = require('morgan');
const path = require('path');
const PORT = process.env.PORT || 3000;
const app = express();
app.use(
morgan(

Basic Setup Instance AWS EC2

note for setup instance aws ec2 using Ubuntu

How to setup

before step1 you must change permission file.pem: chmod 400 file.pem

  • Step1: Access instance AWS by ssh

Workshop React JS @ CMU CMAT

[ Project Name ]

  • Beer Ja

[ Requirements ]

  1. Manage Account
@jedsada-gh
jedsada-gh / vim_cheatsheet.md
Created December 28, 2018 04:27 — forked from awidegreen/vim_cheatsheet.md
Vim shortcuts

Introduction

  • C-a == Ctrl-a
  • M-a == Alt-a

General

:q        close
:w        write/saves
:wa[!]    write/save all windows [force]
:wq       write/save and close
pragma solidity ^0.4.16;
contract StoreHash {
event NewUser(bytes32 name, address account);
event NewIPSHHash(string hashFile, address account);
address private owner;
mapping (address => bytes32) private users;
pragma solidity ^0.4.24;
contract Calculator {
modifier divideByZero(uint y) {
require(y > 0);
_;
}
function plus(uint8 x, uint y) public view returns (uint) {
pragma solidity ^0.4.24;
contract ArratExample {
uint[] public items;
constructor () public {
items.push(1);
items.push(2);
items.push(3);
items.push(4);
pragma solidity ^0.4.24;
contract HelloWorld {
string public helloWorld = 'Hell World!';
}
version: 2
jobs:
build:
working_directory: ~/code
docker:
- image: circleci/android:api-27-alpha
environment:
JVM_OPTS: -Xmx3200m
steps:
- checkout