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
# Requires to be played back in CodeSkulptor since | |
# the course requires 'simplegui' | |
# and the only place where it's implemented is ... guess it... | |
# CodeSkulptor! | |
# http://codeskulptor.org/ for CodeSkulptor | |
# http://www.codeskulptor.org/#user13_lPBkTAO6Ct_31.py for my script precisely | |
# the digits at the end of the URL may be subject to change (increment by one ad nauseum) | |
# -- 14. May 2013 | |
# Implementation of classic arcade game Pong |
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*/ | |
function Slider (p) { | |
if (!p.id) | |
throw new Error("Didn't pass an ID, can't do without :("); | |
var that = this; | |
var container = document.createElement("div"); | |
container.setAttribute("class", "box-slider"); |
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
# implementation of card game - Memory | |
# (c) 2013 boxmein | |
# MIT license if applicable | |
# prefers being run in CodeSkulptor | |
# Live: http://www.codeskulptor.org/#user14_m6ycUKSq7n_0.py | |
# (live url's last digits may change) | |
import simplegui, random, math | |
# --- Constants --- |
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
--VER 1.1 UPDATE http://pastebin.com/raw.php?i=8Zuy6iB7 | |
-- Keyboard sensor element | |
-- As per request by thread: http://tpt.io/:17012 | |
-- Set TMP to the key code(!) to enable | |
-- set TMP2 (optional) to the modifier code to set modifiers | |
-- Use DEBUG to see the values before setting them | |
-- by boxmein with tremendous help from cracker64 and jacob1 |
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 xchat, re, threading | |
__module_name__ = "RPN" | |
__module_description = "Reverse Polish Notation (/disablerpn, /enablerpn, {{rpn}})" | |
__module_version__ = "1.3.37" | |
class TimeoutError(Exception): | |
pass |
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
<!-- | |
- Socket.io-powered WebSocket utilizing control module! | |
- | |
- * Sample index page for the implementation. | |
- | |
- by boxmein 2013, the code is free to use | |
- Socket.io Copyright(c) 2011 LearnBoost <[email protected]> MIT Licensed | |
--> | |
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
--ExpBot II (Experimental Bot V2.1) - An simple IRC bot written in Lua - the programming language. | |
-- Comments are written in the luadoc style | |
-- http://keplerproject.github.io/luadoc/manual.html#tags | |
require "socket" | |
s = socket.tcp() | |
-- passwords are received from standard input | |
passLine = io.read() | |
network = "chat.eu.freenode.net" -- |
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
(function($) { | |
// add a button for it | |
$('.Message a[href*="View.html?Post="]') | |
.after($('<span class="messagePreview">…</span>')); | |
// make the buttons work | |
$('.messagePreview').click(function(evt) { | |
console.log("Previewing message..."); | |
var postID = $(evt.target).parent() |
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
states = %w(Alabama Alaska Arizona Arkansas California Colorado | |
Connecticut Delaware Florida Georgia Hawaii Idaho Illinois Indiana Iowa | |
Kansas Kentucky Louisiana Maine Maryland Massachusetts Michigan Minnesota | |
Mississippi Missouri Montana Nebraska Nevada NewHampshire NewJersey | |
NewMexico NewYork NorthCarolina NorthDakota Ohio Oklahoma Oregon | |
Pennsylvania RhodeIsland SouthCarolina SouthDakota Tennessee Texas Utah | |
Vermont Virginia Washington WestVirginia Wisconsin Wyoming) | |
ARGV.each do |word| | |
states.each do |state| |
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
// Stripped down version of minibot. | |
// Use as baseline for other bots ! | |
/*jslint node: true */ | |
console.log("-- working directory: " + process.cwd()); | |
var net = require("net"), | |
fs = require("fs"); |