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
idk() { | |
local shrugs=("¯\_(ツ)_/¯" "¯\(°_°)/¯" "¯\(°_o)/¯" "┐(°_°)┌") | |
local shrug=${shrugs[$RANDOM % ${#shrugs[@]}]} | |
pbcopy <<< "${shrug}" && echo "${shrug} copied to clipboard" | |
} | |
alias shrug=idk |
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
define([ | |
'intern!object', | |
'intern/chai!assert', | |
'require' | |
], function (registerSuite, assert, require) { | |
function getScrollPosition(context) { | |
return context.remote | |
.execute(function () { | |
y = window.pageYOffset; |
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+= '}'; |
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 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
/** | |
* @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
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 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
.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
function flipString( str ) { | |
return str.toLowerCase().split( '' ).map( function( c ) { | |
return chars[ c ] ? chars[ c ] : c | |
}).reverse().join('') | |
} | |
function kickFlip( str ) { | |
return '(╯°□°)╯︵' + flipString( str ) | |
} |