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
if (obj['replylinks'] !== '') { | |
_ref = obj['replylinks'].split('&'); | |
for (_i = 0, _len = _ref.length; _i < _len; _i++) { | |
x = _ref[_i]; | |
ret.add((x.split('='))[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
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{HTTP_HOST} !=m.moegirl.org | |
RewriteCond %{HTTP_USER_AGENT} .*iPhone.* [OR] | |
RewriteCond %{HTTP_USER_AGENT} .*Android.* [OR] | |
RewriteCond %{HTTP_USER_AGENT} .*SymbianOS.* [OR] | |
RewriteCond %{HTTP_USER_AGENT} .*Windows\ Phone.* | |
RewriteRule ^(.*)$ http://m.moegirl.org/$1 [L,R=301] |
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
bearice@Bearice-Mac-Air ~ | |
%dig fanfou.icybear.net !693 [20:07:21] | |
; <<>> DiG 9.7.3-P3 <<>> fanfou.icybear.net | |
;; global options: +cmd | |
;; Got answer: | |
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 2591 | |
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 4, ADDITIONAL: 8 | |
;; QUESTION SECTION: |
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
/** | |
* jQuery plugin for <del>Dungeon and Dragons</del> Drag and Drop Event | |
*/ | |
(function($){ | |
$.fn.dragAndDropFiles = function(options){ | |
if(typeof(window.FileReader)=== 'undefined')return; | |
var defaults = { | |
MIME : ["image/png","image/jpeg","image/bmp"], | |
//accept = function(e){}, | |
//cancel = function(e){}, |
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
var crypto = require('crypto'); | |
var WSProtocolHandler = { | |
"8":{ | |
handshake:function(req,socket,head,callback){ | |
var key = req.headers["sec-websocket-key"]; | |
if(!key)return false; | |
key += "258EAFA5-E914-47DA-95CA-C5AB0DC85B11"; | |
var sha1 = crypto.createHash('sha1'); | |
sha1.update(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
-module(time_utils). | |
-author("Bearice Ren <[email protected]>"). | |
-export([strftime/2]). | |
strftime(Fmt,{_,_,_}=Time)-> | |
strftime(Fmt,calendar:now_to_datetime(Time)); | |
strftime(Fmt,{_,_}=Time)-> | |
lists:reverse(strftime(str,Fmt,Time,[])). |
NewerOlder