Skip to content

Instantly share code, notes, and snippets.

@mmis1000
mmis1000 / gist:6343892
Last active December 21, 2015 17:59 — forked from Yaffle/gist:1287361
var crc32;
(function(){
var crcTableTable = [];
function buildTable(polynomial) {
var table = [];
function reverse(x, n) {
var b = 0;
while (n) {
b = b * 2 + x % 2;
x /= 2;
@mmis1000
mmis1000 / gist:6854516
Created October 6, 2013 14:05
a light toJSONString() implement
Object.prototype.toJSONString = function () {
var i, x, content, returnValue;
if (this instanceof Array) {
for (i = 0; i < this.length; i++) {
if (this[i] !== undefined) {
if (this[i] != null) {
content = content ? (content + "," + this[i].toJSONString()) : this[i].toJSONString();
} else {
content = content ? (content + "," + "null") : "null";
}
<?php
/**
* Minecraft server status fallback class
* Read the simple server info wich are actually for minecraft clients
* @author Patrick K. - http://www.silexboard.org/ - https://github.com/NoxNebula
* @license GNU Public Licence - Version 3
* @copyright c 2011-2013 Patrick K.
*/
/**
<?php
/**
* Minecraft server status fallback class
* Read the simple server info wich are actually for minecraft clients
* @author Patrick K. - http://www.silexboard.org/ - https://github.com/NoxNebula
* @license GNU Public Licence - Version 3
* @copyright c 2011-2013 Patrick K.
*/
/**
<?php
/*by mmis1000 : All thanks to the original auther*/
/**
* Minecraft server status fallback class
* Read the simple server info wich are actually for minecraft clients
* @author Patrick K. - http://www.silexboard.org/ - https://github.com/NoxNebula
* @license GNU Public Licence - Version 3
* @copyright c 2011-2013 Patrick K.
*/
/**
--Do not remove this if you are using--
Original Author: Remiz Rahnas
Original Author URL: http://www.htmlremix.com
Published date: 2008/09/24
Changes by Nick Fetchak:
- IE8 standards mode compatibility
- VML elements now positioned behind original box rather than inside of it - should be less prone to breakage
Published date : 2009/11/18
body, html {
background:#222222;
color:#444444;
}
img {
max-width:100%;
}
.mainwrap {
position:fixed;
top:0px;
#video {
display:none;
}
#canvas {
max-width:100%;
max-height:100%;
}
#mainwrap {
position:fixed;
top:0px;
{
"description": "「狼與辛香料」社團服",
"players": {
"max": 20,
"online": 1,
"sample": [{
"id": "3cb812f66a9b3a87b89817468a7d0406",
"name": "sky303593"
}]
},
// http://www.ietf.org/rfc/rfc1928.txt
// Tested with: curl http://www.google.se/ --socks5 1080 --proxy-user foo:bar
var wsServer = "ws://127.0.0.1:34689";
var States = {
CONNECTED:0,
VERIFYING:1,
READY:2,
PROXY: 3