更新: | 2024-05-20 |
---|---|
作者: | @voluntas |
バージョン: | 2024.1 |
URL: | https://voluntas.github.io/ |
This file contains hidden or 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 System.Random (RandomGen, getStdGen, randoms) | |
import Control.Concurrent (threadDelay) | |
import System.Process (callCommand) | |
import Data.List.Split (chunksOf) | |
import Data.Maybe (fromMaybe) | |
type Cell = Bool | |
type CellTable = [[Cell]] | |
type Score = Int | |
type Pos = (Int, Int) |
This file contains hidden or 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
<script type="text/javascript"> | |
function loadIframelyEmbedJs() { | |
// Replace 'iframe.ly' with your custom CDN if available. | |
if (document.querySelectorAll("[data-iframely-url]").length === 0 | |
&& document.querySelectorAll("iframe[src*='iframe.ly']").length === 0) return; | |
var iframely = window.iframely = window.iframely || {}; | |
if (iframely.load) { | |
iframely.load(); | |
} else { | |
var ifs = document.createElement('script'); ifs.type = 'text/javascript'; ifs.async = true; |
This file contains hidden or 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 p = console.log.bind(console); | |
var q = require('readline-sync').question; | |
var gcd = (a, b) => !b ? a : gcd(b, a % b); | |
var r = () => Math.floor(Math.random()*9)+1 | |
var i = 1; | |
for(;;) { | |
var x = r(); | |
var y = r(); | |
var df = x % y === 0; | |
if(df) continue; |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft
,elem.offsetTop
,elem.offsetWidth
,elem.offsetHeight
,elem.offsetParent
#Misskey API リファレンス(Unofficial)
##最初に
このAPIリファレンスは非公式だし、書きかけです。
使用する際には自己責任でお願いします。
あとAPIがちゃんと使えるかどうかは確認してません。
Authorizeを除いてパラメータは必須と書いていない物以外はすべて任意です
##参考までに
This file contains hidden or 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 uniqueArray = function(arrArg) { | |
return arrArg.filter(function(elem, pos,arr) { | |
return arr.indexOf(elem) == pos; | |
}); | |
}; | |
var uniqEs6 = (arrArg) => { | |
return arrArg.filter((elem, pos, arr) => { | |
return arr.indexOf(elem) == pos; | |
}); |
This file contains hidden or 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 flattenTco = ([first, ...rest], accumulator) => | |
(first === undefined) | |
? accumulator | |
: (Array.isArray(first)) | |
? flattenTco([...first, ...rest]) | |
: flattenTco(rest, accumulator.concat(first)) | |
const flatten = (n) => flattenTco(n, []); | |
console.log(flatten([[1,[2,[[3]]]],4,[5,[[[6]]]]])) |
This file contains hidden or 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
━お名前.combyGMO━━━━━━━━━━━━━━━━━━━━━━━━ | |
━━━━━━━━━━ドメイン公式登録サービス━━━━━━━━━━━━ | |
━━━━━━━━━━━━━━━━━━━━━━http://www.onamae.com/━ | |
平素は、お名前.comをご利用いただき、まことにありがとうございます。 | |
属性型.soドメインを含む.soドメインについて、ソマリア政府の方針変更に | |
伴い上位機関及び上位機関での運用方針が変更されることが判明しました。 | |
2015年7月8日に上位機関の変更が行われる予定となり、あわせてドメイン登録 | |
方針が変更され、最終的にソマリア国内のみでの登録受付となる見通しです。 |
This file contains hidden or 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
nuget install redis-64 -excludeversion | |
redis-64\redis-server.exe --service-install | |
redis-64\redis-server.exe --service-start |