Skip to content

Instantly share code, notes, and snippets.

View RenderCoder's full-sized avatar
🌴
On vacation

RenderCoder RenderCoder

🌴
On vacation
View GitHub Profile
// width
0x3a,
// height
0x3a,
// data
0xff,0xff,0x03,0x03,0xf3,0xf3,0xf3,0xf3,
0xf3,0xf3,0x03,0x03,0xff,0xff,0x00,0x00,
0xc3,0xc3,0xf0,0xf0,0x33,0x33,0x0f,0x0f,
0xc0,0xc0,0xf3,0xf3,0xc0,0xc0,0xcc,0xcc,
0x0f,0x0f,0x00,0x00,0xf3,0xf3,0x30,0x30,
// width
0x1e,
// height
0x31,
// data
0xf0,0xf8,0xfc,0x1e,0x0f,0x07,0x07,0x07,
0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,
0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,
0x07,0x0f,0x1e,0xfc,0xf8,0xf0,0xff,0xff,
0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
// width
0x1e,
// height
0x31,
// data
0xf0,0xf8,0x1c,0x0e,0xc7,0xe3,0xf3,0xf3,
0xf3,0xf3,0xf3,0xf3,0xf3,0xf3,0xf3,0xf3,
0xf3,0xf3,0xf3,0xf3,0xf3,0xf3,0xf3,0xf3,
0xe3,0xc7,0x0e,0x1c,0xf8,0xf0,0xff,0xff,
0x00,0x00,0xff,0xff,0xff,0xff,0xff,0xff,
{
"ability": 0,
"activeTime": 1743216398,
"attribute": 549756862848,
"attributeString": "1000000000000000000100000000000110000000",
"baseAttribute": 1024,
"bizAttribute": 0,
"bv": "40.00",
"cadv": "1.0.5",
"capability": 1025,
NobwRALghg5mBcYACSAEBLAdui6oBtUBnaCAUzABox8yA3M/BARmoFsi5EQAdTVVDzBEA7jgDGACyHxUAMwJEylPgKEKArvggzUABhX9BYAEZQI5AE4BPAPoAHMpfFlM0GGV0BOAKyG1YCIA9pYA1rYk5p4IxmxQmBoEQv7GRHGWELYiZOaSTrpCRBqYmNbJqsYiUZYOlkEwllBszAVgesx6Pu16egDM4j1yPT1dPVDDPQBMEz0A7F560z0dvQAsABw9Jqszu8sTAGwdPb3dHZOzE6N7E8c9B+N65UZCVVa19Y1sk616Ox3nAAmw36Nxmdz0swGIzOfXWOz60LB+2GUOGB2G52Y0Nmm2R+OeATYchgtjYQUBjFabyctjoBAYhMq1Q+DSavV+l32k0mGMR+IJVAqrxZ9jqbLYq1+TyFLzA6EslnQtlwbGisiEB1mcnWJnmQ3BC2RvQORs6AqZQkaWFslPwUDKMQMwvliuVcnwQREumdcriCQItgVSpV6DVuj8Lv9iXwWVF4q+vwBexNUF6C2udwhlrAdCC6BctnEQTcdVjYs+TSTAprtxzAEcNAXwtbMLbGA7dAp8EoUoUNPZ7CFMnIchANJYyEQfX3cwyyBFSBppzFu72XVJ0PhAbZPeJQl3FMoXcV0AAPUPhmKsF2e0lKSwMGoT/CtHN3iJOJ8OYczl2UugVSCUJXDfWUAkkaxAUaLQC1qKciknVpxCgFwtTIdYvC8dZxHWIYTBcExJh1MhVl8LwDjII5AU2HwTD0EwhlWA5VigKAvGYdYc3INh7DJCkFw9WBDx7Y85QrCVbASNg/zlYNlSwSI3FsD0vVkgIiCCORMifVpmAAOj0fSpXA4wAMXKJdAgSwNE8TAAF8qHlQEEDaJzVQoeBmFmVZfJY5gvFWbzVnsyhwFoBgmC89hOFcgBxIIIFQACCzIDBMDkIJZF4IwAigEwtxwR1ZF9AQ8vEXAGAAFTDdVUGC3pJmYA503WFI8osJUTA0cgIzI2YfAOdYDkmeE2
@RenderCoder
RenderCoder / MIoT_definitionResolver.js
Last active April 28, 2019 02:40
米家 IoT 平台产品功能定义解析转换
/**
* 解析米家 IoT 平台产品功能定义为更友好的使用格式
*/
const fs = require('fs')
const config = require('./config')
String.prototype.firstUpperCase=function(){
return this.replace(/^\S/,function(s){return s.toUpperCase();});
}
@RenderCoder
RenderCoder / LambdaLogGetterForAliyun.js
Created April 18, 2019 02:23
获取阿里云函数计算日志代码(猴油脚本)
// ==UserScript==
// @name 阿里云函数计算日志提取
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://sls.console.aliyun.com/*
// @grant none
// ==/UserScript==
@RenderCoder
RenderCoder / Docker Composer Nginx Proxy Composer.yaml
Last active October 3, 2018 09:34
Docker Composer Nginx Proxy 证书配置
nginx-proxy:
image: jwilder/nginx-proxy
ports:
- 80:80
- 443:443
volumes:
- /home/certs:/etc/nginx/certs:ro
- /etc/nginx/vhost.d
- /usr/share/nginx/html
- /var/run/docker.sock:/tmp/docker.sock:ro
@RenderCoder
RenderCoder / RNPanel.md
Last active May 16, 2018 06:37
RNPanel 接口

代码配置

import { NativeModules, NativeEventEmitter } from 'react-native';
const bridge = NativeModules.RNDataBridge;
const bridgeEmitter = bridge ? new NativeEventEmitter(bridge) : false;
global.bridge = bridge;

接口调用

@RenderCoder
RenderCoder / why-curry-helps.md
Created August 5, 2017 04:15 — forked from jcouyang/why-curry-helps.md
为什么要柯里化(why-curry-helps)slide http://git.io/why-curry-helps 📈

还记得 Haskell Curry吗,

多巧啊, 人家姓 Curry 名 Haskell, 难怪 Haskell 语言会自动柯里化, 呵呵. 但是不奇怪吗, 为什么要柯里化呢. 为什么如此重要导致 Haskell 会默认自动柯里化所有函数, 不就是返回一个部分配置好的函数吗.

我们来看一个 Haskell 的代码.

max 3 4
(max 3) 4