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 | |
| function prev_life($count){ | |
| $life = ""; | |
| for ($i=0; $i < $count; $i++) { | |
| $life .= "前"; | |
| } | |
| return $life; | |
| } |
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 Utilitys; | |
| class Response | |
| { | |
| private static $instance; | |
| /** | |
| * getInstance | |
| * |
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
| .spotlight{ | |
| position: absolute; | |
| left: 0; | |
| top : 0; | |
| width: 100vw; | |
| height: 100vh; | |
| background: radial-gradient(transparent, transparent 100px, rgba(0,0,0,0.4) 100px, rgba(0,0,0,0.4)); |
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 $ = e=>document.querySelector(e); | |
| const webview = $("webview"); | |
| webview.addEventListener("did-stop-loading", ()=>{ | |
| webview.executeJavaScript( | |
| `color:{$("#col_channels_bg").css("backgroundColor")}`, | |
| false, | |
| function(color){ | |
| console.log(color); // rgb(100, 100, 100); | |
| // 決してcolor.colorではなく、colorでアクセスすることになるので注意 | |
| } |
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 createWindow () { | |
| // Create the browser window. | |
| --- mainWindow = new BrowserWindow({width: 800, height: 600}) | |
| +++ mainWindow = new BrowserWindow({titleBarStyle: 'hidden',width: 800, height: 600}) |
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
| import Vue from 'vue' | |
| import Greeting from 'src/components/Greeting.vue' | |
| function getInstance (Component, propsData) { | |
| const Ctor = Vue.extend(Component) | |
| const vm = new Ctor({ propsData }).$mount() | |
| return vm | |
| } | |
| describe('Greeting.vue', () => { |
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
| javascript:document.querySelectorAll(`#suggest-supports-of-friend-companies-form .support-project-title.with_avatar > input[type="checkbox"]`).forEach(e=>e.click()); |
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 dialog = require('electron').dialog; | |
| const OauthTwitter = require('electron-oauth-twitter'); | |
| const twitter = new OauthTwitter({ | |
| key : "YOUR_TWITTER_KEY", | |
| secret: "YOUR_TWITTER_SECRET", | |
| }); | |
| twitter.startRequest() |
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
| alias http="open http://0.0.0.0:8080 & php -S 0.0.0.0:8080" |
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
| Array(20).fill(0).map((_,i)=>i?((!(i%3)?"Fizz":'')+(!(i%5)?"Buzz":''))||i:0) |