This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Get Token | |
* | |
* @return Access Token | |
* @throws Exception | |
*/ | |
function SWAP( $username , $password , $app_key , $redirect_uri ) | |
{ | |
$username = urlencode( $username ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Anti-XP Script | |
* | |
* @author 小傅Fox[<xfox@cotr.me>] | |
*/ | |
$anti_xp__browser = get_browser(); | |
if( $anti_xp__browser[ 'platform' ] == 'WinXP' ){ | |
if( $_SERVER[ 'HTTP_ACCEPT_LANGUAGE' ] == 'zh-CN' ){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sUserAgent = navigator.userAgent; | |
if (sUserAgent.indexOf("Windows NT 5.1") > -1 | |
|| sUserAgent.indexOf("Windows Xp") > -1) { | |
alert("你仍然在使用落后的Windows XP操作系统,在你升级操作系统前将不能打开此页面。如果你认为识别有误,请联系管理员。"); | |
window.opener = null; | |
window.open('', '_self'); | |
window.close(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"ua": "Mozilla/5.0 (Windows NT 6.3; rv:30.0) Gecko/20100101 Firefox/30.0", | |
"yawf": "Yet Another Weibo Filter", | |
"ver": "0.1.19 alpha", | |
"gm": "2.1", | |
"conf": { | |
"weibo.filters.keyword.whitelist": [], | |
"weibo.filters.keyword.blacklist": [], | |
"weibo.filters.keyword.foldlist": [], | |
"weibo.filters.regexp.whitelist": [], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Anti-XP Script | |
* | |
* @author 小傅Fox[<xfox@cotr.me>] | |
*/ | |
/** | |
* 获得客户端的操作系统 | |
* Source:{@link http://lok.me/a/1027.html} | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Image | |
color = 'MNHQ$OC?7>!:-;.' | |
def to_html(func): | |
html_head = ''' | |
<html> | |
<head> | |
<style type="text/css"> | |
body {font-family:Monospace; font-size:5px;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
exports.__esModule = true; | |
var request = require("request-promise"); | |
var isbns = process.argv[2].split(","); | |
for (var _i = 0, isbns_1 = isbns; _i < isbns_1.length; _i++) { | |
var isbn = isbns_1[_i]; | |
request("https://api.douban.com/v2/book/isbn/" + isbn, { | |
json: true | |
}) | |
.then(function (result) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as request from "request-promise"; | |
import ServerChan = require("serverchan"); | |
import * as fs from "fs"; | |
const sc = new ServerChan(); | |
const delay = (t: number) => new Promise( | |
(res, rej) => setTimeout(res, t) | |
); | |
(async () => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <vector> | |
#include <fstream> | |
#define DATA_TYPE float | |
using namespace std; | |
class Position | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source /usr/local/share/antigen/antigen.zsh | |
export ZSH=/Users/coderfox/.oh-my-zsh | |
antigen use oh-my-zsh | |
antigen bundle git | |
antigen bundle ssh-agent | |
antigen bundle docker | |
antigen bundle docker-compose |
OlderNewer