Skip to content

Instantly share code, notes, and snippets.

https://www.google.co.jp/search?q=美容室
&ie=utf-8&oe=utf-8&client=firefox-b&ei=WO3PWubtPMyQ8QeshqiADw
&gfe_rd=cr&dcr=0
near=osaka
一部しか変わらない。
関連する検索キーワード は地域次第で変わる
「東京都, 日本 - 検索履歴から」 or 元の地域
gfe_rd=cr
無くても変わらない
@7cc
7cc / developer-tools-functions.js
Last active September 11, 2019 18:52
developer tools functions
var $ = (selector)=> document.querySelector(selector)
var $$ = (selector)=> Array.from(document.querySelectorAll(selector))
var $x = (xpathExpression)=> {
let result = document.evaluate(xpathExpression, document, null, 7)
for (let i=0; i<result.snapshotLength; i++) {
ret[i] = result.snapshotItem(i)
}
return ret
}
@7cc
7cc / find-jscript-engine.cmd
Created March 22, 2018 11:59
find jscript engine
reg query HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID /d /s /f "C:\Windows\System32\jscript"
@7cc
7cc / clisound.md
Created March 20, 2018 10:57
windows cmd sound
mpv --force-window=no "sound.wav"

ffplay -nodisp -autoexit "sound.wav"

powershell.exe -Command
(New-Object Media.SoundPlayer("sound.wav")).PlaySync()

$sound = (New-Object Media.SoundPlayer("sound.wav"))
$sound.PlaySync()
@7cc
7cc / nico-seiga-ng.xml
Created January 1, 2018 10:29
ニコニコ静画 NG
http://seiga.nicovideo.jp/api/comment/ng/get
<?xml version="1.0" encoding="UTF-8"?>
<response>
<count>number:ng数</count>
<ngclient>
<id>NGの発行ID?</id>
<type>NGのタイプ 1=ユーザー</type>
<source>内容</source>
<created>NGに入れた日時</created>
@7cc
7cc / FindWindowW.js
Last active February 20, 2017 14:22
winapi
var FindWindowW = new NativeFunction(Module.findExportByName('user32.dll', 'FindWindowW'), 'pointer', ['pointer', 'pointer'])
FindWindowW(NULL, Memory.allocUtf16String("無題 - メモ帳"))
//var MessageBoxW = new NativeFunction(Module.findExportByName('user32.dll', 'MessageBoxW'), 'int', ['pointer', 'pointer', 'pointer', 'pointer']);
//MessageBoxW(NULL, Memory.allocUtf16String("あ"), Memory.allocUtf16String("い"), Memory.allocUtf16String("MB_OK"))
@7cc
7cc / fetch
Last active June 22, 2018 06:07
xhr or fetch for document
var url = ""
fetch(url).then(function(res){
res.text().then(function(mytext){
var doc = document.implementation.createHTMLDocument("")
doc.body.insertAdjacentHTML = mytext
console.log(doc)
})
})
@7cc
7cc / gist:31ffd6a387295af0f1acfd72f390c198
Created August 5, 2016 17:02
nikonico ng 抽出(エクスポート)
http://flapi.nicovideo.jp/api/configurengclient?mode=get
$x("//ngclient[type[text()='id']]/source/text()").map((e,i)=> e.data).join("\n")
@7cc
7cc / win7-win10.md
Last active April 12, 2018 08:38
windows10 無効になる

HP dv7-6100をWindows10にアップデートするとなくなるプリインストールソフト

  • HP Power Manager
  • HP Connection Manager

  • Microsoft Security Client
@7cc
7cc / 2015-news.md
Last active January 17, 2016 14:25

2015 ニュース

  • 日本
    • 戦後70年
    • 阪神・淡路大震災から20年
    • 選挙年齢18歳へ
    • 安保改正
    • 沖縄、県内米軍基地移転で政府と対立
    • 渋谷区で同性カップルに証明書
    • ラグビーワールドカップで南アフリカに勝利