Skip to content

Instantly share code, notes, and snippets.

View xuechong87's full-sized avatar
🎮
On vacation

宇宙総姐夫 xuechong87

🎮
On vacation
View GitHub Profile
//.recruit-sidebar{position:fixed;display:none;}
$(window,document).on("scroll",function(){
var totalH = $(document).height();//文档总高度
var eleH = 550;//元素高度
var originPadTop = 420;//初始高度
var btmH = 452;//元素在最底部时 元素底部与文档底部高度差
var floationPadTop = 80;//悬浮时顶部高度
function ch(scT){
@xuechong87
xuechong87 / getMethodName.py
Created December 24, 2014 07:08
python 获取方法名
import inspect
class Test1():
@staticmethod
def printMethodName ():
print( "method:" + inspect.stack()[1][3] + "\n")
@xuechong87
xuechong87 / some thing about java.txt
Created June 30, 2014 02:09
some thing about java
JVM’s limit of 65536 bytes of bytecode per method.
一个方法只能有255个参数
@xuechong87
xuechong87 / byte_to_unsigned_byte.java
Created January 21, 2014 07:49
byte to unsign byte
//尽管read()方法读取的是byte数据但是却返回int型,如果你想将这些存为原始的byte类型,你
//可以把int转换成byte,例如:
byte[] b = new byte[10];
for (int i = 0; i < b.length; i++) {
b[i] = (byte) System.in.read( );
}
// 当然这个过程产生的是有符号的byte而不是read()方法返回的无符号byte(也就是说,一个取值
//范围在-128到127之间的byte而不是0-255).一旦你搞清楚这些,那么在你的代码里无论处理的是有符号
//还是无符号byte你都不会有问题.有符号的byte可以用如下的代码转换成0-255的int型:

哈哈哈哈哈啊哈 = None;

for i in

这是一个测试ceshi

typeof(something)=='undefined'
@xuechong87
xuechong87 / foreach.jsp
Created December 10, 2013 08:55
foreach.jsp
<c:forEach items="${subject.excuteUsers }" var="user" varStatus="i">
${user.userName}<c:if test="${not i.last}">、</c:if>
</c:forEach>
@xuechong87
xuechong87 / mysql.ini
Created December 5, 2013 06:26
Can't create a new thread (errno 12); if you are not out of available memory, you can consult the manual for a possible OS-dependent bug
innodb_thread_sleep_delay=40
wait_timeout=100
interactive_timeout=100
@xuechong87
xuechong87 / mysql.sql
Created November 11, 2013 03:13
mysql slave
GRANT REPLICATION SLAVE,REPLICATION CLIENT ON *.*
TO repl@'172.16.30.%' IDENTIFIED BY '123';
--zhu
log_bin = mysql-bin
server_id=
--bei
log_bin = mysql-bin
server_id=
relay_log=/var/lib/mysql/mysql-relay-bin
@xuechong87
xuechong87 / hidden.js
Created November 8, 2013 02:44
is hidden jquery
$("#" + id).is(":hidden")?