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
/** Connects to Pastebin and receives a paste's content through cutting the received string with some HTML tags that | |
* Pastebin uses to store its content. | |
* | |
* | |
* | |
* | |
*/ | |
import java.io.*; // Used to read the content of the URL stream | |
import java.net.*; // Used to connect to the Internet and create a stream |
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
/** | |
* The Powder Toy style re-write in LESS. | |
* Uses pattern from noqta.it | |
* 2012: boxmein. Remixing allowed, but credit is needed. | |
* | |
* To stylers: hope you won't get a headache reading this code. | |
* In redo progress, new front page and all :O | |
* | |
* Please use https://github.com/boxmein/UserEdits/blob/master/userstyles/powdertoy.co.uk/tpt-redo-dark.less for the latest, this won't be updated as much. |
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 | |
:a | |
cls | |
node irc-bot.js | |
echo Fix me! | |
pause | |
goto a |
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
// ElementClasses.h | |
// This file is automatically generated by generator.py | |
#ifndef ELEMENTCLASSES_H | |
#define ELEMENTCLASSES_H | |
#include <vector> | |
#include "simulation/Element.h" |
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 "socket" | |
--[[ Configuration ]]-- | |
__DEBUG = true -- USE THIS! | |
serv = "chat.eu.freenode.net" | |
nick = "jenn4|luabot" | |
user = nick | |
mode = "0" | |
realname = "jenn4|luabot" | |
channels = "#jenn4,#powder-bots" -- You can stack channels like #ch1,#ch2 NO SPACES! | |
prefix = "!!" -- Careful to make sure both of those are replaced |
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
import re, os, shutil, string | |
def generateElements(): | |
elementClasses = dict() | |
baseClasses = dict() | |
elementHeader = """#ifndef ELEMENTCLASSES_H | |
#define ELEMENTCLASSES_H | |
#include <vector> |
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
/*jslint node: true */ | |
/* | |
A really small and lightweight IRC bot | |
Made from pieces of NodeIRCBot (http://github.com/boxmein/NodeIRCBot/) | |
Features: | |
1. Commands are numbered, but have a prefix character | |
2. Output logging levels | |
3. Sandboxed Javascript handling (1) | |
*/ |
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 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<!-- | |
Genevo Theme by lsaac.tumblr.com | |
1: Modified for 4 columns (1080px width) by punanekleeps.tumblr | |
(Line 141, #content.posts CSS) | |
2: Disabled the link box hiding thing. As much of an effect it gives, links are fun. | |
(Lines 17..23, $(document).ready Javascript) | |
Feel free to customise the theme as much as you like but please rememeber to leave at least one credit link, thank you :-) |
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
/*jshint browser: true, jquery: true */ | |
/*global GetQuote*/ | |
function getSelectionHtml() { | |
var html = ''; | |
if (typeof window.getSelection != 'undefined') { | |
var sel = window.getSelection(); | |
if (sel.rangeCount) { | |
var container = document.createElement('div'); | |
for (var i = 0, len = sel.rangeCount; i < len; ++i) { | |
container.appendChild(sel.getRangeAt(i).cloneContents()); |
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
// ==UserScript== | |
// @id powdertoy.co.uk-f7ac10f4-5ccd-4504-94e8-60ac371ac11a@boxmein.web44.net | |
// @name TPT Markdown inputs | |
// @version 1.1.2 | |
// @namespace boxmein.web44.net | |
// @author boxmein | |
// @description Makes an addition to TPT forum's comment text box for a 'semi-WYSIWYG' textbox via Markdown. Some tags might not work! | |
// @include http://powdertoy.co.uk/* | |
// @run-at document-end | |
// ==/UserScript== |
OlderNewer