./scripts/cli/start_cli_testnet.sh
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
new_1-1,53,114,4 script Vitalik#nv1 727,{ | |
mes "[Vitalik]"; | |
mes "Welcome to stupid hackathon#4"; | |
mes "We will hold pvp map on prontera"; | |
next; | |
menu "Prepare for Battle",L_Job,"Heal me pls",L_Heal,"Join the Battle",L_Warp; | |
close; | |
L_Heal: | |
percentheal 100, 100; |
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
// kill player | |
{ | |
"command": "@nuke $player", | |
"issuer": "tester", | |
"account_id": "2000001" | |
} | |
// doom | |
{ | |
"command": "@doom", |
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
const express = require('express'); | |
const bodyParser = require('body-parser'); | |
const mysql = require('mysql'); | |
const config = { | |
host: '157.230.243.208', | |
user: 'rathena', | |
password: 'P@ssw0rd#123', | |
database: 'rathena' | |
}; |
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
pragma solidity ^0.6.2; | |
pragma experimental ABIEncoderV2; | |
import {SafeMath} from "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v3.0.1/contracts/math/SafeMath.sol"; | |
library BalanceManager { | |
using SafeMath for uint256; | |
// Storage | |
struct AccountBalance { |
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
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin" |
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
if [[ "$OSTYPE" == "linux-gnu" ]]; then | |
if which yum &>/dev/null; then | |
PACKAGE_MANAGER="yum" | |
... | |
fi | |
elif [[ "$OSTYPE" == "darwin"* ]]; then | |
if which brew &>/dev/null; then | |
PACKAGE_MANAGER="brew" | |
... | |
fi |
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
// generate new keypair for transfer cash | |
val (_, cashKeys) = Cash.generateSpend(serviceHub, builder, amount, ourIdentityAndCert, creditor) | |
// key to sign for transfer cash, notice that you will need another key for confidentially | |
val myKeysToSign = (cashKeys.toSet() + ourIdentity.owningKey).toList() | |
// send confidential to counterparty | |
subFlow(IdentitySyncFlow.Send(counterPartySession, ptx.tx)) |
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
@CordaService | |
class ProxyNameOracle(val services: ServiceHub): SingletonSerializeAsToken() { | |
private val myKey = services.myInfo.legalIdentities.first().owningKey | |
fun query(identifier: String): ProxyName { | |
val databaseService = services.cordaService(ProxyNameDatabaseService::class.java) | |
return databaseService.queryProxyName(identifier) | |
} | |
fun sign(ftx: FilteredTransaction): TransactionSignature { |
NewerOlder