Skip to content

Instantly share code, notes, and snippets.

Sittiphol Phanvilai nuuneoi

Block or report user

Report or block nuuneoi

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 gist:c2d7a6effa0ae7bd2172181edd156610
// The module for the account resource that governs every Libra account
module LibraAccount {
import 0x0.LibraCoin;
import 0x00.Hash;
// Every Libra account has a LibraLibraAccount.T resource
resource T {
// The coins stored in this account
balance: R#LibraCoin.T,
// The current authentication key.
View gist:bfebdd056fd05ae9e713a069aa18d3ae
contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
function Ownable() public {
owner = msg.sender;
modifier onlyOwner() {
View index.html
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>DApp Tutorial</title>
body {
class BitmapUtils {
public static int getRotationFromFileUri(Context context, Uri contentUri) {
String filepath = contentUri.getPath();
ExifInterface exifData = null;
try {
exifData = new ExifInterface(filepath);
int orientation = exifData.getAttributeInt(ExifInterface.TAG_ORIENTATION, 1);
return exifToDegrees(orientation);
} catch (IOException e) {
View list_item_news.xml
<?xml version="1.0" encoding="utf-8"?>
< xmlns:android=""
You can’t perform that action at this time.