Skip to content

Instantly share code, notes, and snippets.

View Gaubee's full-sized avatar
🫐
Growing

Gaubee Gaubee

🫐
Growing
View GitHub Profile
@Gaubee
Gaubee / smart_fixed.js
Created September 29, 2013 06:01
智能悬浮的基本思路:判断滚动方向=》得知定位=》跟随底部或者顶部=》改变元素位置
$(function () {
var $J_onPopup = $('#J-onPopup');
var $J_popup = $('#J-popup');
var $win = $(window);
var $body = $("body");
var wheel_arrow = $("<div style='position: absolute;'></div>");
$body.append(wheel_arrow);
var all_height = $body.height();//$win.outerHeight();
var win_height = $win.height();
@Gaubee
Gaubee / baidu_music_no_ad.css
Created September 28, 2013 06:08
my Stylish
/*play.baidu.com*/
.mb-layout-bd.column4{
display:none;
width: 0px;
}
.mb-layout-bd.column3{
right:0px;
}
.mb-layout-bd.column2{
right: 250px;
@Gaubee
Gaubee / qzone.java
Created September 27, 2013 14:02
Java 抓取Qzone的说说数据的实例
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
@Gaubee
Gaubee / host
Last active December 22, 2015 23:19
Hosts
#UPDATE:2013-12-07 12:16
127.0.0.1 localhost
#SmartHosts START
#Google Services START
203.208.46.200 0.docs.google.com
203.208.46.200 0.drive.google.com
203.208.46.200 1.docs.google.com
@Gaubee
Gaubee / mix.js
Last active March 1, 2018 03:02
mix to javascript Object
function _mix(sObj, nObj) {
var obj_s, obj_n, i;
if (sObj instanceof Object && nObj instanceof Object) {
for (i in nObj) {
if ((obj_s = sObj[i]) !== (obj_n = nObj[i])) {//避免循环 Avoid Circular
sObj[i] = _mix(sObj[i], nObj[i]);
}
}
return sObj;
} else {
@Gaubee
Gaubee / firebug-lite.md
Last active December 21, 2015 04:09
firebug-lite搭建在本地,供虚拟机上的IE调试用

firebug-lite下载地址https://getfirebug.com/releases/lite/latest/firebug-lite.tar.tgz

下载完后直接搭建在本地80端口上,我的80端口是php服务器,支持文件夹路由,所以直接把压缩包解压到www文件夹下

IE6~8都是在虚拟机中调试,要连接Ubuntu上的端口不能用localhost,需要先获取本地IP地址:

$ ifconfig

找到wlan0的ip,比如说是: 192.168.0.109 。所以在虚拟机中的访问地址是 localtion.hastname + location.port + $fire_path

@Gaubee
Gaubee / index.html
Last active December 20, 2015 14:59
nodejs远程命令行系统
<html>
<head>
<title>hehe</title>
<meta content="The Shell command runner Based on Nodejs">
<style>
/**
* basic styles for the javascript sandbox console - joss crowcroft
*
* http://josscrowcroft.github.com/javascript-sandbox-console/
*/

==========

A useful tools or tips list for mobile web application developing

这个项目收集移动端开发所需要的一些资源与小技巧

一些非常重要的工具类网站

@Gaubee
Gaubee / n2a.js
Created July 16, 2013 05:06
汉字转unicode编码
function n2a(str,f){
var reg = f ? /./g : /[\u4e00-\u9fa5]/g;
return str.replace(reg,function(a){
return "\\u" + ('0000'+Number(a.charCodeAt(0)).toString(16)).slice(-4);
});
};
@Gaubee
Gaubee / MVC_view.html
Created July 15, 2013 07:11
一种模板解析的思路
<html>
<head>
<title>parse View</title>
</head>
<body>
<script type="template">
Hello,{{fullName}}.
<!--{{fullName}} = {{firstName}}+" "+{{lastName}}-->
<hr />
<input ms-value={{firstName}} ms-title = "姓:{{firstName}}" ></input>