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
#!/usr/bin/perl | |
use warnings; | |
use strict; | |
use Term::ANSIScreen qw/cls/; | |
use POSIX qw/strftime/; | |
use feature 'say'; | |
# Current year. | |
my $year = strftime '%Y', gmtime; |
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
import graph.Vertex; | |
import java.io.FileNotFoundException; | |
import java.io.FileReader; | |
import java.util.ArrayList; | |
import java.util.Scanner; | |
import java.util.Stack; | |
public class ShortestVertex { | |
private int num_vertices; | |
private int start; |
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 | |
BIN=LightTable | |
HERE=$PWD | |
ULIBS="$HERE/lib"; | |
#UDEV_SRC=http://distfiles.gentoo.org/distfiles/google-chrome-libudev-0.13.1-x86.tar.xz | |
UDEV_SRC=http://distfiles.gentoo.org/distfiles/google-chrome-libudev-0.13.1-amd64.tar.xz | |
if [[ ! -e "$ULIBS" ]]; then |
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
<?php | |
class Question { | |
public $questionName; | |
public $choiceValue; | |
public function __construct($questionName, $choiceValue){ | |
$transtbl = array( |
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
<?php | |
require_once 'models/question.php'; | |
require_once ("dbconfig.php"); | |
class Model { | |
private function summary_stats() { |
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
#!/usr/bin/env perl | |
use Benchmark qw( cmpthese ); | |
my @prein = ( | |
qw( bar baz foo ) | |
); | |
my @preout = ( qw( bar baz boo ) ) ; | |
my %in = ( |
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
seek*DATA,0,1-open*STDIN,'<&=DATA';print"^_^\n";exec'perl -x';__DATA__ | |
#!/usr/bin/env python | |
lah de | |
magical code dah | |
#!perl | |
print "Not as magical as you think\n"; | |
seek*STDIN,0,0;exec'perl' |
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
seek*DATA,0,1-open*STDIN,'<&=DATA';print"^_^\n";exec'perl';__DATA__ |