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 myFunction() { | |
// スプレッドシートURL | |
var sheetURL = 'スプレッドシートURL'; | |
// 書き込み先のシート | |
var sheetName = 'シート1'; | |
//スプレッドシートを開いて、シートを指定する | |
var ss = SpreadsheetApp.openByUrl(sheetURL); | |
var sheet = ss.getSheetByName(sheetName); |
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
javascript:(function(){const aNodeList=document.querySelectorAll('a');[].forEach.call(aNodeList,function(element,index){const div=document.createElement('div');div.innerHTML=element.getAttribute('href');div.style.color='#000';div.style.fontWeight='bold';div.style.borderStyle='solid';div.style.borderWidth='2px';div.style.borderColor='#000';div.style.padding='10px';div.style.background='yellow';div.style.fontSize='15px';div.style.position='absolute';div.style.zIndex='99999';div.style.display='block';element.parentNode.insertBefore(div,element.nextSibling)})})(); |
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 aNodeList = document.querySelectorAll('a'); | |
[].forEach.call(aNodeList, function(element, index) { | |
const div = document.createElement('div'); | |
div.innerHTML = element.getAttribute('href'); | |
div.style.color = '#000'; | |
div.style.fontWeight = 'bold'; | |
div.style.borderStyle = 'solid'; | |
div.style.borderWidth = '2px'; | |
div.style.borderColor = '#000'; |
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 sleep(time) { | |
const d1 = new Date(); | |
while (true) { | |
const d2 = new Date(); | |
if (d2 - d1 > time) { | |
return; | |
} | |
} | |
} |
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
// http://blog.makotoishida.com/2013/02/javascript-enter.html | |
var elements = "input"; | |
$(elements).on('keypress', function(e) { | |
var c = e.which ? e.which : e.keyCode; | |
if (c == 13) { | |
var index = $(elements).index(this); | |
$(elements + ":gt(" + index + "):first").focus(); | |
e.preventDefault(); | |
} | |
}); |
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
<!DOCTYPE html> | |
<html> | |
<body> | |
<p>See: http://www.w3schools.com/jsref/event_onload.asp</p> | |
<img src="w3javascript.gif" onload="loadImage()" width="100" height="132"> | |
<script> | |
function loadImage() { | |
alert("Image is loaded"); | |
} |
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 mocha = require('gulp-mocha'); | |
gulp.task('watch', function(){ | |
gulp.watch(['./test/test.js'], ['mocha']); | |
}); | |
gulp.task('mocha', function(){ | |
gulp.src('./test/test.js') | |
.pipe(mocha()); |
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
npm install gulp-mocha --save-dev | |
npm install intelli-espower-loader --save-dev | |
npm install power-assert --save-dev |
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
<p class="tel" x-ms-format-detection="none">XXX-XXXX-XXXX</p> |
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 Text | |
javascript:prompt('Title%20+%20URL',document.title+'%5Cn'+location.href)(); | |
// For Markdown | |
javascript:prompt('Title%20+%20URL%20For%20Markdown','['+document.title+']'+'('+location.href+')')(); | |
// For Hatena Blog embed | |
javascript:prompt('URL%20ForHatena%20Blog%20embed','['+location.href+':embed]')(); | |
// For Hatena Blog embed and cite | |
javascript:prompt('URL%20ForHatena%20Blog%20embed%20and%20cite','['+location.href+':embed:cite]')(); |
NewerOlder