javascript:(function(d,s){s=d.createElement('script');s.src='https://cdn.rawgit.com/ba0918/60f7acb191b7560d75d1/raw/ca8e72117b4cae98065e5f4abb641c998d6d0f80/test.js';d.body.appendChild(s);})(document);
This file contains 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 puppeteer = require("puppeteer"); | |
const URL = | |
"https://docs.google.com/document/d/1VsNgXtlCBIhaDBXh5AFBczz-Yn5akh2dERMcksuUJIQ/"; | |
async function getGameUrlsFrom(pageURL) { | |
const browser = await puppeteer.launch(); | |
try { | |
const page = await browser.newPage(); | |
await page.goto(pageURL); |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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 | |
class UrlDomainValidator | |
{ | |
protected $domains = []; | |
public function __construct(array $domains = []) | |
{ | |
$this->domains = $domains; | |
} |
以下を参考に進める予定
最近だとRPMパッケージが提供されているのでそっちを使った方が楽らしい(CentOS6以上)
This file contains 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
default[:python][:versions] = ['2.7.6', '3.2.5', '3.3.5'] | |
default[:python][:use_version] = '2.7.6' |
This file contains 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
module.exports = (grunt) -> | |
grunt.loadNpmTasks 'grunt-typescript' | |
grunt.loadNpmTasks 'grunt-browserify' | |
grunt.loadNpmTasks 'grunt-clean-contrib' | |
grunt.initConfig | |
typescript: | |
app: | |
src: ['src/**/*.ts'] | |
options: | |
module: 'commonjs' |
This file contains 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
for n in [0..100] | |
if n % 15 == 0 then console.log 'fizzbuzz' | |
else if n % 3 == 0 then console.log 'fizz' | |
else if n % 5 == 0 then console.log 'buzz' | |
else console.log n |
This file contains 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
EventEmitter = require('events').EventEmitter | |
WebSocketServer = require('ws').Server | |
WebSocketClient = require 'ws' | |
class ChatServer | |
constructor: -> | |
@server = new WebSocketServer { port: 80 } | |
@server.on 'connection', @onConnection | |
console.log "started server." |