Skip to content

Instantly share code, notes, and snippets.

View camelcc's full-sized avatar

camel camelcc

View GitHub Profile
@camelcc
camelcc / SinaWeiboPatchUnfollow
Last active December 27, 2015 01:29
patch unfollow on Sina WeiBo
var realScript =
["function unfollow() {",
"console.log('start processing...');",
"var followList = $('.myfollow_list');",
"$.each(followList, function(i, follow) {",
" follow.click();",
"});",
"var cancelBtn = $('[action-type=cancel_follow]')[0];",
"cancelBtn.click();",
"var confirmBtn = $('[node-type=OK]')[0];",
@camelcc
camelcc / UbuntuJDKInstall
Last active December 19, 2015 06:59
Install Oracle JDK on Ubuntu 12.04
Reference: [How do I install Oracle Java JDK 7?](http://askubuntu.com/questions/55848/how-do-i-install-oracle-java-jdk-7)
## 1. Install JDK
+ [Download](http://www.oracle.com/technetwork/java/javase/downloads/index.html) from Oracle page
+ Uncompress it
tar -xvf jdk-7u2-linux-x64.tar.gz
@camelcc
camelcc / WikiSearchSuggestion
Created June 19, 2013 11:00
A search suggestion using jQueryUI autocomplete + Wikipedia API.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>jQuery demo - wikipedia suggestion</title>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css">
</head>
<body>