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
RegisterCallback("PRIVMSG", "TUUUUUUUUNE", function() { | |
var msg = this.event.message, | |
args = msg.split(" "), | |
source = this.event.args[0], | |
nick = this.event.nick, | |
me = IRC.GetNick(), | |
stats = UTILS.GetShoutcastStats(), | |
cfg = GetConfig(); | |
if(nick != me && msg.match(/T(U+)(N+)E/) && !msg.match(/^!/)) { |
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
// Handles js, sass, image optimisation/compilation and does very basic PHP linting and livereload | |
var gulp = require('gulp'), | |
minifycss = require('gulp-minify-css'), | |
notify = require('gulp-notify'), | |
cache = require('gulp-cache'), | |
sass = require('gulp-sass'), | |
uglify = require('gulp-uglify'), | |
gutil = require('gulp-util'), | |
refresh = require('gulp-livereload'), | |
lr = require('tiny-lr'), |
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
class Dashing.Newsupdates extends Dashing.Widget |
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 () { | |
function getTextNodesIn(element) { | |
var wordcount = 0, | |
whitespace = /^\s*$/; | |
function getTextNode(node) { | |
// type 3 is a textnode | |
if (node.nodeType == 3) { | |
// We skip text nodes that are only whitespace | |
if (!whitespace.test(node.nodeValue)) { |
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
#!/bin/bash | |
res=$(zenity --list --text="Choose a screen size" --column="Choice" --column="Resolution" --radiolist FALSE "1680x1050" TRUE "3360x1050" --separator=":") | |
if [ $? ] ; then | |
xrandr --size $res | |
fi |
NewerOlder