Skip to content

Instantly share code, notes, and snippets.

@rirufa
rirufa / fez_war_download.js
Last active August 29, 2015 14:20
FEZ SNSの戦争データを集める
var FezWarData = (function(){
function FezWarData(){
}
FezWarData.prototype.result = "";
FezWarData.prototype.fetchRecords = function(record_list_url){
console.log(record_list_url);
var d = new $.Deferred();
##flow
1.get crystal.construct oblisk to front line
2.next few minutes,battle enemy,go to other crystal
3.in some cases, summon warth or knight etc. construct obelisk
please see "how to construct obelisk" or "battle enemy"
please left crystal to a friend.because enemy left three crystal when you is die.
##how to construct obelisk
construct oblisk to front line.
###how to draw front line
@rirufa
rirufa / add_user.js
Last active October 9, 2020 09:44
twitterのDMグループにユーザーをまとめて追加する奴
getElementsByXPath = function(expression, parentElement) {
var r = []
var x = document.evaluate(expression, parentElement || document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null)
for (var i = 0, l = x.snapshotLength; i < l; i++) {
r.push(x.snapshotItem(i))
}
return r
}
//ここにユーザーネームを追加する
@rirufa
rirufa / get_tsv_from_yahoo.ps1
Created October 12, 2020 12:38
Yahoo株価の時系列からTSVを取得する
[void][Reflection.Assembly]::LoadFile("C:\edgedriver_win32\Selenium.WebDriver.4.0.0-alpha05\lib\net47\WebDriver.dll") #DLL読み込み
$msedge = "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" #Edge本体のパス
$msedgedriverDir = "C:\edgedriver_win32" #Edge Driverがあるフォルダのパス
$msedgedriverExe = "msedgedriver.exe" #Edge Driver名
$edgeOptions = New-Object OpenQA.Selenium.Edge.EdgeOptions
$edgeOptions.UseChromium = $true
$edgeOptions.BinaryLocation = $msedge
$service = [OpenQA.Selenium.Edge.EdgeDriverService]::CreateChromiumService($msedgedriverDir, $msedgedriverExe)
$service.EnableVerboseLogging = $false