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
/** | |
* @license | |
* Copyright 2017 Google LLC | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* |
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 "dotenv/config"; | |
import { request, gql } from "graphql-request"; | |
import axios from "axios"; | |
const GITHUB_TOKEN = `xxx`; | |
const ORG_NAME = `abc`; | |
const DST_PROJECT_NUMBER = 1; | |
const SRC_PROJECT_NUMBER = 2; | |
const greq = async (q: string) => { |
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
allPre = document.querySelectorAll('pre') | |
allPre.forEach(pre => { | |
code = document.createElement('code') | |
code.appendChild(pre.cloneNode(true)) | |
code.style.all = 'unset' | |
pre.parentNode.insertBefore(code, pre) | |
pre.remove() | |
}) |
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
"config": { | |
"detectGlobalManagerConfig": false, | |
"detectHostRulesFromEnv": false, | |
"postUpgradeTasks": { | |
"commands": [], | |
"fileFilters": [], | |
"executionMode": "update" | |
}, | |
"onboardingBranch": "renovate/configure", | |
"onboardingCommitMessage": null, |
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
@echo off | |
set errmes=ARP エントリが見つかりませんでした。 | |
set iphone=192.168.11.3 | |
set quest=192.168.11.12 | |
arp -d %iphone% | |
ping %iphone% -n 1 -w 10000 | |
arp -a %iphone% > tmpfile |
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
from scapy.all import * | |
from sys import exit | |
import sys | |
from ctypes import * | |
import win32gui, win32com.client | |
from enum import Enum | |
user32 = windll.user32 | |
kernel32 = windll.kernel32 | |
# definition |
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
// Too bad extension. Bad I think it is the best way. | |
extension String { | |
subscript(index: Int) -> Character { | |
return self[self.index(self.startIndex, offsetBy: index)] | |
} | |
subscript(bounds: CountableRange<Int>) -> Substring { | |
return self[index(at: bounds.lowerBound)..<index(at: bounds.upperBound)] | |
} | |
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
function run(nodes){ | |
nodes.forEach(function(node){ | |
if(typeof node.querySelectorAll !== "function") return; | |
document.querySelectorAll("*[class*=star]").forEach(function(e){e.remove()}) | |
document.querySelectorAll("*[class*=rating]").forEach(function(e){e.remove()}) | |
}) | |
} | |
run([document]) |
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
function run(nodes){ | |
nodes.forEach(function(node){ | |
if(typeof node.querySelectorAll !== "function") return; | |
// Remove artwork | |
node.querySelectorAll("span.sc-artwork").forEach(function(e){e.remove()}) | |
// Remove header | |
node.querySelectorAll("div.profileHeaderBackground__visual").forEach(function(e){e.remove()}) | |
}) | |
} |
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 macros, sugar, sequtils | |
import rationals | |
proc `//`[T: SomeInteger](num, den: T): Rational[T] = initRational(num, den) | |
proc `//`[T: not SomeInteger](num, den: T): auto = num / den | |
proc genReplacer(fromNode, toNode: NimNode): auto = | |
proc replacer(node: NimNode):NimNode = | |
if node.len == 0: | |
if node.kind == nnkIdent and node == fromNode: |
NewerOlder