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 -w | |
use strict; | |
=head2 permute($arrayref) | |
Gives all permutations of a given set of elements. Stolen straight out of B. Heap's HeapPermute algorithm. | |
$ fxpr 'permute [0..1]' | |
[ 0 1 ] | |
[ 1 0 ] |
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
--- hover_zoom-5.7_0/js/background.js.orig 2015-03-16 00:57:39.641351085 -0500 | |
+++ hover_zoom-5.7_0/js/background.js 2015-03-26 09:17:53.562204063 -0500 | |
@@ -79,11 +79,12 @@ | |
}); | |
}); | |
break; | |
- case 'trackEvent': | |
- if (options.enableStats && _gaq) { | |
- _gaq.push(['_trackEvent', message.event.category, message.event.action, message.event.label]); | |
- } |
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
/** | |
* Generate a random alphanumeric password | |
* precondition: len must be <= 32 | |
* param len: length of the random password | |
* param enforce_rules: enforce password security rules | |
* returns: the random password | |
**/ | |
public static function generateRandomPassword($len=8, $enforce_rules = false) | |
{ | |
$count = 0; |
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 -ru vidalia-0.2.15.orig/src/vidalia/MainWindow.ui vidalia-0.2.15/src/vidalia/MainWindow.ui | |
--- vidalia-0.2.15.orig/src/vidalia/MainWindow.ui 2011-10-07 14:16:56.000000000 -0500 | |
+++ vidalia-0.2.15/src/vidalia/MainWindow.ui 2012-02-14 13:29:55.000000000 -0600 | |
@@ -12,7 +12,7 @@ | |
<property name="maximumSize" > | |
<size> | |
<width>16777215</width> | |
- <height>1</height> | |
+ <height>0</height> | |
</size> |
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 -ru elinks.orig/src/scripting/ruby/core.c elinks/src/scripting/ruby/core.c | |
--- elinks.orig/src/scripting/ruby/core.c 2009-12-04 21:47:38.000000000 -0600 | |
+++ elinks/src/scripting/ruby/core.c 2009-12-04 21:41:43.000000000 -0600 | |
@@ -76,10 +76,10 @@ | |
break; | |
case TAG_RAISE: | |
case TAG_FATAL: | |
- eclass = CLASS_OF(ruby_errinfo); | |
- einfo = rb_obj_as_string(ruby_errinfo); | |
+ eclass = CLASS_OF(rb_errinfo); |
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
This patch fixes the following error in rapidsvn-0.12.0-1 when compiling against wxWidgets without 2.6 compatibility enabled: | |
preferences_dlg.cpp: In member function 'bool PreferencesDlg::SelectExecutable(const wxString&, wxTextCtrl*)': | |
preferences_dlg.cpp:129:41: error: 'wxOPEN' was not declared in this scope | |
listener.cpp: In member function 'void Listener::Data::callbackSslClientCertPrompt()': | |
listener.cpp:170:44: error: 'wxOPEN' was not declared in this scope | |
listener.cpp:170:53: error: 'wxFILE_MUST_EXIST' was not declared in this scope | |
diff -ru rapidsvn-0.12.0-1.orig/src/listener.cpp rapidsvn-0.12.0-1/src/listener.cpp | |
--- rapidsvn-0.12.0-1.orig/src/listener.cpp 2009-10-20 01:49:10.000000000 -0500 |
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
▗▄▄▄▄▄▄▄▟▄▄▄▄▄▄ | |
▐██████████████████▙▄▄ | |
███████████████████████▄ | |
▐████████████████████████▌ | |
██████████████████████████ | |
▐██████████████████████████▌ | |
███████████████████████████▌ | |
▗███████████████████████████▀ | |
▟███████████████████████████████████▄▄▖ | |
▐████████████████████████████████████████▄ |
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 -w | |
use strict; | |
use Getopt::Std qw/ getopts /; | |
sub HELP_MESSAGE { | |
my $fh = shift || *STDOUT; | |
print $fh qq% | |
Usage: $0 IMG_IN IMG_OUT | |
Cause deliberate errors in an image file (or any file). |
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
// GistID: c61ccc4fe17d876defa7 | |
#include <iostream> | |
#include <fstream> | |
#include <vector> | |
#include <math.h> | |
#include <algorithm> | |
using namespace std; | |
template <typename 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
Blues and Bullets - Anachronisms & Historical Inaccuracies | |
Chapter 2: | |
(~1950-1957) | |
- Black guy comes into diner and sits down (diners were segregated until 1964) | |
(~1930-1937 - "20 years earlier") | |
- Ness drinks from bottle of liquor (Prohibition in full effect, the real Ness | |
didn't drink until after prohibition ended) |
OlderNewer