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 src = 'https://html2canvas.hertzen.com/dist/html2canvas.min.js'; | |
const script = document.createElement('script'); | |
script.type = 'text/javascript'; | |
script.src = src; | |
script.onload = () => { | |
html2canvas(document.body).then((canvas) => { | |
const imgageData = canvas.toDataURL('image/png'); | |
const el = document.createElement('a'); | |
el.setAttribute('href', imgageData.replace(/^data:image\/png/, 'data:application/octet-stream')); |
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
package main | |
import ( | |
"testing" | |
"time" | |
"golang.org/x/time/rate" | |
) | |
func Benchmark_1(b *testing.B) { |
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(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){ | |
(function() { | |
'use strict'; | |
vis = require('vis'); | |
uuid = require('uuid'); | |
console.log('script start'); | |
const visNodes = new vis.DataSet(); | |
const visEdges = new vis.DataSet(); | |
const elems = []; |
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
package main | |
import ( | |
"fmt" | |
"golang.org/x/xerrors" | |
) | |
type printer struct { | |
values []string |
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() { const w = window.open(); const el = w.document.createElement("textarea"); const v = Array.from(document.querySelectorAll("td.p6n-apiui-uri-col")).map(item => item.innerText).filter(url => url.includes("callback")).sort().join("\n"); el.value = v; w.document.body.appendChild(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 copyToClipboard = s => { | |
const el = document.createElement("textarea"); | |
el.value = s; | |
document.body.appendChild(el); | |
el.select(); | |
document.execCommand("copy"); | |
document.body.removeChild(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
// https://play.golang.org/p/vJ4sqXFjSTi | |
// golang でカプセル化するサンプル。 | |
// 関数の返り値にstructを使う必要があるのか検討するために作成 | |
package main | |
import "fmt" | |
func main() { | |
o := New(10) |
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
package main | |
import "fmt" | |
func main() { | |
fmt.Println("Hello, 世界") | |
o := New(10) | |
PrintUse(o) | |
PrintOrigin(o) | |
o.SetFirst(11) |
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
package main | |
import "fmt" | |
func main() { | |
fmt.Println("Hello, 世界") | |
o := New(10) | |
PrintUse(o) | |
PrintOrigin(o) | |
o.SetFirst(11) |
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
package main | |
import "fmt" | |
func main() { | |
fmt.Println("Hello, 世界") | |
o := New(10) | |
PrintUse(o) | |
PrintOrigin(o) | |
o.SetFirst(11) |
NewerOlder