This file contains hidden or 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
function createXHR(){ | |
return window.XMLHttpRequest? | |
new XMLHttpRequest(): | |
new ActiveXObject("Microsoft.XMLHTTP"); | |
} | |
function getappkey(url){ | |
xmlHttp = createXHR(); | |
xmlHttp.open("GET",url,false); | |
xmlHttp.send(); | |
result = xmlHttp.responseText; |
This file contains hidden or 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
function rot13(s){ | |
return s.replace(/[a-zA-Z]/g,function(c){return String.fromCharCode((c<="Z"?90:122)>=(c=c.charCodeAt(0)+13)?c:c-26);}) | |
} | |
//document.write(rot13("Hello world")); |
This file contains hidden or 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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | |
<HTML> | |
<HEAD> | |
<TITLE>緊急逃離程式</TITLE> | |
<META NAME="Generator" CONTENT="EditPlus"> | |
<META NAME="Author" CONTENT=""> | |
<META NAME="Keywords" CONTENT=""> | |
<META NAME="Description" CONTENT=""> | |
<style type="text/css"> | |
body{margin:16px;font: 16px; background-color:#000; color:#fff} |
This file contains hidden or 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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<title>clock3D</title> | |
<style type="text/css" _mce_bogus="1"> | |
<!-- | |
html { | |
overflow: hidden; | |
} |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace WubiCodeIndex | |
{ | |
class Program | |
{ | |
//题目: |
This file contains hidden or 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
-- 测试表 | |
CREATE TABLE dbo.tb( | |
id int PRIMARY KEY | |
) | |
INSERT dbo.tb(id) | |
SELECT 1 UNION ALL | |
SELECT 2 UNION ALL | |
SELECT 3 | |
GO |
This file contains hidden or 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 os,binascii | |
from hashlib import sha256 | |
from hmac import HMAC | |
def encrypt_password(password, salt=None): | |
"""Hash password on the fly. | |
先通过标准随机库生成 64 bits 的随机 salt, | |
使用了标准的 SHA-256 做为基本的 hash 算法, | |
使用标准 HMAC 算法作为 salt 混淆。 |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Diagnostics; | |
using System.Threading; | |
using System.Runtime.InteropServices; | |
namespace SimpleConsole | |
{ |
This file contains hidden or 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
<html><head> | |
<title>Flip</title> | |
<style type="text/css"> | |
textarea { font-family: "Arial Unicode MS", Batang } | |
h1 { margin-bottom: 2px;} | |
</style> | |
<script> | |
function flip() { | |
var result = flipString(document.f.original.value.toLowerCase()); | |
document.f.flipped.value = result; |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>お顔☆メーカー - あなただけの顔文字作ります</title> | |
</head> | |
<body style="text-align: center"> | |
<form action="http://twitter.com/home"> | |
<p id="target" style="height: 1.5em; font-size: 3em; font-family: 'Lucida Grande', sans-serif; color: pink">(*╹ლ╹) JavaScript を挿入してね♡ | |
<p><input type="button" value="再生成" onclick="generate()"> |
OlderNewer