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
<?php require 'vendor/autoload.php'; | |
use Goutte\Client; | |
use GuzzleHttp\Client as GuzzleClient; | |
$client = new Client(); | |
$client->setClient(new GuzzleClient(array( | |
'timeout' => 60, | |
'debug' => true, | |
))); |
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
## host | |
localhost:9090 | |
## log access and errors to console | |
errors stderr | |
log stdout | |
## if need for https | |
## openssl req -new -newkey rsa:2048 -sha256 -days 365 -nodes -x509 -keyout cert.key -out cert.crt | |
#tls cert.crt cert.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
<?php | |
namespace Jobs; | |
use Illuminate\Queue\InteractsWithQueue; | |
use Illuminate\Redis\Database as Redis; | |
class Foo extends Job | |
{ | |
use InteractsWithQueue; |
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
<?php | |
namespace App\Entities\Fields; | |
use App\Entities\Fields\DateTime as DateTimeField; | |
class Date extends DateTimeField | |
{ | |
/** |
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
#!/usr/bin/php | |
<?php | |
$descriptorspec = [ | |
0 => ['pipe', 'r'], // stdin | |
1 => ['file', 'php://stdout', 'w'], // stdout | |
2 => ['file', 'php://stderr', 'a'], // stderr | |
]; | |
$kakasi = 'kakasi -i euc -w | kakasi -i euc -Ha -Ka -Ja -Ea -ka'; |
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
.post_image .imagecontainer{ | |
margin: 0 auto; | |
background:#fff; | |
cursor:pointer; | |
} | |
.tag-nsfw .imagecontainer img{ | |
opacity:0.1 | |
} | |
.tag-nsfw .imagecontainer:hover img { | |
opacity:1.0 |
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
(function($){ | |
$(function(){ | |
var eng = true; | |
$('tr.header').siblings().each(function(){ | |
var row = $(this); | |
if(row.attr('class').split(' ').length > 1){ | |
eng = row.hasClass('lang_English'); | |
} | |
if(!eng) row.hide(); | |
}); |
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
(function() { | |
if (location.href.indexOf("http://www.nicovideo.jp/watch/")!=-1) { | |
// find "watch/smXXX" style URI | |
$link = $('link').find('[rel=canonical]'); | |
origURI = $link.length ? $link.attr('href') : window.location.href; | |
// find title | |
var $title = jQuery('.videoHeaderTitle'); | |
// collect file information |
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
//beforeall | |
;(function($) { | |
if (typeof jQuery.fn.socialbutton === 'undefined'){ | |
$.fn.extend({ | |
socialbutton: function(type, options) { | |
return $(this); | |
} | |
}); | |
} | |
})(jQuery); |
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
#!/usr/bin/php -Cq | |
<?php | |
$dir = isset($argv[1]) ? $argv[1] : __DIR__; | |
$skip = isset($argv[2]) ? intval($argv[2]) : 0; | |
$count = 0; | |
if(is_dir($dir)){ | |
echo "Dir: {$dir}\n"; | |
echo "Skip: {$skip} files\n"; | |
class IgnorantRecursiveDirectoryIterator extends RecursiveDirectoryIterator { |
NewerOlder