Skip to content

Instantly share code, notes, and snippets.

View trigun0x2's full-sized avatar

Jeffrey Tong trigun0x2

View GitHub Profile
{ group:
{ solo:
{ wins: 1,
top3: 0,
top5: 0,
top6: 0,
top10: 11,
top12: 0,
top25: 29,
'k/d': '0.95',
champs.forEach((champ) => {
fs.copyFile(`league-imgs/${champ.image.split('.')[0]}_0.jpg`, `leagueRenamed/${champ.id}.jpg`, (err) => {
if (err) throw err;
console.log(`${champ.name} was copied`);
});
})
const gm = require('gm')
gm()
.append('a.png', true)
.append('b.png', true)
// .in('-page', '+0+0')
// .in('a.png')
// .in('-page', '+256+0')
// .in('b.png')
// .mosaic()
.write('out.png', (err) => {
{
"frames": [
{
"participantFrames": {
"1": {
"participantId": 1,
"position": {
"x": 1102,
"y": 1180
},
{
"language": "en",
"season": 7,
"currentweek": 10,
"star": "https://fortnite-public-files.theapinetwork.com/fortnite-br-challenges-star.png",
"challenges": {
"week1": [
{
"identifier": "e2c420d-928d4bf-8ce0ff2-ec19b37",
"challenge": "Pick up an item of each rarity",
1. DL: https://adfoc.us/serve/sitelinks/?id=271228&url=https://files.minecraftforge.net/maven/net/minecraftforge/forge/1.12.2-14.23.5.2806/forge-1.12.2-14.23.5.2806-installer-win.exe
Double click, install client.
2. Go to %appdata% in explorer and put this download in the mods folder: https://reforged.gg/

Keybase proof

I hereby claim:

  • I am trigun0x2 on github.
  • I am trigun0x2 (https://keybase.io/trigun0x2) on keybase.
  • I have a public key whose fingerprint is 5797 4A16 3BE7 0D30 E5E9 1251 98F9 5B52 FC57 2DA0

To claim this, I am signing this object:

@trigun0x2
trigun0x2 / sendRawTransaction.js
Created April 5, 2018 07:19 — forked from raineorshine/sendRawTransaction.js
Sends a raw transaction with web3 v1.0 and Infura
const Web3 = require('web3')
const Tx = require('ethereumjs-tx')
// connect to Infura node
const web3 = new Web3(new Web3.providers.HttpProvider('https://mainnet.infura.io/INFURA_KEY'))
// the address that will send the test transaction
const addressFrom = '0x1889EF49cDBaad420EB4D6f04066CA4093088Bbd'
const privKey = 'PRIVATE_KEY'
@trigun0x2
trigun0x2 / EternalStorage.sol
Created April 3, 2018 00:20
Eternal Storage Contract
contract EternalStorage{
mapping(bytes32 => uint) UIntStorage;
function getUIntValue(bytes32 record) constant returns (uint){
return UIntStorage[record];
}
function setUIntValue(bytes32 record, uint value)
{
/**
* Base contract that all upgradeable contracts should use.
*
* Contracts implementing this interface are all called using delegatecall from
* a dispatcher. As a result, the _sizes and _dest variables are shared with the
* dispatcher contract, which allows the called contract to update these at will.
*
* _sizes is a map of function signatures to return value sizes. Due to EVM
* limitations, these need to be populated by the target contract, so the
* dispatcher knows how many bytes of data to return from called functions.