This file contains hidden or 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
require 'rubygems' | |
require 'hpricot' | |
require 'mechanize' | |
require 'yaml' | |
class MCItems | |
Wiki = 'http://www.minecraftwiki.net' | |
attr_accessor :items | |
def initialize | |
@items = [] |
This file contains hidden or 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
form = ''' | |
<form id=search> | |
<input type=text autofocus=autofocus><button type=submit>Suchen</button> | |
</form> | |
''' | |
# insert form | |
$('#nobotd > br').after form | |
form = $('#search') |
This file contains hidden or 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
{ | |
"shops":{ | |
"13":"adventure", | |
"7":"artsupply", | |
"4":"bakery", | |
"2":"bookshop", | |
"5":"danger", | |
"12":"farm", | |
"20":"gadgets", | |
"21":"garden", |
This file contains hidden or 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
@ECHO OFF | |
color 70 | |
cls | |
@ECHO For detecting differences: | |
@ECHO Old file? (the one which should be updated) | |
SET /P old=Enter: | |
cls | |
@ECHO For detecting differences: | |
@ECHO New file? (the file's current version) | |
SET /P new=Enter: |
This file contains hidden or 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
// @include http://ccan.de/* | |
// @include http://www.ccan.de/* | |
if(parent != window && location.pathname.indexOf('navbar') == -1) { | |
parent.history.replaceState(null, '', location.pathname + location.search) | |
} |
This file contains hidden or 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
<!doctype html> | |
<html> | |
<head> | |
<title>Polygon</title> | |
</head> | |
<body> | |
<section> | |
<form onsubmit='return false'> | |
<label>Number of edges: <input type=number min=3 value=5 /></label> | |
<label><input type=checkbox /> Show vertices</label> |
This file contains hidden or 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
<?php | |
/* | |
Plugin Name: Email Quotes | |
Description: Allows comments to have email-style '>' quotes | |
Version: 1.0 | |
Author: Lukas Werling | |
Author URI: http://github.com/lluchs | |
License: MIT | |
*/ | |
add_filter('comment_text', 'emailquotes'); |
This file contains hidden or 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
package main | |
import "io" | |
import "time" | |
func copySleep(dst io.Writer, src io.Reader, delay int, progress func(written int64)) (written int64, err error) { | |
// If the writer has a ReadFrom method, use it to do the copy. | |
// Avoids an allocation and a copy. | |
if rt, ok := dst.(io.ReaderFrom); ok { | |
return rt.ReadFrom(src) |
This file contains hidden or 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
<!doctype html> | |
<title>Tabs!</title> | |
<style> | |
p { | |
display: none; | |
} | |
p#tabs, p:target { |
This file contains hidden or 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
$('head').append('\ | |
<link href="http://clonkforge.net/style/clonkforge.css" type="text/css" rel="stylesheet"/>\ | |
<link href="http://clonkforge.net/style/text.css" type="text/css" rel="stylesheet"/>\ | |
<link href="http://clonkforge.net/style/admin.css" type="text/css" rel="stylesheet"/>\ | |
<link rel="stylesheet" type="text/css" href="http://clonkforge.net/style/markitup/style.css"/>\ | |
<link href="http://clonkforge.net/style/lytebox.css" type="text/css" rel="stylesheet"/>\ | |
<link href="style.css" type="text/css" rel="stylesheet"/>\ | |
<link href="http://clonkforge.net/includes/js/codemirror/codemirror.css" type="text/css" rel="stylesheet"/>\ | |
<link href="http://clonkforge.net/includes/js/codemirror/theme/default.css" type="text/css" rel="stylesheet"/>\ | |
') |
OlderNewer