Skip to content

Instantly share code, notes, and snippets.

View L3au's full-sized avatar
🥑

Ben L3au

🥑
  • Australia
View GitHub Profile
@L3au
L3au / dabblet.html
Created May 7, 2013 12:32 — forked from anonymous/dabblet.html
Untitled
豆瓣新碟榜
<img src="http://img3.douban.com/spic/s24634103.jpg">
1. <a href="">Bloodsports</a> Suede
<img src="http://img3.douban.com/spic/s24963549.jpg">
2. <a href="">The 20/20 Experience</a> Justin Timberlake
<img src="http://img3.douban.com/spic/s25802131.jpg">
3. <a href="">Les Miserables Origi...</a> Hugh Jackman
@L3au
L3au / dabblet.css
Created May 7, 2013 10:42 — forked from anonymous/dabblet.js
Untitled
.warpper{
width: 900px;
margin: 0 auto;
overflow: hidden;
}
.main-wapper{
float: left;
width: 100%;
margin-right: -220px;
data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/ruby");</script>
@L3au
L3au / xiami_decode.js
Created April 30, 2012 12:06 — forked from fanzeyi/xiami_decode.js
Xiami URL Decoder
function decode(loca) {
var result = [], url = "";
var line, rows, extra;
loca = loca.trim();
if(loca === "") {
return "";
}
line = Number(loca[0]);
rows = Math.floor((loca.length - 1) / line);
extra = (loca.length - 1) % line;
@L3au
L3au / jquery.xiami.js
Created April 30, 2012 12:06
Xiami music direct link getter for nodejs
//For jQuery
$.xiami = function (songId, callback) {
function decoder (sourceString) {
var _loc9 = Number(sourceString[0]);
var _loc7 = sourceString.substr(1);
var _loc5 = Math.floor(_loc7.length / _loc9);
var _loc6 = _loc7.length % _loc9;
var _loc2 = new Array();
for (var _loc3 = 0; _loc3 < _loc6; ++_loc3) {
@L3au
L3au / gist:2190675
Created March 25, 2012 01:48 — forked from lamengao/gist:1560715
dl.cuoluo.me nginx config
server {
listen 80;
server_name dl.cuoluo.me;
location / {
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://dl.dropbox.com/u/1812807/dl.cuoluo.me/index.html;
if ($request_method = POST) {
layout title date comments categories
post
Installing Octopress (Fedora Version)
2012-02-05 06:13
true
fedora linux octopress ruby rvm jekyll rubygems

I (rather obviously) recently found myself attempting to install Octopress. Sure, it has great documentation, but some areas were lacking -- specifically, initial setup. As someone who has not worked with Ruby before other than a rather limited Windows install for a jekyll project, I had virtually no experience installing Ruby, using RVM, or even playing with RubyGems.