This file contains hidden or 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/lv.1 b/lv.1 | |
index 8a3222f..8868daf 100644 | |
--- a/lv.1 | |
+++ b/lv.1 | |
@@ -189,8 +189,8 @@ corresponding code-points, in particular, Asian charsets. | |
.br | |
.IP "-a" | |
Adjust character set for search pattern (default) | |
-.IP "-c" | |
-Allow ANSI escape sequences for text decoration (Color) |
This file contains hidden or 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/src/command.c b/src/command.c | |
index be32c95..2ca9ffa 100644 | |
--- a/src/command.c | |
+++ b/src/command.c | |
@@ -413,6 +413,14 @@ private byte *CommandFindSetPattern( file_t *f, boolean_t direction ) | |
ConsoleClearRight(); | |
istr = CommandGetLine( f, prompt ); | |
if( NULL == istr ){ | |
+#if 1 | |
+ if( NULL != f->find.pattern ){ |
This file contains hidden or 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 Plack::Middleware::Auth::Digest::Proxy; | |
use 5.008001; | |
use strict; | |
use warnings; | |
use parent qw/Plack::Middleware::Auth::Digest/; | |
use URI; | |
our $VERSION = '0.01'; | |
sub call { |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<plist version="1.0"> | |
<dict> | |
<key>--project-name</key> | |
<string>Voice Droplet</string> | |
<key>--project-company</key> | |
<string>studio aquahill</string> | |
<key>--company-id</key> | |
<string>net.aquahill</string> | |
<key>--output</key> |
This file contains hidden or 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 IO::Socket::SSL; | |
my $twitter = Net::Twitter::Lite::WithAPIv1_1->new( | |
consumer_key => $config->{consumer_key}, | |
consumer_secret => $config->{consumer_secret}, | |
access_token => $config->{access_token}, | |
access_token_secret => $config->{access_token_secret}, | |
apiurl => "https://api.twitter.com/1.1", | |
useragent_args => { |
This file contains hidden or 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
- (void) run { | |
UIImage *img = [UIImage imageNamed: @"SampleImage@2x"]; | |
for( int i = 0; i< 40; i++ ){ | |
CGFloat degree = i * 4.5f; | |
NSString *dirName = @"/Users/john/Desktop"; | |
NSString *fileName = [NSString stringWithFormat: @"%@/IconAnim%[email protected]", dirName, i]; | |
NSData *data = [self rotate: img withDegree: degree]; | |
if( [data writeToFile: fileName atomically: YES] == YES ){ |
This file contains hidden or 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
# cpanm Plack CGI::Compile CGI::Emulate::PSGI | |
# vi htdocs/mysqltool.conf | |
# plackup ./mysqltool.psgi | |
use strict; | |
use warnings; | |
use lib qw(lib); | |
use CGI::Compile; | |
use CGI::Emulate::PSGI; |
This file contains hidden or 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 myproject | |
/* | |
via http://codereview.stackexchange.com/questions/26707/pipeline-operator-in-scala | |
usage: | |
import myproject.operator.pipeline | |
val f = (x: Int) => x * 2 | |
5 |> f |> f | |
*/ |
This file contains hidden or 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
source_dir = '/app/myproject' | |
rsnapshot_dir = '/mnt/rsnapshot' | |
set :output, "#{rsnapshot_dir}/cron.log" | |
set :job_template, 'root :job' | |
nice = '/bin/nice -15' | |
every 1.hour, at: '00:10' do | |
command "#{nice} /usr/bin/rsnapshot sync && #{nice} /usr/bin/rsnapshot hourly" |
This file contains hidden or 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
settings { | |
logfile = "/var/log/lsyncd.log", | |
statusFile = "/tmp/lsyncd.status", | |
maxDelays = 1, | |
} | |
sync { | |
default.rsync, | |
source = "/app/myproject/", | |
target = "/mnt/rsnapshot/current/app/myproject/", |