このgistはサクラサクマーケティング株式会社のエンジニア採用のgistです。下記の感じと、別gistにある企業理念などをお読みの上、興味がある方はぜひご連絡ください!
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
| //Portalタグのサンプル | |
| //Chrome Canary でフラグをオン(chrome://flags/#enable-portals) | |
| //Console で以下のスクリプトを実行 | |
| portal = document.createElement("portal"); | |
| portal.src = "https://www.yahoo.co.jp/"; | |
| portal.style = "position: fixed; width: 100%; height: 100%; opacity: 1; box-shadow: 0 0 20px 10px #999; transform: scale(0.4); transform-origin: bottom left; bottom: 20px; left: 20px;"; | |
| document.body.appendChild(portal); | |
| //飛ばすにはこのコマンド | |
| portal.activate(); |
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
| //wp-config.php にマルチサイトで指定されたものプラスで下記追加 | |
| $base = 'subfolder'; | |
| if (isset($_SERVER['HTTP_X_FORWARDED_HOST'])) { | |
| $_SERVER['HTTP_HOST'] = $_SERVER['HTTP_X_FORWARDED_HOST']; | |
| } |
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
| sudo yum install epel-release | |
| wget https://dl.eff.org/certbot-auto | |
| chmod a+x certbot-auto | |
| ./certbot-auto |
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 | |
| $merge = [1,2,3]; | |
| $range = range(1,30000,5000); | |
| //Testing array_merge | |
| foreach ($range as $max) { | |
| $t = []; | |
| $num = range(1,$max); | |
| $ts = microtime(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
| <?php | |
| executeTest(); | |
| function executeTest() { | |
| //loop num. | |
| $tryLoop = 100000000; | |
| //init | |
| $a = 0; | |
| $b = 1; | |
| $c = 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
| Mozilla/5.0 (iPhone; CPU iPhone OS 9_3_2 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13F69 Safari/601.1 |
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
| window = Ti.Ui.createWindow(); | |
| var setLoading = function(){ | |
| //Loading view. | |
| var svg = '<body style="padding:0px;margin:0px;"><svg style="margin:0px;padding:0px;" width="64px" height="64px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid" class="uil-squares"><rect x="0" y="0" width="100" height="100" fill="none" class="bk"></rect><rect x="15" y="15" width="20" height="20" fill="#cccccc" class="sq"><animate attributeName="fill" from="#cccccc" to="#ffffff" repeatCount="indefinite" dur="1s" begin="0.0s" values="#ffffff;#ffffff;#cccccc;#cccccc" keyTimes="0;0.1;0.2;1"></animate></rect><rect x="40" y="15" width="20" height="20" fill="#cccccc" class="sq"><animate attributeName="fill" from="#cccccc" to="#ffffff" repeatCount="indefinite" dur="1s" begin="0.125s" values="#ffffff;#ffffff;#cccccc;#cccccc" keyTimes="0;0.1;0.2;1"></animate></rect><rect x="65" y="15" width="20" height="20" fill="#cccccc" class="sq"><animate attributeName="fill" from="#cccccc" to="#ffffff" repeatCount= |
NewerOlder