Skip to content

Instantly share code, notes, and snippets.

View xwartz's full-sized avatar
🎯
Focusing

xwartz xwartz

🎯
Focusing
View GitHub Profile
@cybrown
cybrown / bignumber.js.d.ts
Created January 9, 2016 15:18
Starting web3 TypeScript type definition
declare module "bignumber.js" {
class BigNumber {
constructor(value: number|string); // Acccepts a number OR a string
toNumber(): number;
// Those static attributes could have been in the module, a few lines beneath
static ROUND_DOWN: any;
static config(arg: any): void;
}
@imjared
imjared / lime.sh
Created September 22, 2016 02:02
#!/bin/bash
projectFile=$(find $1 -name "*.sublime-project" -maxdepth 1)
echo $projectFile
if [ $projectFile ]
then
subl $projectFile
else
subl $1
fi
@brennanMKE
brennanMKE / EventEmitter.swift
Last active March 19, 2026 16:20
React Native Event Emitter for RCTEventEmitter in Objective-C and Swift
class EventEmitter
/// Shared Instance.
public static var sharedInstance = EventEmitter()
// ReactNativeEventEmitter is instantiated by React Native with the bridge.
private static var eventEmitter: ReactNativeEventEmitter!
private init() {}
anonymous
anonymous / Debian_OpenVPN_MysteriumNetwork
Created May 19, 2017 05:31
Debian 8 部署 Mysterium Network Node(密链网络节点)
下面方法在 Debian 8 已通过 Mysterium 服务器端部署,Ubuntu 14.04+ 应该也没问题。
OpenVPN 安装参考官方文档,建议安装新版 2.4.2 (多谢 @Shacl0w 提醒)
https://community.openvpn.net/openvpn/wiki/OpenvpnSoftwareRepos#InstallingOpenVPN
安装 Mysterium Node
$ wget https://github.com/MysteriumNetwork/node/releases/download/0.0.6/mysterium-node_linux_amd64.deb
@kaichen
kaichen / luxe-ens-management.md
Last active November 6, 2018 06:25
how to integrate with luxe IANA

luxe ens managment

data structure:

mapping(uint=>mapping(address=>bool)) public registrars; // Maps IANA IDs to authorised accounts
mapping(bytes32=>uint) public nonces; // Maps namehashes to domain nonces

keep track mapping of user id and ethereum address, and domain nonce

@seeliang
seeliang / lint-only-changed-files.MD
Last active December 2, 2024 05:08
How to lint only changed files?

find out the differences

use git diff to generate file list

git diff --name-only master

limited to certain file types

add ext filter