Skip to content

Instantly share code, notes, and snippets.

View 3846masa's full-sized avatar

Masahiro Miyashiro (3846masa) 3846masa

View GitHub Profile
void setup(){int a=0x3030;p(a+'.');p(a+'7'-'!');p(a+'%');p(a+'c');p(a+'='-'!');p(a+')');p(a+'>'-'!');} void p(int a){print((char)a);}
@3846masa
3846masa / hatenaCardBgChanger.js
Last active August 29, 2015 14:07
はてなのブログカードの背景を無理やり変えるjavascript(クリックできると思う)
/*
hatenaCardBackgroundChanger
@3846masa
iframeの属性にbackgroundを追加してcss方式で書くとなる(多分)。
*/
window.addEventListener('load',function(){
var list = document.querySelectorAll('iframe[src*="hatenablog.com/embed"][background]');
Array.prototype.forEach.call(list, function(node){
@3846masa
3846masa / gist:6218a252ea5b75385552
Created October 20, 2014 05:54
if文の中が1行のとき,どれがベストなのか
/*
if文の中が1行のとき,どれがベストなのか
コメント募集(下記以外の方法でも可)
*/
// 01
if (true) println("true");
// 02
if (true)
@3846masa
3846masa / cal.ceylon
Created October 28, 2014 06:28
ceylonでカレンダー
//@3846masa
import ceylon.time { now, date, Date }
void run() {
Date today = now().date();
Integer start_wday = date(today.year, today.month, 1).dayOfWeek.integer;
Integer all_days = today.month.numberOfDays();
for (day in (1 - start_wday)..all_days) {
@3846masa
3846masa / manifest.json
Last active August 29, 2015 14:10
To skip Ads in Youtube.
{
"manifest_version": 2,
"name": "skipYoutubeAds",
"version": "0.0.1",
"description": "To skip Ads in Youtube.",
"content_scripts": [
{
"matches": ["https://www.youtube.com/watch*","http://www.youtube.com/watch*"],
@3846masa
3846masa / !_SECCON_2014_winter.md
Last active August 29, 2015 14:10
SECCON 2014 Winter

.

@3846masa
3846masa / FMS_Cat.js
Last active August 29, 2015 14:13
FMS_Cat.js
猫=~[];猫={CATCATCAT:++猫,猫猫猫猫:(![]+"")[猫],CATCAT猫:++猫,猫CAT猫CAT:(![]+"")[猫],CAT猫CAT:++猫,猫CAT猫猫:({}+"")[猫],猫猫CAT猫:(猫[猫]+"")[猫],CAT猫猫:++猫,猫猫猫CAT:(!""+"")[猫],猫CATCAT:++猫,猫CAT猫:++猫,猫猫CATCAT:({}+"")[猫],猫猫CAT:++猫,猫猫猫:++猫,猫CATCATCAT:++猫,猫CATCAT猫:++猫};猫.猫CAT=(猫.猫CAT=猫+"")[猫.猫CAT猫]+(猫.CAT猫=猫.猫CAT[猫.CATCAT猫])+(猫.猫猫=(猫.猫+"")[猫.CATCAT猫])+((!猫)+"")[猫.CAT猫猫]+(猫.CATCAT=猫.猫CAT[猫.猫猫CAT])+(猫.猫=(!""+"")[猫.CATCAT猫])+(猫.CAT=(!""+"")[猫.CAT猫CAT])+猫.猫CAT[猫.猫CAT猫]+猫.CATCAT+猫.CAT猫+猫.猫;猫.猫猫=猫.猫+(!""+"")[猫.CAT猫猫]+猫.CATCAT+猫.CAT+猫.猫+猫.猫猫;猫.猫=(猫.CATCATCAT)[猫.猫CAT][猫.猫CAT];猫.猫(猫.猫(猫.猫猫+"\""+"\\"+猫.CATCAT猫+猫.CATCATCAT+猫.猫猫CAT+"\\"+猫.CATCAT猫+猫.CATCAT猫+猫.猫CAT猫+"\\"+猫.CATCAT猫+猫.CAT猫CAT+猫.CAT猫猫+"\\"+猫.猫CATCAT+猫.CATCATCAT+"=\\"+猫.猫CATCAT+猫.CATCATCAT+猫.猫猫猫猫+猫.CAT+"\\"+猫.CATCAT猫+猫.猫CAT猫+猫.猫猫CAT+猫.猫猫CATCAT+猫.CATCAT+"\\"+猫.CATCAT猫+猫.猫CAT猫+猫.CATCAT猫+猫.CAT猫+"\\"+猫.CATCAT猫+猫.猫CAT猫+猫.猫猫CAT+"(){};\\"+猫.CATCAT猫+猫.CAT猫CAT+"\\"+猫.CATCAT猫+猫.CATCATCAT+猫.猫猫CAT+"\\"+猫.CATCAT猫+猫.CATCAT猫+猫.猫CAT猫+"\\"+猫.CATCAT猫+猫.CAT猫CAT+猫.CAT猫猫+"."+猫.猫猫CATCAT+猫.猫CAT猫CAT+猫.CATCAT+"\\
@3846masa
3846masa / drawImageToConsole.js
Last active August 29, 2015 14:13
コンソールに無理やり画像を出力する
(function(){
console.drawImage = function (img) {
var refresh = true, maxWidth;
if (arguments.length >= 2) {
if (typeof arguments[1] === "boolean") refresh = arguments[1];
else if (typeof arguments[1] === "number") maxWidth = arguments[1];
if (arguments.length >= 3 && typeof arguments[2] === "boolean") refresh = arguments[2];
}
/**
Copyright (c) 2015 3846masa
Released under the MIT License.
**/
(function(){
var $ = function(selector, context) {
var nodeList = (context || document).querySelectorAll(selector);
var array = [];
for (var i = 0; i < nodeList.length; i++) {
array.push(nodeList[i]);
@3846masa
3846masa / packages.config
Last active August 29, 2015 14:14
chocolatey
<?xml version="1.0"?>
<packages>
<!-- <package id="android-sdk" />
<package id="androidstudio" /> -->
<package id="atom" />
<package id="audacity" />
<!-- <package id="avirafreeantivirus" /> -->
<!-- <package id="blender" /> -->
<package id="classic-shell" />
<package id="cygwin" />