React: Unexpected use of 'location';
Solution: Use window.location
instead of bare location
.
React: Unexpected use of 'location';
Solution: Use window.location
instead of bare location
.
/** | |
* Get YouTube ID from various YouTube URL | |
* @author: takien | |
* @url: http://takien.com | |
* For PHP YouTube parser, go here http://takien.com/864 | |
*/ | |
function YouTubeGetID(url){ | |
var ID = ''; | |
url = url.replace(/(>|<)/gi,'').split(/(vi\/|v=|\/v\/|youtu\.be\/|\/embed\/)/); |
TypeScript and Playground練習問題集更新情報
WIP
#!/usr/bin/env ruby -w | |
# pnginator.rb: pack a .js file into a PNG image with an HTML payload; | |
# when saved with an .html extension and opened in a browser, the HTML extracts and executes | |
# the javascript. | |
# Usage: ruby pnginator.rb input.js output.png.html | |
# By Gasman <http://matt.west.co.tt/> | |
# from an original idea by Daeken: http://daeken.com/superpacking-js-demos |
この文章は、日経BP社から出版されている「HTML5ゲーム開発の極意」の付録PDFを元に、参照しやすいようmarkdown形式に書き起こした、個人的メモです。
#!/usr/bin/env ruby | |
# Input: WordPress XML export file. | |
# Outputs: a series of Markdown files ready to be included in a Jekyll site, | |
# and comments.yml which contains all approved comments with metadata which | |
# can be used for a Disqus import. | |
# Changes from the original gist: http://gist.github.com/268428 | |
# 1. Handles titles containing special characters. Those have to be YAML escaped | |
# 2. Use the original permalinks in wordpress. |
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<title>Javaによる開発の流れ</title> | |
<script type="text/template" id="content1"> | |
<!--================================================================== | |
↓ここからmarkdownを記述します | |
====================================================================--> | |
# Javaによる開発の流れ |
// https://www.youtube.com/watch?v=H8UqnTE3mUY より引用 | |
#define A for(int i=0;i<9;++i){int y=p>>((p>>19)+i&3),z=p*((878086607>>(i&7)*4)&15)*(510+1%5)>>14;if((p>>15&1<<(i&15))>0)s.y+=float(((y>>7&z*3|y>>11&z*6)&1023)-512)/3e4;} | |
vec2 mainSound(float t){int p=int(t*144e3);vec2 s;A;s.yx=s;p-=65536;A;return s*mat2(7,1,5,-3);} |
(function() { | |
'use strict'; | |
var script = document.currentScript; | |
var pluginName = script.src.replace(/^.*\/(.*).js$/, function() { | |
return arguments[1]; | |
}); | |
console.log(pluginName); | |
})(); |