Skip to content

Instantly share code, notes, and snippets.

@phy25
phy25 / move-boxes-scanner-retool-mobile.json
Created December 29, 2022 07:10
Move Boxes Scanner Retool Mobile App
{"uuid":"6f71b304-8732-11ed-9065-4b26539f38d1","page":{"id":116329136,"data":{"appState":"[\"~#iR\",[\"^ \",\"n\",\"appTemplate\",\"v\",[\"^ \",\"isFetching\",false,\"plugins\",[\"~#iOM\",[\"tabscreen\",[\"^0\",[\"^ \",\"n\",\"pluginTemplate\",\"v\",[\"^ \",\"id\",\"tabscreen\",\"type\",\"screen\",\"subtype\",\"TabScreen\",\"namespace\",null,\"resourceName\",null,\"resourceDisplayName\",null,\"template\",[\"^3\",[\"items\",[\"~#iL\",[[\"^3\",[\"screen\",\"scannerScreen\",\"icon\",\"bold/interface-text-formatting-list-bullets\"]]]]]],\"style\",null,\"position2\",null,\"mobilePosition2\",null,\"mobileAppPosition\",null,\"tabIndex\",null,\"container\",\"\",\"createdAt\",\"~m1672288620614\",\"updatedAt\",\"~m1672296986532\",\"folder\",\"\",\"screen\",null]]],\"scannerScreen\",[\"^0\",[\"^ \",\"n\",\"pluginTemplate\",\"v\",[\"^ \",\"id\",\"scannerScreen\",\"^4\",\"screen\",\"^5\",\"Screen\",\"^6\",null,\"^7\",null,\"^8\",null,\"^9\",[\"^3\",[\"title\",\"Box Scanner\",\"headerLeftActions\",[\"^:\",[]],\"headerRight
@phy25
phy25 / move-boxes-scanner-retool-app.json
Created December 28, 2022 08:24
Move Boxes Scanner Retool App
{"uuid":"83c14df8-865e-11ed-b56a-af645b871255","page":{"id":116123597,"data":{"appState":"[\"~#iR\",[\"^ \",\"n\",\"appTemplate\",\"v\",[\"^ \",\"isFetching\",false,\"plugins\",[\"~#iOM\",[\"scanner\",[\"^0\",[\"^ \",\"n\",\"pluginTemplate\",\"v\",[\"^ \",\"id\",\"scanner\",\"type\",\"widget\",\"subtype\",\"ScannerWidget\",\"namespace\",null,\"resourceName\",null,\"resourceDisplayName\",null,\"template\",[\"^3\",[\"onScan\",\"\",\"data\",[],\"autoClose\",true,\"ignoreDuplicates\",true,\"ephemeralConfirm\",true,\"launchButtonLabel\",\"Scan\",\"events\",[\"~#iL\",[[\"^3\",[\"event\",\"scan\",\"type\",\"widget\",\"method\",\"setValue\",\"pluginId\",\"barcode\",\"targetId\",null,\"params\",[\"^3\",[\"value\",\"{{ scanner.data[0] }}\"]],\"waitType\",\"debounce\",\"waitMs\",\"0\"]],[\"^3\",[\"event\",\"scan\",\"type\",\"datasource\",\"method\",\"trigger\",\"pluginId\",\"query\",\"targetId\",null,\"params\",[\"^3\",[]],\"waitType\",\"debounce\",\"waitMs\",\"0\"]]]]]],\"style\",[\"^3\",[]],\"position2\",[\"^0\",[\"^
@phy25
phy25 / covidactnow-pub.ipynb
Created July 19, 2021 00:38
covidactnow-pub.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@phy25
phy25 / WeChat_Pay_Bill_Export.py
Created July 30, 2018 06:57 — forked from alanzchen/WeChat_Pay_Bill_Export.py
WeChat Pay Bill Export
# Install the Python Requests library:
# `pip install requests`
import requests
import datetime
import pickle
set_date = datetime.datetime
# Simply call get_record and it will return a json object containing your bill.
@phy25
phy25 / admin.php
Last active September 4, 2017 06:47
dokuwiki-plugin-fixcontrib
<?php
/**
* Plugin fixcontrib
*
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Phy <dokuwiki.fixcontrib@phy25.com>
*/
// must be run within Dokuwiki
if(!defined('DOKU_INC')) die();

Keybase proof

I hereby claim:

  • I am phy25 on github.
  • I am phy25 (https://keybase.io/phy25) on keybase.
  • I have a public key whose fingerprint is ED79 873D CDA7 C4B6 A043 F051 E1CB 581B 7DB9 21EA

To claim this, I am signing this object:

@phy25
phy25 / showSysFiles.bat
Created August 8, 2014 08:04
将本文件夹下所有文件的系统属性删除
@echo off
echo code via http://www.panlilu.com/archives/284
for /f "delims=" %%i in ('dir /ah /s/b') do attrib "%%i" -s
pause
F11::
Send, !v
Send, {Up 4}{Enter}
Send, !v
Send, {Up 3}{Enter}
Send, 0{.}5{Enter}
Send, !v
Send, {Up 3}{Enter}
@phy25
phy25 / 访问 Google.bat
Created July 13, 2014 02:26
一键加入单条 hosts 的 bat 文件
@echo off
set isexist=
set dir=%windir%\system32\drivers\etc\hosts
set domain=www.google.com.hk
set ip=203.208.45.206
ver|findstr "6\.[0-9]\.[0-9][0-9]*">nul&&(set isXPlevel=2&echo 请确认已经用管理员权限打开。按任意键开始增加 %domain% 解析到 %ip%。&pause>nul)
for /f %%i in ('findstr /i "%domain%" %dir%') do set isexist=1
if not defined isexist (@echo.>>%dir%&@echo %ip% %domain%>>%dir%&echo 已增加 %domain% 解析到 %ip%&echo Hosts 增加完成。按任意键退出。&pause>nul) else (echo %domain% 的解析已经存在,请手工修改地址。按任意键修改。&pause>nul &start notepad.exe %dir%)
@phy25
phy25 / 5184.js
Created July 10, 2014 04:17
广东高考 Google Chrome 查分小帮手
function input(){var a = document.getElementById('zkzh'), b = document.getElementById('csny'), c = document.getElementById('yzm');if(a) a.value = '[准考证号]';if(b) b.value = '[四位出生年月]';if(c) c.focus();}
function inject(c){
var elt = document.createElement("script");
elt.innerHTML = c;
document.head.appendChild(elt);
}
window.addEventListener("message", function(event) {
// We only accept messages from ourselves
if (event.source != window)
return;