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
# 本版æœ? hosts å‘布地å€ï¼? | |
# https://docs.google.com/View?id=dfkdmxnt_61d9ck9ffq | |
# https://ipv6-hosts.googlecode.com/hg/hosts | |
# Google Code 项目页: | |
# http://code.google.com/p/ipv6-hosts/ | |
##Google.com Google.com | |
2404:6800:8005::64 google.com | |
2404:6800:8005::54 accounts.google.com #accounts.l.google.com | |
2404:6800:8005::5e accounts.google.com.hk #accounts-cctld.l.google.com |
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
cd %windir%\system32\drivers\etc | |
if exist hosts (rename hosts hosts.ipv4) else rename hosts.ipv4 hosts | |
if exist hosts (echo now:hosts) else echo now:hosts.ipv4 | |
ipconfig /flushdns | |
pause |
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 <stdio.h> | |
#include <Windows.h> | |
// 计算10的整次幂 | |
long mypower(unsigned int e) | |
{ | |
long ret[10] = { | |
1, | |
10, | |
100, |
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 <stdio.h> | |
char content[] = { | |
214, 247, 210, 170, 190, 205, 202, 199, 207, 235, | |
202, 212, 202, 212, 184, 248, 212, 219, 195, 199, | |
188, 196, 208, 197, 202, 177, 181, 216, 214, 183, | |
191, 201, 210, 212, 208, 180, 181, 195, 182, 224, | |
188, 242, 194, 212, 161, 173, 161, 173, 0 | |
}; |
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
// 左边的规则 | |
function leftCode(number, o) { | |
if(o == '1') | |
return [ | |
'0001101', '0011001', '0010011', '0111101', '0100011', | |
'0110001', '0101111', '0111011', '0110111', '0001011'][parseInt(number)%10]; | |
else { | |
return [ | |
'0100111', '0110011', '0011011', '0100001', '0011101', | |
'0111001', '0000101', '0010001', '0001001', '0010111'][parseInt(number)%10]; |
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
typedef int type; | |
int my_binary_search(type *array, int begin, int end, type key) { | |
int mid = 0; | |
if(array == NULL || begin > end || begin < 0) | |
return -1; | |
else | |
mid = begin + ((end - begin) >> 2); | |
if(array[mid] == key) |
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 <stdio.h> | |
#include <math.h> | |
double m_abs(double num) | |
{ | |
return (num < 0 ? -num : num); | |
} | |
double bsqrt(double begin, double end, double value, double precision) | |
{ |
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
<html> | |
<head> | |
<title>chrome arc bug</title> | |
</head> | |
<body> | |
<canvas id="c" width="3000" height="3000"></canvas> | |
<script type="text/javascript"> | |
var canvas = document.getElementById('c'); | |
var ctx = canvas.getContext('2d'); | |
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
<html> | |
<head> | |
<title>chrome arc</title> | |
<meta charset='utf-8'> | |
</head> | |
<body> | |
<canvas id='c' width='2000' height='1500'></canvas> | |
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
(function(){ | |
var canvas = document.getElementById('c'); | |
var ctx = canvas.getContext('2d'); | |
var mouse = { | |
x: 0, | |
y: 0, | |
fx: 0, | |
fy: 0, | |
left: false, |