Skip to content

Instantly share code, notes, and snippets.

View 0mg's full-sized avatar
💤

Ray Milligram 0mg

💤
View GitHub Profile
@0mg
0mg / 140.html
Created November 30, 2010 07:53
140js
data:text/html,<body onload="for(s=i='';i++<32;s+='<br>')for(j=0;j++<32;)s+=Math.random()<.5?'\u25A0':'\u25A1';document.write(s)">
data:text/html,<body id=B onload=i=setInterval("with(n=9*Math.sin((i=(i+9)%25180)*.017),B.style)margin=9-n/3+'pc',fontSize=n+'pc'",9)>???
@0mg
0mg / gist:665317
Created November 6, 2010 09:48
七行プログラミング紹介
@0mg
0mg / hatena.css
Created October 20, 2010 08:32
hatena.css
/* グローバル */
#header {
/* 上部バー固定表示を解除 */
position: static !important;
}
// ==UserScript==
// @name Twitter No XSS
// @include http://twitter.com/*
// @include https://twitter.com/*
// ==/UserScript==
["load", "unload", "click", "dblclick", "mousedown", "mouseup", "mouseover",
"mousemove", "mouseout", "focus", "blur", "keypress", "keydown", "keyup",
"submit", "reset", "select", "change"].
forEach(function(s) {
@0mg
0mg / xmlstyle.xsl
Created September 17, 2010 19:59
XMLStyle.XSLT
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
<root>
<style xmlns="http://www.w3.org/1999/xhtml">
root {
font-family: monospace;
}
element, char, comment, proc {
@0mg
0mg / xml.xml
Created September 15, 2010 09:33
xml.xml
<element>
<STag>
<STagStart>&lt;</STagStart>
<TagName>p</TagName>
<Attributes>
<S> </S>
<Attribute>
<AttName>lang</AttName>
<Eq>=</Eq>
<AttValue>
javascript:a=document.evaluate('.//td/text()',document,null,5,null);
c="";
while(n=a.iterateNext())if(!/[^a-z]/.test(n.nodeValue))c+=n.nodeValue+" ";
document.write(c)
@0mg
0mg / git.md
Created September 5, 2010 04:29
Git Tips
@0mg
0mg / favstar.css
Created September 4, 2010 12:47
favstar.css
@import "user.css";
#siteContainer {
width: 760px !important;
}
#logo h1 a {
position: absolute !important;
z-index: -1 !important;
}
#mastHead {
}
@0mg
0mg / opera.md
Created September 3, 2010 15:42
Opera Tips

マイボタン

keyboard.ini に直接入力する方法

Button1=Enable cookies, , , -1942617190, "Panel Notes" | Disable cookies

マイボタンを紹介する方法

data:text/html,<a href='opera:/button/Enable%20Cookies,,,-1942617190,"Panel%20Notes"|Disable%20Cookies'>ほげ</a>