Skip to content

Instantly share code, notes, and snippets.

View kangchihlun's full-sized avatar
🦽
日拱一卒,功不唐捐

kang chih lun kangchihlun

🦽
日拱一卒,功不唐捐
View GitHub Profile
@andelf
andelf / trc20-offline-sign.js
Last active March 16, 2024 04:03
Send TRX20 token, sign offline
const TronWeb = require('tronweb');
const HttpProvider = TronWeb.providers.HttpProvider;
const fullNode = new HttpProvider("https://api.trongrid.io");
// const fullNode = new HttpProvider("http://192.168.1.162:8090");
const solidityNode = new HttpProvider("https://api.trongrid.io");
const eventServer = new HttpProvider("https://api.trongrid.io");
const privateKey = "3481E79956D4BD95F358AC96D151C976392FC4E3FC132F78A847906DE588C145";
const tronWeb = new TronWeb(fullNode, solidityNode, eventServer, privateKey);
# N-CryptoAsset Portfolios: Identifying Highly Correlated
# Cryptocurrencies using PCA
#
# (c) 2017 QuantAtRisk.com, by Pawel Lachowicz
import numpy as np
import pandas as pd
from scipy import stats
from matplotlib import pyplot as plt
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@smallrice45
smallrice45 / CharacterCustomizableCreateManager
Last active April 17, 2016 10:10
擴展 UGUI研究院之控件以及按钮的监听事件系统(五) 內文的Code
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using UnityEngine.UI;
using UnityEngine.EventSystems;
using UnityEngine.Events;
public class CharacterCustomizableCreateManager : MonoBehaviour {
public List<Toggle> sexToggleGroup;
public Slider hairSlider;
#import "wininet.dll"
int InternetAttemptConnect(
int dwReserved=0
);
int InternetOpenA(uchar &lpszAgent[],int dwAccessType,uchar &lpszProxyName[],uchar &lpszProxyBypass[],int dwFlags);
int InternetConnectA(int hInternetSession,uchar &lpszServerName[],int nServerPort,uchar &lpszUserName[],uchar &lpszPassword[],int nService,int nFlags,int dwContext);
bool InternetCloseHandle(