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
COUNT=0 | |
DISPLAY_HEIGHT=2180 | |
DISPLAY_WIDTH=3840 | |
WINDOW_WIDTH=1920 | |
WINDOW_HEIGHT=1080 | |
R=300 | |
CX=`expr $DISPLAY_WIDTH / 2 - $WINDOW_WIDTH / 2` | |
CY=`expr $DISPLAY_HEIGHT / 2 - $WINDOW_HEIGHT / 2` | |
while true; | |
do |
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 | |
// レガシーないいわけ | |
// ひょっとしてcurlない環境でも動けるようにfile_get_contentsベースにしてみる | |
// 古めのPHPでも動くよう配慮してみる | |
if (count($argv) === 1) { | |
echo '第一引数にapi keyを渡してね'; | |
die(); | |
} | |
function apiCall($url){ |
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 | |
$max_animate_count = 10; | |
function e($s) | |
{ | |
echo htmlspecialchars($s); | |
} | |
?> | |
<html> |
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
(()=> { | |
let result = []; | |
let complete_count =0; | |
let crawlPage = (page_document) => { | |
Array.from( | |
page_document.querySelectorAll('.a-color-secondary.value') | |
).map((el) =>{ | |
// 自分で確認したパターンだと3-7-7のみ、他のパターンあるかも | |
if (el.textContent.match(/\d{3}-\d{7}-\d{7}/)) { |
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 calendar() | |
{ | |
$cal = []; | |
foreach (range(0, 6) as $add) { | |
$m = Carbon::parse(date('Y-m-01'))->addMonth($add); | |
$ym = $m->format('Y年m月'); | |
foreach (range(0, $m->format('t')-1) as $addd) { | |
$date = $m->copy()->addDay($addd); | |
$w = $date->format('w'); | |
$W = $date->format('W'); |
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 | |
protected static function boot() | |
{ | |
parent::boot(); | |
self::saving(function($me){ | |
$columns = array_flip(\Schema::getColumnListing($me->getTable())); | |
foreach($me->attributes as $key => $val) { | |
if (!isset($columns[$key])) { | |
Schema::table($me->getTable(), function (Blueprint $table) use($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
Aardvark | |
Albatross | |
Alligator | |
Alpaca[10] | |
Ant | |
Anteater | |
Antelope | |
Ape | |
Armadillo | |
Ass/donkey |
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 | |
return [ | |
'allow' => [ | |
'/iframe-contents', // "http://example.com/iframe-content" can embeded other website | |
'/iframe-contents/*' // You can use wildcard | |
], | |
'sameorigin' => [ | |
'/my-iframe-contents', // "http://example.com/my-iframecontents" can embeded same origin website | |
], | |
]; |
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
スーパーマリオ64(任天堂) | |
パイロットウイングス64(任天堂) | |
最強羽生将棋(セタ) | |
ウェーブレース64(任天堂) | |
ワンダープロジェクトJ2 コルロの森のジョゼット(エニックス、コントローラーパック同梱) | |
栄光のセントアンドリュース(セタ) | |
マリオカート64(任天堂、コントローラー・グレー&ブラック同梱)★ | |
超空間ナイター プロ野球キング(イマジニア) | |
実況Jリーグ パーフェクトストライカー(コナミ) | |
麻雀MASTER(コナミ) |
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
エクセリオン(ジャレコ、192K)★ | |
ギャラガ(ナムコ、192K)★[C] | |
ファミリーベーシックV3(任天堂) | |
バンゲリングベイ(ハドソン) | |
フォーメーションZ(ジャレコ、192K)★ | |
スペースインベーダー(タイトー) | |
チャンピオンシップロードランナー(ハドソン)★ | |
イー・アル・カンフー(コナミ、192K)★[C] | |
けっきょく南極大冒険(コナミ、192K)★ | |
忍者くん 魔城の冒険(ジャレコ、192K )★ |
NewerOlder