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
;;; Package -- init.el | |
;;; Commentary: | |
;;; Code: | |
(setq package-selected-packages | |
'(evil | |
evil-leader | |
search-web | |
paredit | |
typescript-mode |
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
EOS Amsterdam | eu-west-nl.eosamsterdam.net:9876 | p2p-peer-address = eu-west-nl.eosamsterdam.net:9876 | |||||
---|---|---|---|---|---|---|---|
EOS Germany | p2p.mainnet.eosgermany.online:9876 | p2p-peer-address = p2p.mainnet.eosgermany.online:9876 | |||||
EOS Metal | 54.38.250.15:19878 | 35.197.164.139:14323 | p2p-peer-address = 54.38.250.15:19878 | ||||
Genereos | p2p.genereos.io:9876 | p2p-peer-address = p2p.genereos.io:9876 | |||||
EOSPay | Seoul, Korea | mainnet.eospay.host:19876 | p2p-peer-address = mainnet.eospay.host:19876 | ||||
EOS Romania | 130.211.59.178:9876 | p2p-peer-address = 130.211.59.178:9876 | |||||
EOS SOCAL | California, USA | 54.153.59.31:9999 | yes | p2p-peer-address = 54.153.59.31:9999 | |||
EOS CSX | 94.130.250.22:9806 | p2p-peer-address = 94.130.250.22:9806 | |||||
Aloha EOS | peer.main.alohaeos.com:9876 | p2p-peer-address = peer.main.alohaeos.com:9876 | |||||
EOS Nation | Toronto, Canada | peer.eosn.io:9876 | yes | p2p-peer-address = peer.eosn.io:9876 |
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
def refine(args, path, filenames): | |
for filename in filenames: | |
if filename.split('.')[-1] in ['c', 'h', 'cpp', 'hpp']: | |
target = "%s/%s" % (path, filename) | |
print('fefine %s' % target) | |
os.system('clang-format -i -style=LLVM %s' % target) | |
os.path.walk('./', refine, ()) |
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
import pika | |
import json | |
import asyncio | |
from pulsar import send | |
from pulsar.async.consts import ACTOR_STATES | |
from pulsar.apps import Application | |
from pulsar import command | |
@command(ack=False) |
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
function compiler(code) | |
{ | |
PiPikachu=[],PikaPikachu=[]; | |
try{ | |
var ip=document.getElementById('ip').value.replace( /\s\s+/g, ' ' ).trim().split(' '); | |
for(i=0;i<ip.length;i++) | |
PiPikachu.push(ip[i]); | |
} | |
catch(e) | |
{document.getElementById('op').value="Invalid input!";} |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import os | |
import time | |
from flask import request_started, request_finished, request, g, jsonify | |
from prometheus_client import Counter, Histogram, generate_latest | |
from werkzeug.contrib.fixers import ProxyFix |
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
import sys | |
import ast | |
origin_import = __import__ | |
AST = {} | |
def custom_import(name, *args, **kwargs): | |
module = origin_import(name, *args, **kwargs) | |
if not hasattr(module, '__file__'): |
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
0x7C0a95125E93086a6b7280760b893D26dC5Fd90f |
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
from hashlib import sha256 | |
import random | |
import base58 | |
import re | |
import sys | |
def gen_private_key(version=128, compress=1): | |
max = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 | |
key = random.randint(1, max) |
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
from pulsar.apps import Application | |
from pulsar import arbiter, ensure_future, get_actor, send | |
class TestApp(Application): | |
def monitor_start(self, monitor, exc=None): | |
print('monitor %s start' % monitor.name) | |
monitor.bind_event('hello_monitor', print) | |
async def worker_start(self, worker, exc=None): |