This file contains 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
var isoCountries = { | |
'AF' : 'Afghanistan', | |
'AX' : 'Aland Islands', | |
'AL' : 'Albania', | |
'DZ' : 'Algeria', | |
'AS' : 'American Samoa', | |
'AD' : 'Andorra', | |
'AO' : 'Angola', | |
'AI' : 'Anguilla', | |
'AQ' : 'Antarctica', |
This file contains 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
__module_name__ = "IrmageBoard" | |
__module_version__ = "0.5.5" | |
__module_description__ = "Liek a real imageboard guies (without the images!!!1)" | |
tinyVersion = 55 | |
import xchat, string, re, random, yaml | |
from urllib2 import urlopen | |
ymlFilter = urlopen("http://xvicario.us/irmageboard/filters.yml") | |
myFilter = yaml.load(ymlFilter) |
This file contains 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
//META{"name":"MemeArrowsLite"}*// | |
function MemeArrowsLite() { | |
/** | |
* Runs the converting of ">text" to green text, or "MemeArrows" | |
*/ | |
function modifier() { | |
$('.message-text>.markup:not(.green-text)').each(function() { | |
if ($(this).text().substr(0, 1) === '>') { | |
$(this).addClass('green-text'); | |
} |
This file contains 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
var ConvertCost = { | |
colorCodes: ['W', 'U', 'B', 'R', 'G', 'C', 'X', 'Y', 'Z', 'P', 'T'], | |
// todo: this needs support for infinity symbols, and tap symbols | |
parse: function (string) { | |
var idChars = ['/', '{', '}']; // characters we don't want to add to our build | |
if (string == null || !string.trim()) { // if the string is null or empty | |
return ''; // we are already done, return an empty string | |
} | |
var newFangledString = ''; // our new mana cost representation | |
var build = ''; // for our longer identifiers we need to build up to it |
This file contains 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
<? | |
/** | |
* @param int $formatId id of the format to fetch cards for | |
* @param string[] $types what types of cards you want | |
* @param int $limit how many of the top cards you want | |
* @return [] array of size $limit of cards | |
*/ | |
public static function getTopCards($formatId, $types = [], $limit = 10) | |
{ |
This file contains 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
javascript:(function(){var total=0;$($("tr td:nth-child(5) div span").get().reverse()).each(function(){var thisT=$(this).text().substring(2);thisT=thisT.substring(0,thisT.length-1);total+=Number.parseInt(thisT);});alert(total);})(); | |
// The lower the number on /sent the better (this means negative!) | |
// The higher the number on /received the better (postitive) |
This file contains 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
public HashMap<Character, Integer> getCharacterCounts() { | |
HashMap<Character, Integer> tweetCharacters(); | |
//iterate through tweets | |
//for each character in string | |
if (tweetCharacters.containsKey(/*CHARACTER*/)) { | |
tweetCharacters.put(/*CHARACTER*/, tweetCharacters.get(/*CHARACTER*/) + 1); | |
} else { | |
tweetCharacters.put(/*CHARACTER*/, 1); | |
} | |
//end for |
NewerOlder