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 strict; | |
use warnings; | |
my $input = $ARGV[0]; | |
my $index = 0; | |
open INPUT, "<$input" | |
or die "can't open $input for reading: $!\n"; |
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/dlls/kernel32/sync.c b/dlls/kernel32/sync.c | |
index 5b7f810..c8a46c8 100644 | |
--- a/dlls/kernel32/sync.c | |
+++ b/dlls/kernel32/sync.c | |
@@ -456,7 +456,7 @@ HANDLE WINAPI DECLSPEC_HOTPATCH CreateEventExA( SECURITY_ATTRIBUTES *sa, LPCSTR | |
/*********************************************************************** | |
* CreateEventExW (KERNEL32.@) | |
*/ | |
-HANDLE WINAPI DECLSPEC_HOTPATCH CreateEventExW( SECURITY_ATTRIBUTES *sa, LPCWSTR name, DWORD flags, DWORD access ) | |
+HANDLE WINAPI __attribute__((optimize("-O0"))) DECLSPEC_HOTPATCH CreateEventExW( SECURITY_ATTRIBUTES *sa, LPCWSTR name, DWORD flags, DWORD access ) |
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
DIR=/System/Library/CoreServices/Dock.app/Contents/Resources | |
PICS=trash*.png | |
PICS_BAK=bak | |
install: | |
mkdir -p $(PICS_BAK) | |
cp -f $(DIR)/$(PICS) $(PICS_BAK) | |
sudo cp $(PICS) $(DIR) | |
sudo killall Dock | |
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
all: | |
$(CXX) test.cc | |
clean: | |
rm -f a.out *.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
/* @pjs font="led.ttf"; */ | |
/* @pjs preload="bg_img.jpg"; */ | |
/* @pjs preload="title.png"; */ | |
/* @pjs preload="blood.png"; */ | |
/* @pjs preload="twitter.png"; */ | |
/* @pjs preload="facebook.png"; */ | |
Minim maxim; | |
AudioPlayer attack_titan; | |
AudioPlayer attack_user; |
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
use Test::More qw(no_plan); | |
use Test::Differences::Color; | |
eq_or_diff('same text', 'same text', 'test description'); | |
my @array1 = qw( | |
foo | |
bar | |
); |
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 | |
package Geometry::Primitive::Triangle; | |
use Moose; | |
use Geometry::Primitive::Point; | |
extends 'Geometry::Primitive::Polygon'; | |
has 'origin' => ( | |
is => 'rw', |
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
foo('bar', 100) | |
sub foo { | |
# $first = 'bar' | |
my $first = shift; | |
my $first = shift @_; | |
my $first = $_[0]; | |
my ($first) = @_; | |
# $first = 'bar', $second = 100; |
NewerOlder