Skip to content

Instantly share code, notes, and snippets.


rise rise-worlds

Block or report user

Report or block rise-worlds

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
rise-worlds / hosts
Last active Oct 18, 2019
unfw hosts
View hosts localhost
::1 localhost
# GitHub
rise-worlds / utxo.ts
Last active Oct 17, 2019
calc utxo for bcoin
View utxo.ts
// get /tx/address/${addrs}?reverse=1
const TX_TYPE_IN = 1;
const TX_TYPE_OUT = 2;
export const CreateUtxos = async (address: string, data: any) => {
let mapData = new Map();
let temp = new Map();
for (const iter of data) {
mapData.set(iter.hash, iter);
git filter-branch --env-filter '
rise-worlds / For Mac 4.2.6 unlimited
Last active Oct 18, 2019 — forked from satish-setty/
Beyond Compare 4 license for Windows, Mac, Linux
View For Mac 4.2.6 unlimited

for 4.2.4 or higher,4.2.5,4.2.6 ,it's works , this is the way which makes Always in evaluation mode 。

  1. go to the dir : /Applications/Beyond
  2. change the name BCompare to BCompare.bak
  3. touch a file name BCompare , and chmod a+u BCompare
  4. insert BCompare the content :
rm "/Users/$(whoami)/Library/Application Support/Beyond Compare/registry.dat"
"`dirname "$0"`"/BCompare.bak $@
rise-worlds / BasicToken.sol
Created Sep 5, 2018
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at
View BasicToken.sol
pragma solidity ^0.4.24;
import "./ERC20Basic.sol";
import "./SafeMath.sol";
* @title Basic token
* @dev Basic version of StandardToken, with no allowances.
rise-worlds / SQL_CLR_Functions-NETCLR20.sql
Created Mar 24, 2017 — forked from martijnburgers/SQL_CLR_Functions-NETCLR20.sql
SQL CLR Functions for converting bytes to UTF-7, UTF-8, UTF32 and Unicode. Build for SQL Server 2005, 2008, and 2008 R2.
View SQL_CLR_Functions-NETCLR20.sql
PRINT N'Creating [SQL_CLR_Functions]...for SQL Server 2005, 2008, and 2008 R2';
FROM 0x4D5A90000300000004000000FFFF0000B800000000000000400000000000000000000000000000000000000000000000000000000000000000000000800000000E1FBA0E00B409CD21B8014CCD21546869732070726F6772616D2063616E6E6F742062652072756E20696E20444F53206D6F64652E0D0D0A2400000000000000504500004C010300DE1E2C550000000000000000E00002210B010B000008000000060000000000002E270000002000000040000000000010002000000002000004000000000000000400000000000000008000000002000000000000030040850000100000100000000010000010000000000000100000000000000000000000D42600005700000000400000C802000000000000000000000000000000000000006000000C0000009C2500001C0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000080000000000000000000000082000004800000000000000000000002E7465787400000034070000002000000008000000020000000000000000000000000000200000602E72737263000000C80200000040000000
rise-worlds / GetAvatar.cs
Last active Dec 5, 2016
View GetAvatar.cs
public static class SignatureExtensions
static Dictionary<string, string> avatars = new Dictionary<string, string>();
public static string GetAvatar(this String email, int size = 75)
string key = email + "_" + size;
if (!avatars.ContainsKey(key))
string avatar = "//";
rise-worlds / half.cpp
Last active Oct 13, 2016
View half.cpp
//全角字符的定义为 unicode编码从0xFF01~0xFF5E 对应的半角字符为 半角字符unicode编码从0x21~0x7E,空格比较特殊, 全角为0x3000, 半角为0x20;除空格外, 全角/半角按unicode编码排序在顺序上是对应的
//首先,全角字符在utf-8下是三个字节表示,,具体表示为 1110xxxx 10xxxxxx 10xxxxxx
//所以,首先需要解析utf8编码的数据,如果是 FF01 到 FF5E 的情况下,则进行转换
void PreProcessor::half(std::string &input) {
std::string temp;
for (size_t i = 0; i < input.size(); i++) {
if (((input[i] & 0xF0) ^ 0xE0) == 0) {
You can’t perform that action at this time.