This file contains hidden or 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
#!/usr/bin/perl | |
use warnings; | |
use strict; | |
use File::Copy; | |
my ($resolution,$series,$episodePad,$seasonPad); | |
input("Resolution",\$resolution,0); | |
input("Series title",\$series,0); | |
input("Episode Padding",\$episodePad,2); | |
input("Season Padding",\$seasonPad,2); | |
my @files = <"./*$series*">; |
This file contains hidden or 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
my %last = (); | |
for('Channel Message', 'Private Message to Dialog', 'Your Message') { hook_print($_,\&handle_text,{'data'=>[$_]}); } | |
for('Channel Msg Hilight','Channel Action','Join','Quit','Part') { hook_print($_,\&reset_last); } | |
sub reset_last { | |
my $where = get_info('channel'); | |
delete $last{$where}; | |
return EAT_NONE; | |
} | |
sub handle_text { | |
my ($event,$where,$nick,$msg) = ($_[1][0],get_info('channel'),@{$_[0]}); |
This file contains hidden or 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
#!/usr/bin/perl | |
use warnings; | |
use strict; | |
use IO::Socket; | |
my %c = ( | |
prefix => '\!', | |
server => 'localhost', | |
channel => '#TheFusion', | |
admin => 'Megurine', | |
nick => 'Poli', |
This file contains hidden or 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 sliderIndex = 0; | |
var refreshIntervalId; | |
var $images = $(".slide-group").children(); | |
$(function(){ | |
var $bar = $('.slide-buttons'); | |
addButton("Previous", prev, $bar); | |
addButton("Next", next, $bar); | |
}) |
This file contains hidden or 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
#!/usr/bin/perl | |
use warnings; | |
use strict; | |
my %updated; | |
sub compile_scss { | |
# Get our list of files | |
my @files = <./scss/*.scss>; | |
# Do nothing if there aren't even any files | |
return 0 if(!@files); | |
# Make sure we even have sass available to us. |
This file contains hidden or 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
#!/usr/bin/perl | |
use warnings; | |
use strict; | |
use IO::Socket; | |
my %config = (prefix => '\!', server => 'localhost', channel => '#TheFusion', nick => 'Poli'); | |
sub sendServer { my $socket = shift; print $socket "$_\n" for(@_); } | |
sub connectServer { | |
my ($host,$port) = split /\:/, $config{server}; | |
my $socket = new IO::Socket::INET(PeerAddr=>$host, PeerPort=>($port)?$port:6667); | |
die "Can't connect: $host $port" if($@); |
This file contains hidden or 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
import "dart:io"; | |
void main() { | |
startServer(InternetAddress.ANY_IP_V4,3333); | |
} | |
void startServer(host, int port) { | |
HttpServer | |
// HttpServer object | |
.bind(host,port) | |
// bind returns a Future<HttpServer> object. Future objects have the method then, which is called when it's child type is ready. | |
.then((HttpServer server) { |
This file contains hidden or 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
System: Host: Oozlum Kernel: 4.4.0-53-generic x86_64 (64 bit gcc: 5.4.0) | |
Desktop: Cinnamon 3.2.7 (Gtk 3.18.9-1ubuntu3.1) Distro: Linux Mint 18.1 Serena | |
Machine: System: Hewlett-Packard (portable) product: HP ENVY 17 Notebook PC v: 0884100000305B00000620100 | |
Mobo: Hewlett-Packard model: 1966 v: KBC Version 93.51 Bios: Insyde v: F.56 date: 04/23/2014 | |
CPU: Quad core Intel Core i7-4700MQ (-HT-MCP-) cache: 6144 KB | |
flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 19156 | |
clock speeds: max: 3400 MHz 1: 2400 MHz 2: 2400 MHz 3: 2779 MHz 4: 2422 MHz 5: 2400 MHz 6: 2400 MHz | |
7: 2400 MHz 8: 2401 MHz | |
Graphics: Card-1: Intel 4th Gen Core Processor Integrated Graphics Controller bus-ID: 00:02.0 | |
Card-2: NVIDIA GK208M [GeForce GT 740M] bus-ID: 01:00.0 |
This file contains hidden or 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
inxi -Fxz | |
System: Host: Oozlum Kernel: 4.4.0-53-generic x86_64 (64 bit gcc: 5.4.0) | |
Desktop: Cinnamon 3.2.7 (Gtk 3.18.9-1ubuntu3.1) | |
Distro: Linux Mint 18.1 Serena | |
Machine: System: Hewlett-Packard product: HP ENVY 17 Notebook PC v: 0884100000305B00000620100 | |
Mobo: Hewlett-Packard model: 1966 v: KBC Version 93.51 | |
Bios: Insyde v: F.56 date: 04/23/2014 | |
CPU: Quad core Intel Core i7-4700MQ (-HT-MCP-) cache: 6144 KB | |
flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 19154 | |
clock speeds: max: 3400 MHz 1: 2832 MHz 2: 2928 MHz 3: 2413 MHz |
This file contains hidden or 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
package bitdev; | |
import robocode.*; | |
import java.awt.Color; | |
// Neko - a robot by Caaz | |
public class Neko extends AdvancedRobot { | |
private boolean direction = true; | |
public void run() { | |
setColors(Color.black, Color.black, Color.white); | |
while(true) { |
OlderNewer