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
/* | |
Copyright (C) 2018 apple502j All rights reversed. | |
This program is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation, either version 3 of the License, or | |
(at your option) any later version. | |
This program is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
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
++++++++[>++++++++<-]>+.>+++++++++[>+++++++++<-]>++.>+++++++++[>+++++++++<-]>+++++.>+++++++[>+++++++++++++++<-]>.>+++++++++++[>++++++++++<-]>++++.>+++++++++++[>+++++++++++<-]>-----.>+++++++++++[>+++++++++++<-]>----.>++++++++++[>++++++++++<-]>---.>+++++++++[>++++++++++++<-]>.>+++++++++[>+++++++++<-]>-.>++++++++[>++++++++<-]>+++.>++++[>+++<-]>+.>+++[>+++<-]>+. |
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
# This code is in the public domain. | |
import mw_api_client as mw | |
from getpass import getpass | |
API_PATH="" # API URL like https://en.wikipedia.org/w/api.php | |
USERAGENT="Sandbox Cleaner with mw_api_client" # User-Agent | |
USERNAME="" # User name | |
SANDBOXPATH="" # Sandbox path | |
DEFAULT_SANDBOX="" # Default Sandbox contents |
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
// ==UserScript== | |
// @name MediaWiki Username Template | |
// @version 0.1 | |
// @description Put username in MediaWiki | |
// @author apple502j | |
// @match https://en.scratch-wiki.info/w/* | |
// @match https://en.scratch-wiki.info/wiki/* | |
// @match https://ja.scratch-wiki.info/w/* | |
// @match https://ja.scratch-wiki.info/wiki/* | |
// @match https://test.scratch-wiki.info/w/* |
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
// ==UserScript== | |
// @name Flash Crasher Reporter | |
// @version 1.0 | |
// @description report flash crasher | |
// @author apple502j | |
// @match https://scratch.mit.edu/projects/* | |
// ==/UserScript== | |
// Licensed under MIT |
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
class GenericData(object): | |
def __init__(self, **kwargs): | |
self.__dict__.update(kwargs) |
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
// ==UserScript== | |
// @name See at Scratch 3 | |
// @version 1.0 | |
// @description Open Scratch 3 as fast as possible | |
// @author apple502j | |
// @match https://scratch.mit.edu/projects/* | |
// ==/UserScript== | |
function seeAtScratch3(e){ | |
if (document.URL.indexOf("#editor") > -1) return; |
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
・プログラミング用ファイル名の付け方 | |
基本、英数字・-・_のみにする。 | |
小文字のみ、必要な場合はスネークケース | |
実行用ファイルは「main」またはGitHubレポ名、HTMLなら「index.html」、設定用ファイルは「settings」 | |
単体で実行できないもの(css,pngなど)は別フォルダ | |
もっぱらLintやGitなどに使うものは親フォルダ | |
HTMLの拡張子は.htmlで統一し、.htmは使用しない | |
.batは簡易プログラム、.cmdは複雑なプログラム |
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
/* mainは省略 */ | |
int return_false(void){ | |
return 0; | |
} |
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
import mw_api_client as mw | |
jawiki=mw.Wiki("https://ja.scratch-wiki.info/w/api.php","SW-ChangeLinks by apple502j: made of requests and mw-api-client") | |
jawiki.login("Apple_Bot","password_hidden") | |
x=input("The link to change >") | |
y=input("The new link >") | |
pg=jawiki.page(x) | |
works=pg.backlinks() # disable-english-lint uncountable-noun | |
for work in works: |
OlderNewer