Skip to content

Instantly share code, notes, and snippets.

View SagiriHimoto's full-sized avatar
🍋
Jus bein lazy lately

SagiriHimoto SagiriHimoto

🍋
Jus bein lazy lately
View GitHub Profile
@Kreijstal
Kreijstal / PonyTown.js
Last active April 24, 2024 06:37
Hacks for not popular glorified chat called ponytown
//>implying whoever reads it can understand this
//Minified code from Rainb Essentials.
var genParser=function(e,t,n){function r(e,t){var n,r,i,a;return e?e instanceof RegExp?(i=new RegExp,i.compile("^(?:"+e.source+")",(e.multiline?"m":"")+(e.eturnignoreCase?"i":"")),n=i.exec(o.substr(s)),r=n&&n[0],null===r?null:(s+=r.length,r)):"string"==typeof e?e===o.substr(s,e.length)?(s+=e.length,e):null:(r=e.type,a=c[r],n=a(e,t),a?n:null):null}function i(e){return o=e,s=0,a.unknown(r(u))}var o,s,a=t,u={type:"type",is:n},c={expression:function(e){var t,n,i,o,s,a,u,c,l,p,f,h,d,g={type:"alternate",contains:[e.contains]},b={type:"alternate",contains:[]},y={type:"alternate",contains:[]},m=[],v=[];if(c=e.operators){for(t=0,i=c.length;i>t;t++)for(n=0,o=c[t].tokens.length;o>n;n++)a=c[t].tokens[n],e.whiteSpaceIgnore?"string"==typeof a?b.contains.push(new RegExp("\\s*(?:"+a.replace(/([-+\\?.!$^&*(){}[\]])/g,"\\$1")+")\\s*")):a instanceof RegExp?b.contains.push(new RegExp("\\s*(?:"+a.source+")\\s*",(a.multiline?"m":"")+(a.ignoreCa
@mzemel
mzemel / reddit.rb
Created June 29, 2013 05:38
Reddit upvote bot
#This script requires ruby and the watir-webdriver gem (http://watirwebdriver.com/)
#When you enter a username, it will upvote all of their comments/posts
#You may get IP-banned
require 'watir-webdriver'
puts "Please enter a user"
user = gets
user.chomp!