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 moment from 'moment' | |
export default { | |
formInputTime (val = '') { | |
let h, m, ar | |
val = val.replace(/(^\s+)|(\s+$)/g, '').replace(/\n/g, '') | |
ar = val.split(':') | |
if (ar.length === 2) { | |
h = ar[0] | |
m = ar[1] | |
} else { |
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 hoverEffect = function($dom, timerIdList) { | |
var CLASS_HOVER = "hover", | |
touthStart = (Modernizr.touch)? "touchstart" : "mouseover", | |
touthEnd = (Modernizr.touch)? "touchend" : "mouseout", | |
isAndroid = isMobile.Android(); | |
$dom.each(function(i, el){ |
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 STATE_READY = 1; | |
const STATE_PLAYING = 2; | |
const STATE_PAUSE = 3; | |
const STATE_END = 0; | |
class Timer { | |
constructor(updateFunc, sec) { | |
this.sec = sec; | |
this.updateFunc = updateFunc; | |
this.state = STATE_READY; |
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
{ | |
"remove-empty-rulesets": true, | |
"always-semicolon": true, | |
"color-case": "lower", | |
"block-indent": " ", | |
"color-shorthand": false, | |
"element-case": "lower", | |
"eof-newline": true, | |
"leading-zero": true, | |
"quotes": "double", |
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 NumberUtil = (function() { | |
"use strict"; | |
function normalize(value, minimum, maximum) { | |
return (value - minimum) / (maximum - minimum); | |
} | |
function interpolate(normValue, minimum, maximum) { |
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
// Your Client ID can be retrieved from your project in the Google | |
// Developer Console, https://console.developers.google.com | |
const CLIENT_ID = 'CHANGE_YOUR_CLIENT_ID'; | |
const SCOPES = ['CHANGE_YOUR_SCOPES']; | |
const SCRIPT_ID = 'CHANGE_YOUR_SCRIPT_ID'; | |
//callback events | |
export const COMPLETE = "complete"; | |
export const ERROR = "error"; |
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
/*! jquery.redux.js | Copyright (c) 2015 nowri | The MIT License (MIT) */ | |
(function(factory) { | |
if(typeof exports === 'object') { | |
factory(require('jquery')); | |
} else if(typeof define === 'function' && define.amd) { | |
define(['jquery'], factory); | |
} else { | |
factory(jQuery); | |
} | |
}(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
define(["lodash"], function(_){ | |
return { | |
bindActionsMithril: function(actions, store, m) { | |
var newActions = {}; | |
store.subscribe(function() { | |
m.endComputation(); | |
}); | |
_.each(actions, function(action, key){ | |
newActions[key] = function() { | |
var act; |
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 file = DriveApp.getFileById("FILE_ID_HERE");//自分がオーナーのファイル | |
var targetMail = "[email protected]"; | |
var oldMail; | |
file.setOwner(targetMail); | |
oldMail = Session.getActiveUser().getEmail(); | |
file.removeEditor(oldMail); |
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 gutil = require('gulp-util'); | |
var through = require('through2'); | |
var jade = require('react-jade'); | |
var ext = gutil.replaceExtension; | |
module.exports = function (outputFileName) { | |
function transform(file, enc, cb) { | |
var jadePath = file.path; | |
file.path = ext(file.path, '.js'); | |
if(file.isStream()){ |
NewerOlder