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
(function(func){ | |
var jq = document.createElement('script'); | |
jq.src = '//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js'; | |
jq.async = 1; | |
jq.onload = function() { | |
document.body.removeChild(jq); | |
func(jQuery.noConflict(true)); | |
}; | |
document.body.appendChild(jq); | |
})(function($){ |
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 | |
/** | |
* echo のエイリアス | |
* @return void | |
*/ | |
function e($text) { | |
echo $text; | |
} |
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
(function() { | |
if (!window.Modernizr) { | |
return; | |
} | |
var ua = new String(window.navigator.userAgent.toLowerCase()); | |
ua.has = function (cond) { | |
return this.indexOf(cond) != -1; | |
}; |
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 | |
/** | |
* This is alias of the flash::next() for conbinience. | |
* @param $class | |
* @param $content | |
*/ | |
function flash($class, $content) { | |
flash::next($class, $content); | |
} |
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
let mapZenHan = () => { | |
let zen = ' 0123456789.,abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXZY!?.,’”!#$%&’()=|‘@{}[]-*+:;¥_/?.,><'.split(''); | |
let han = ' 0123456789.,abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXZY!?.,\'"!#$%&\'()=|`@{}[]-*+:;\\_/?.,><'.split(''); | |
let map = []; | |
for (let i = 0, len = src.length; i < len; i++) { | |
map.push([new RegExp(zen[i], 'g')], han[i]) | |
} | |
return map; |
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
var gulp = require('gulp'); | |
var plumber = require('gulp-plumber'); | |
var browserify = require('browserify'); | |
var source = require('vinyl-source-stream'); | |
var tsify = require('tsify'); | |
var reactify = require('reactify'); | |
gulp.task('browserify', function () { | |
return browserify({ | |
entries: [App.Src + 'scripts/app.ts'], |
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
import React from 'react'; | |
import assign from 'object-assign'; | |
export default class Ripple extends React.Component | |
{ | |
constructor(props) { | |
super(props); | |
this.canvas = null; |
OlderNewer