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
// jQuery API | |
j.watch_for( /^\?([^#@]+)(?:\s*#([1-9]))?(?:\s*@\s*([-\[\]|_\w]+))?$/, function( message ) { | |
// Return if botty is present | |
if ( message.source.clients.indexOf( 'bot-t' ) >= 0 || message.source.clients.indexOf( 'bot-t1' ) >= 0 ) | |
return | |
var splat = message.text[ 0 ].split( ' ' ) | |
, s = splat[ 0 ].replace( '?', '' ) | |
, to = ( splat[ 1 ] === '@' && splat[ 2 ] && splat.length === 3 ) ? splat[ 2 ] : '' |
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
(function($) { | |
$.fn.ಠ_ಠ = $.fn.ಥ_ಥ = $.fn.ಠ益ಠ = $.fn.ಥ益ಥ = $.fn.ಠ_ರೃ = $.fn.ಠoಠ = $.fn.ಠxಠ = $.fn.囧 = function() { | |
return this; | |
}; | |
})(jQuery); |
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
function flipString( str ) { | |
return str.toLowerCase().split( '' ).map( function( c ) { | |
return chars[ c ] ? chars[ c ] : c | |
}).reverse().join('') | |
} | |
function kickFlip( str ) { | |
return '(╯°□°)╯︵' + flipString( str ) | |
} |
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
.thing { | |
filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); | |
filter: gray; | |
-webkit-filter: grayscale(100%); | |
} |
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 flair | |
*/ | |
const irc = require( "irc-js" ) | |
const FLAIR = | |
[ [ /\balligator\b/i, "---,==,'<" ] | |
, [ /\bshrugs\b/i, "¯\\_(ツ)_/¯" ] | |
, [ /\by u\b/i, "(屮'Д')屮" ] | |
, [ /\bdentata\b/i, [ "(▼▼▼▼▼▼▼▼▼)" |
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 gol = [ " _,...,_" | |
, " .'@/~~~\\@'." | |
, " //~~\\___/~~\\\\" | |
, "|@\\__/@@@\\__/@|" | |
, "|@/ \\@@@/ \\@|" | |
, " \\__/~~~\\__//" | |
, " '.@\\___/@.'" ]; |
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 desc | |
* This module fetches titles + descriptions for sites shared in a channel IF the message is simply an URL | |
* This module is also an example of how to use cheerio to `parse` html. | |
* Dependencies not included in ircjsbot: cheerio + request (request because it follows redirects, which the entire internet is build on, apparently) | |
*/ | |
"use strict"; | |
const irc = require("irc-js"); |
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
function uptime(msg) { | |
var s = process.uptime(); | |
const h = Math.floor( s / ( 60 * 60 ) ); | |
s -= h * ( 60 * 60 ); | |
const m = Math.floor( s / 60 ); | |
s -= m * 60; | |
msg.reply('I have been running for %s hours, %s minutes and %s seconds.', h, m, s); | |
} |
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
$(function(){ | |
var bust = Date().now(); | |
var resources = [ | |
{ html : '<script>', attr : 'src', link : 'js/init.js?v=' } | |
, { html : '<link rel="stylesheet">', attr : 'href', link : 'css/style.css?v=' } | |
]; | |
$.each(resources, function(i,v) { | |
$(v.html).attr(v.attr, v.link + bust).appendTo( 'body' ); | |
}); |
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
(function(){ | |
var css = '#video-wrapper table {'; | |
css+= 'width: 101px;'; | |
css+= 'height: 101px;'; | |
css+= 'border: 1px solid red;'; | |
css+= 'position: absolute;'; | |
css+= 'top: 0;'; | |
css+= 'z-index: 999;'; | |
css+= '}'; |
OlderNewer