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
(function ($) { | |
var venderApis = { | |
'fullscreenEnabled': { | |
request: 'requestFullscreen' | |
, exit: 'exitFullscreen' | |
, element: 'fullscreenElement' | |
} | |
, 'mozFullScreenEnabled': { | |
request: 'mozRequestFullScreen' |
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 | |
1 // <<X; | |
/* | |
X | |
use strict; | |
use warnings; | |
use 5.10.0; | |
# # # # # # # # # # # # # # # # # # # # # # # # # # # # | |
# perl and node dual executable script. # |
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; | |
use 5.10.0; | |
# # # # # # # # # # # # # # # # # # # # # # # # # # # # | |
# perl and coffee dual executable script. # | |
# for perl, take care no triple hash mark in script. # | |
# # # # # # # # # # # # # # # # # # # # # # # # # # # # |
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>Border-radius</title> | |
<style> | |
.br { max-width: 400px; height: 40px; background: #abc; margin: 5px; padding: 10px; border: 1px solid #789; } | |
</style> | |
</head> | |
<body> | |
<div class="br" style="-webkit-border-radius: 20px 0 0 0; ">-webkit-border-radius: 20px 0 0 0; </div> |
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 $diff = `git diff --cached`; | |
if ( my ( $ng_word ) = $diff =~ /^\+.*(Dumper|STDERR|alert|console\.log)/m ) { | |
print STDERR <<"ABORT"; | |
Bad word '$ng_word' was found. git commit was aborted! | |
If you believe this commit is OK, use git commit --no-verify to skip this hook. | |
ABORT | |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>LESS PAD</title> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> | |
<script src="http://lesscss.googlecode.com/files/less-1.1.5.min.js"></script> | |
<script> | |
$( function () { | |
var parser = new window.less.Parser(); | |
var parse = 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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
BEGIN { | |
unshift @INC, '../lib'; | |
} | |
use Sound::NeSynth; |
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
AF => Activity Feed | |
AN => Atom Nonce | |
AS => Auto Save | |
BU => Back Up | |
CA => CaptchA | |
CC => Category Cache | |
CO => Cache Object | |
CR => Commenter Registration | |
CS => Cached Search? |
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
var re_mtignore_start = RegExp('^<m' + 't:?ignore>', 'i'); | |
var re_mtignore_end = RegExp('</m' + 't:?ignore[^>]*?>', 'i'); | |
var re_mttag_start = RegExp('^<[/$]?m' + 't:?[\\w:]+', 'i'); | |
var re_mttag_end = RegExp('^[-/$]*?>', 'i'); | |
var re_mttag_attr = RegExp('^[\\w:]+\\s*=\\s*'); | |
var re_mttag_name = RegExp('^[\\w:]+'); | |
var re_mttag_vatom = '(<[^>]+?>|"(<[^>]+?>|.)*?"|\'(<[^>]+?>|.)*?\'|\\w+)' | |
var re_mttag_value = RegExp('^' + re_mttag_vatom + '([:,]' + re_mttag_vatom + ')*' ); | |
CodeMirror.defineMode("mtml", function(config, parserConfig) { |
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
<mt:setvar name="foo" value="a,b,c,d,e"> | |
<mt:setvar name="bar" value="",""> | |
<mt:if test="@$bar = split(',', $foo)"></mt:if> | |
<mt:loop name="bar" glue=" + "><mt:var name="__value__"></mt:loop> |