Skip to content

Instantly share code, notes, and snippets.

View sean-clayton's full-sized avatar
🎷
🐢

Sean Clayton sean-clayton

🎷
🐢
View GitHub Profile
"""
bacon.py, because bacon.
http://github.com/skulbuny
"""
import willie.web as web
def bacon (willie, trigger):
willie.say("mmmm... bacon...")
bacon.commands = ['', 'bacon']
@sean-clayton
sean-clayton / bacon.py
Created April 22, 2013 02:52
bacon.py
"""
bacon.py, because bacon.
http://github.com/skulbuny
"""
import willie.web as web
def bacon (willie, trigger):
willie.say("mmmm... bacon...")
bacon.rule = '*.(bacon).*'
"""
bacon.py, because bacon.
http://github.com/skulbuny
"""
def bacon (willie, trigger):
willie.say('mmmm... bacon...')
bacon.rule = r'bacon\\b'
bacon.priority = 'high'
bacon.thread = False
"""
bacon.py, because bacon.
http://github.com/skulbuny
"""
def bacon (willie, trigger):
willie.say('mmmm... bacon...')
bacon.rule = ["bacon"]
bacon.priority = 'high'
bacon.thread = False
.nav-next { text-align: right }
.form-allowed-tags { display: none }
span.required { color: #F00 }
a, abbr, acronym, address, applet, article, aside, audio, b, big, blockquote, body, caption, canvas, center, cite, code, dd, del, details, dfn, dialog, div, dl, dt, em, embed, fieldset, figcaption, figure, form, footer, header, hgroup, h1, h2, h3, h4, h5, h6, html, i, iframe, img, ins, kbd, label, legend, li, mark, menu, nav, object, ol, output, p, pre, q, ruby, s, samp, section, small, span, strike, strong, sub, summary, sup, tt, table, tbody, textarea, tfoot, thead, time, tr, th, td, u, ul, var, video { font-family: inherit; font-size: 100%; font-weight: inherit; font-style: inherit; vertical-align: baseline; white-space: normal; margin: 0; padding: 0; border: 0; outline: 0; background: transparent; }
var liElement = $('<li>');
// The dummy href value of '#' ensures that the browser renders the
// <a> element as a clickable link.
liElement.load(function() {
displayVideoAnalytics(videoId);
});
// Call the jQuery.append() method to add the new <a> element to
// the <li> element, and the <li> element to the parent
// list, which is identified by the 'videoList' variable.
@sean-clayton
sean-clayton / gist:7174053
Last active December 26, 2015 15:39
Select all heading styles in SCSS
@for $index from 1 through 6 {
h#{$index}{
// styles here
}
}
@sean-clayton
sean-clayton / gist:7259060
Created October 31, 2013 23:49
Change color based on lightness of another color
$font-color: 0;
@if lightness($background-color) >= 50 {
$font-color: black;
}
@if lightness($background-color) <= 50 {
$font-color: white;
}
{
"auto_complete_commit_on_tab": true,
"caret_extra_bottom": 0,
"caret_extra_top": 0,
"caret_extra_width": 0,
"caret_style": "smooth",
"close_windows_when_empty": false,
"color_scheme": "Packages/Github Color Theme/GitHub.tmTheme",
"detect_indentation": true,
"detect_slow_plugins": false,