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
window.mobilecheck = function() { | |
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent); | |
}; | |
var pause_video_control_src = 'http://downtonabbey.huiji.wiki/uploads/4/47/Pause.png'; | |
var play_video_control_src = 'http://downtonabbey.huiji.wiki/uploads/9/90/Play.png'; | |
var video_control_size = 80; | |
var video_control_gap = '68px'; | |
var update_toggle_button = function(){ |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Heatmap</title> | |
<script type="text/javascript" src="http://d3js.org/d3.v3.min.js"></script> | |
<script type="text/javascript" src="http://cdn.jsdelivr.net/cal-heatmap/3.3.10/cal-heatmap.min.js"></script> | |
<link rel="stylesheet" href="http://cdn.jsdelivr.net/cal-heatmap/3.3.10/cal-heatmap.css" /> | |
</head> | |
<body> |
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 DBI; | |
use File::Slurp; | |
my $dbh = DBI->connect('dbi:SQLite:dbname=weixin.db', '', ''); | |
$dbh->do(<<'SQL'); | |
CREATE TABLE IF NOT EXISTS message ( |
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
NSMutableArray *array = [NSMutableArray array]; | |
for (NSString *familyName in [UIFont familyNames]) { | |
[array addObject:familyName]; | |
for (NSString *fontName in [UIFont fontNamesForFamilyName:familyName]) { | |
[array addObject:[NSString stringWithFormat:@" %@", fontName]]; | |
} | |
} | |
NSLog(@"%@", [array componentsJoinedByString:@"\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
#import <GPUImage/GPUImage.h> | |
#import <GPUImage/GPUImageThreeInputFilter.h> | |
@interface GPUImageFourInputFilter : GPUImageThreeInputFilter | |
{ | |
GPUImageFramebuffer *fourthInputFramebuffer; | |
GLint filterFourthTextureCoordinateAttribute; | |
GLint filterInputTextureUniform4; | |
GPUImageRotationMode inputRotation4; |
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 File::Slurp; | |
use File::Copy; | |
use JSON; | |
my @lines = read_file 'IFImage/IFVideoCamera.m'; | |
my $filter_name = ""; | |
my $resource = []; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title> 送书活动 </title> | |
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.5.0/pure-min.css"> | |
<script src="http://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script> | |
</head> |
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 Crypt::Bcrypt::Easy; | |
use constant { | |
MALE => 1, | |
FEMALE => 2, | |
}; | |
my $plain = "aaa"; |
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 File::Slurp; | |
use Set::Object qw(set); | |
if (@ARGV < 2) { | |
print "Usage: $0 <source directory> <lproj directory>\n"; | |
exit 1; | |
} |
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 lua | |
local content = io.read '*a' | |
local left = false | |
local correct = function() | |
left = not left | |
if left then | |
return '「' | |
else | |
return '」' |