Skip to content

Instantly share code, notes, and snippets.

View apple502j's full-sized avatar
🍎
Eaten

apple502j apple502j

🍎
Eaten
View GitHub Profile
@apple502j
apple502j / yahoo.denyads.css
Created January 6, 2018 08:59
Ads Blocking CSS (stylish)
/*
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
@apple502j
apple502j / asvirtualpc.bf
Last active January 15, 2018 10:42
BRAINDUCK "ASVIRTUALPC" under BSD-2Clause or MIT
++++++++[>++++++++<-]>+.>+++++++++[>+++++++++<-]>++.>+++++++++[>+++++++++<-]>+++++.>+++++++[>+++++++++++++++<-]>.>+++++++++++[>++++++++++<-]>++++.>+++++++++++[>+++++++++++<-]>-----.>+++++++++++[>+++++++++++<-]>----.>++++++++++[>++++++++++<-]>---.>+++++++++[>++++++++++++<-]>.>+++++++++[>+++++++++<-]>-.>++++++++[>++++++++<-]>+++.>++++[>+++<-]>+.>+++[>+++<-]>+.
@apple502j
apple502j / cleansandbox.py
Created March 11, 2018 10:20
Clean Your Sandbox (MW bot) need kenny2github/mw-api-client
# 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
@apple502j
apple502j / mw-username.js
Last active March 18, 2018 02:16
MW Username
// ==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/*
@apple502j
apple502j / FlashCrasherReporter.js
Created April 28, 2018 23:33
Report Flash Crasher - Fast and Useful
// ==UserScript==
// @name Flash Crasher Reporter
// @version 1.0
// @description report flash crasher
// @author apple502j
// @match https://scratch.mit.edu/projects/*
// ==/UserScript==
// Licensed under MIT
@apple502j
apple502j / generic_class.py
Created May 20, 2018 10:50
Code by kenny2github.
class GenericData(object):
def __init__(self, **kwargs):
self.__dict__.update(kwargs)
@apple502j
apple502j / SeeAtScratch3.js
Last active June 2, 2018 23:14
See at Scratch 3: Add a button to 3.0 on project pages
// ==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;
・プログラミング用ファイル名の付け方
基本、英数字・-・_のみにする。
小文字のみ、必要な場合はスネークケース
実行用ファイルは「main」またはGitHubレポ名、HTMLなら「index.html」、設定用ファイルは「settings」
単体で実行できないもの(css,pngなど)は別フォルダ
もっぱらLintやGitなどに使うものは親フォルダ
HTMLの拡張子は.htmlで統一し、.htmは使用しない
.batは簡易プログラム、.cmdは複雑なプログラム
/* mainは省略 */
int return_false(void){
return 0;
}