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
<html> | |
<body> | |
<h4>Test</h4> | |
</body> | |
</html> |
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
$ java -jar BlobSlayer2.3.jar | |
Exception in thread "main" java.lang.NullPointerException | |
at javax.swing.ImageIcon.<init>(ImageIcon.java:205) | |
at Board.getImage(Board.java:199) | |
at Board.<init>(Board.java:168) | |
at Game.<init>(Game.java:19) | |
at Game.main(Game.java:102) | |
$ java -version | |
java version "1.7.0_51" |
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
// When using first-class functions, c++11 will silently coerce a function returning a value | |
// into a std::function returning a reference, thus creating a ticking time bomb. | |
#include <stdio.h> | |
#include <functional> | |
const int& f1 (std::function<const int& ()> func) { | |
return func(); | |
}; |
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 strict; | |
use warnings; | |
use FindBin; | |
BEGIN { %make:: or do { require "$FindBin::Bin/tool/make.pm"; make->import(':all') } } | |
use autodie qw(:all); | |
my $here; | |
my @modules; |
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
" local syntax file - set colors on a per-machine basis: | |
" vim: tw=0 ts=4 sw=4 | |
" Vim color file | |
hi clear | |
set background=dark | |
if exists("syntax_on") | |
syntax reset | |
endif | |
let g:colors_name = "murphyme" |
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
==> Bailador depends on HTTP::Easy, Template::Mojo, URI | |
==> HTTP::Easy depends on HTTP::Status | |
==> Fetching HTTP::Status | |
==> Building HTTP::Status | |
Compiling lib/HTTP/Status.pm6 | |
==> Testing HTTP::Status | |
t/01-basic.t .. ok | |
All tests successful. | |
Files=1, Tests=4, 1 wallclock secs ( 0.02 usr 0.00 sys + 0.40 cusr 0.06 csys = 0.48 CPU) | |
Result: PASS |
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
#Implementation of http://rosettacode.org/wiki/XML/Output | |
escape_xml = *.replace( | |
('<', '<'), | |
('>', '>'), | |
('&', '&'), | |
('"', '"'), | |
("'", '''), | |
); |
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
diff --git a/Pugs/src/Pugs/AST/Internals.hs b/Pugs/src/Pugs/AST/Internals.hs | |
index cf984b1..afead2e 100644 | |
--- a/Pugs/src/Pugs/AST/Internals.hs | |
+++ b/Pugs/src/Pugs/AST/Internals.hs | |
@@ -1166,7 +1166,7 @@ instance Value VStr where | |
fromVal (VList l) = return . unwords =<< mapM fromVal l | |
fromVal v@(PerlSV _) = fromVal' v | |
fromVal VUndef = return "" | |
- fromVal (VType t) = return (showType t) | |
+ fromVal (VType t) = return (showType t ++ "()") |
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
// Struct-Array Hybrids | |
// In many situations it is useful to have a static collection of objects | |
// that can be accessed either by name or by number. | |
// Previously, you would have to declare an array of unnamed items, followed | |
// by either an enum or a series of const references. This made it difficult | |
// to modify by hand and to ensure that the right names were matched to the | |
// right objects. It also took twice as many code lines. |
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
#include <stdio.h> | |
class Talking { | |
// Vtable | |
template <class T> | |
struct implemented_by { | |
void (T::* talk ) (); | |
void (T::* talk__int ) (int); | |
static const implemented_by vtable; | |
}; |