###units-workflow http://designandsuch.com/work/alfred-workflow-units
###alfred-dev-doctor
public function action_authcode() { | |
//随机生成一个4位数的数字验证码 | |
$num=""; | |
for($i=0;$i<4;$i++){ | |
$num .= rand(0,9); | |
} | |
//4位验证码也可以用rand(1000,9999)直接生成 | |
//将生成的验证码写入session,备验证页面使用 | |
SESSION::put("authcode", $num); | |
//创建图片,定义颜色值 |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
###units-workflow http://designandsuch.com/work/alfred-workflow-units
###alfred-dev-doctor
/* | |
* Copyright (C) 2014 The Android Open Source Project | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
/* Various BCD Conversion util. methods */ | |
public class BCD { | |
/* | |
* long number to bcd byte array e.g. 123 --> (0000) 0001 0010 0011 | |
* e.g. 12 ---> 0001 0010 | |
*/ | |
public static byte[] DecToBCDArray(long num) { | |
int digits = 0; |
package mobi.dzs.util; | |
/** | |
* 16进制值与String/Byte之间的转换 | |
* @author JerryLi | |
* @email lijian@dzs.mobi | |
* @data 2011-10-16 | |
* */ | |
public class CHexConver | |
{ |
// While you can edit this file, it's best to put your changes in | |
// "User/Preferences.sublime-settings", which overrides the settings in here. | |
// | |
// Settings may also be placed in file type specific options files, for | |
// example, in Packages/Python/Python.sublime-settings for python files. | |
{ | |
// Sets the colors used within the text area | |
// 主题文件的路径 | |
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", |
#!/bin/bash | |
cd "/home/你的用户名/.wine/drive_c/Program Files/League of Legends US/RADS/system" | |
WINEDEBUG=+ntdll wine "rads_user_kernel.exe" run lol_launcher $(ls ../projects/lol_launcher/releases/) LoLLauncher.exe |
export http_proxy=http://server-ip:port/ | |
export http_proxy=http://127.0.0.1:8087/ //GAE | |
export http_proxy=http://proxy-server.mycorp.com:3128/ |