Steffen Winkler perl-ws@steffen-winkler.de
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 perl5i::latest; | |
use lib 't/lib'; | |
use Test::More; | |
use Test::perl5i; | |
is_deeply( | |
scalar [ 'foo', 'bar', 'baz' ]->rotate, | |
[ 'fbb', 'oaa', 'orz' ], |
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
From 003e4a86a534576eee2cb26507cba038ef213048 Mon Sep 17 00:00:00 2001 | |
From: =?UTF-8?q?Lars=20D=C9=AA=E1=B4=87=E1=B4=84=E1=B4=8B=E1=B4=8F=E1=B4=A1=20?= | |
=?UTF-8?q?=E8=BF=AA=E6=8B=89=E6=96=AF?= <daxim@cpan.org> | |
Date: Thu, 24 Nov 2011 18:30:38 +0100 | |
Subject: [PATCH] Array->rotate <https://github.com/schwern/perl5i/issues/146> | |
The greater share of the work on this feature has been done by | |
student Vladimir during the Google Code-in 2011. | |
--- | |
lib/perl5i.pm | 14 ++++++++++ |
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
CXXFLAGS = -O0 -g -Wall -fmessage-length=0 -pedantic -std=c++11 -Wextra | |
all: iteration main.cpp | |
$(CXX) $(CXXFLAGS) -c -o main.o main.cpp | |
$(CXX) -o iteration main.o iteration.o | |
iteration: iteration.cpp | |
$(CXX) $(CXXFLAGS) -c -o iteration.o iteration.cpp | |
test: iteration test.cpp |
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
CXXFLAGS = -fmessage-length=0 -g3 -O0 -pedantic -std=c++11 -Wall -Wextra | |
all: main.cpp | |
$(CXX) $(CXXFLAGS) -c -o main.o main.cpp | |
$(CXX) -o ./farm main.o | |
help: | |
@echo make CXX=clang++ | |
@echo '# or just `make` for g++' | |
@echo ./farm |
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
// http://redd.it/235nt7 | |
// Enable console output in the top left corner | |
developer 1 | |
// Display the last 15 lines of the console in the top left corner | |
contimes 15 | |
// Keep the console output in the top left corner for 8 seconds | |
con_notifytime 8 |
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
for https://github.com/kohler/gifsicle/issues/31 |
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
package Metagrammar; | |
use Marpa::R2; | |
use Regexp::Grammars; | |
sub parse { | |
my ($grammar, $input) = @_; | |
my $meta_grammar = qr{ | |
<grammar> |
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
package Testapp; | |
use FFI::Platypus; | |
use FFI::Platypus::Memory qw(free malloc); | |
my $ffi = FFI::Platypus->new; | |
$ffi->lang('CPP'); | |
$ffi->lib('./testapp.o'); |
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
From 06fd6913d2becdd0d994b0ac786516618bf0f420 Mon Sep 17 00:00:00 2001 | |
From: =?UTF-8?q?Lars=20D=C9=AA=E1=B4=87=E1=B4=84=E1=B4=8B=E1=B4=8F?= | |
=?UTF-8?q?=E1=B4=A1=20=E8=BF=AA=E6=8B=89=E6=96=AF?= <daxim@cpan.org> | |
Date: Sun, 8 Jul 2018 15:05:31 +0200 | |
Subject: [PATCH 1/3] normalise so we can have meaningfully diffs | |
`jq . -S` was used | |
--- | |
frameworks/Perl/dancer/benchmark_config.json | 44 +++++----- | |
frameworks/Perl/kelp/benchmark_config.json | 84 ++++++++++--------- |
OlderNewer