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
| name: Action Sample | |
| on: | |
| push: | |
| branches: | |
| - master | |
| workflow_dispatch: | |
| jobs: | |
| job_id: |
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
| const bubbleSort = (arr) => { | |
| let len = arr.length - 1; | |
| let isSorted = true; | |
| for (let i = 0; i < len; i++) { | |
| for (let j = 0; j < len - i; j++) { | |
| if (arr[j] > arr[j + 1]) { | |
| const tmp = arr[j]; | |
| arr[j] = arr[j + 1]; | |
| arr[j + 1] = tmp; |
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
| version: "3" | |
| services: | |
| database: | |
| image: mysql:5.7 | |
| restart: always | |
| environment: | |
| MYSQL_DATABASE: wp | |
| MYSQL_USER: root | |
| MYSQL_PASSWORD: pass | |
| MYSQL_ROOT_PASSWORD: pass |
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
| const chromeLauncher = require('chrome-launcher'); | |
| const CDP = require('chrome-remote-interface'); | |
| (async function() { | |
| async function launchChrome() { | |
| return await chromeLauncher.launch({ | |
| chromeFlags: [ | |
| '--disable-gpu' | |
| //,'--headless' | |
| ] |
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
| $ git clone https://github.com/graphcool/chromeless.git | |
| $ cd chromeless/serverless | |
| $ npm install |
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
| <!DOCTYPE html> | |
| <html lang="ja"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> | |
| <style> | |
| section { | |
| text-align: center; | |
| } |
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($, undefined) { | |
| "use strict"; | |
| $.fn.bottomPosition = function() { | |
| console.log('offset.top:'+ this.offset().top); | |
| console.log('outerHeight:'+ this.outerHeight()); | |
| return this.offset().top + this.outerHeight(); | |
| }; | |
| })(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
| <!DOCTYPE html> | |
| <html lang="ja"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Compare</title> | |
| <script src="https://code.jquery.com/jquery-2.2.4.min.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.pjax/1.9.6/jquery.pjax.js"></script> | |
| </head> | |
| <body> | |
| <header> |
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 scrollMenu(){ | |
| //初期設定(position設定など) | |
| var breakpoint = 200, | |
| $(window).resize(onResize); | |
| $(window).scroll(onScroll); | |
| function setBreakpoint(){ | |
| //resize時の処理 | |
| } |
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
| //ankhオブジェクトの作成 | |
| var ankh = new Object(); | |
| //カルーセル | |
| ankh.carousel = { | |
| _target: '.carousel', //モジュール全体で使うカルーセル化する対象セレクタ | |
| load: function(){ |
NewerOlder