Skip to content

Instantly share code, notes, and snippets.

View rlemon's full-sized avatar
🍋
Hanging around.

Robert Lemon rlemon

🍋
Hanging around.
  • Dryer Moisture Systems Inc.
  • Kitchener, Ontario. Canada.
View GitHub Profile
@rlemon
rlemon / gist:2313580
Created April 5, 2012 19:54
FragBuilder reverse function.
var reverseFunction = function(DOM) {
var tree = [];[].forEach.call(DOM, function(obj) {
if (obj instanceof Text) {
tree.push({
'textContent': obj.textContent
});
} else {
var tmp = {};
tmp['tagName'] = obj.nodeName;
for( var data in obj.dataset ) {
@rlemon
rlemon / master.markdown
Created April 24, 2012 20:42
Stack Overflow Pro-Forma comments
#Stack Overflow Pro-Forma comments
###[A]Answers just to say Thanks!
Please don't add "thanks" as answers. Invest some time in the site and you will gain sufficient privileges to upvote answers you like, which is the community way of saying thank you.
###[Q]Nothing but a URL (and isn't spam)
Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
###[A]OP adding a new question as an answer
If you have another question, please ask it by clicking the [Ask Question](http://stackoverflow.com/questions/ask) button.
/*!
* Bootstrap v2.0.3
*
* Copyright 2012 Twitter, Inc
* Licensed under the Apache License v2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Designed and built with all the love in the world @twitter by @mdo and @fat.
*/article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}
audio,canvas,video{display:inline-block;*display:inline;*zoom:1}
@rlemon
rlemon / gist:2511595
Created April 27, 2012 18:32
rlemon.github.com dynamic content pages
[
{
"data":"hello world"
}
]
@rlemon
rlemon / content
Created April 28, 2012 22:21
Sample post file hello
<h1>HTML Ipsum Presents</h1>
<p><strong>Pellentesque habitant morbi tristique</strong> senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. <em>Aenean ultricies mi vitae est.</em> Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, <code>commodo vitae</code>, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. <a href="#">Donec non enim</a> in turpis pulvinar facilisis. Ut felis.</p>
<h2>Header Level 3 --- </h2>
<ol>
<li>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</li>
<li>Aliquam tincidunt mauris eu risus.</li>
</ol>
@rlemon
rlemon / post-ids
Created April 28, 2012 22:21
rlemon.github.com json data files
[{
"posts": ["2522423","2522465"]
}]
@rlemon
rlemon / content
Created April 28, 2012 22:37
Second post. I will edit these or remove them
<h1>HTML Ipsum Presents</h1>
<p><strong>Pellentesque habitant morbi tristique</strong> senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. <em>Aenean ultricies mi vitae est.</em> Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, <code>commodo vitae</code>, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. <a href="#">Donec non enim</a> in turpis pulvinar facilisis. Ut felis.</p>
<h2>Header Level 2</h2>
<ol>
<li>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</li>
<li>Aliquam tincidunt mauris eu risus.</li>
</ol>
alert('hello world!');
// ==UserScript==
// @name SE Chat Fix for Neal
// @author Robert Lemon
// @namespace rlemon.userscript
// @description Fixes neals buggy ass chat interface
// @include http://chat.stackexchange.com/rooms/*
// @include http://chat.stackoverflow.com/rooms/*
// ==/UserScript==
function EmbedCodeOnPage(type, kode) {
@rlemon
rlemon / gist:2896833
Created June 8, 2012 16:51
Joke time...
Village idiots
Idiot Number One
I am a medical student currently doing a rotation in toxicology at the poison control center. Today, this woman called in very upset because she caught her little daughter eating ants. I quickly reassured her that the ants are not harmful and there would be no need to bring her daughter into the hospital. She calmed down and at the end of the conversation happened to mention that she gave her daughter some ant poison to eat in order to kill the ants. I told her that she better bring her daughter in to the emergency room right away.
Here's your sign, lady. Wear it with pride.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~