This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Draggable lists */ | |
ul.reorderable { | |
position: relative; | |
z-index: 1; | |
border-top: 1px solid lighten(@mute, 10%); | |
border-bottom: 1px solid lighten(@mute, 10%); | |
li { | |
.unselectable; | |
position: relative; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<head> | |
<meta property="og:site_name" content="Lucky Voice" /> | |
<title>Lucky Voice - Welcome</title> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> | |
<!-- Main stylesheet --> | |
<link href="http://cdn.shopify.com/s/files/1/0034/5362/assets/styles.css?100005" rel="stylesheet" type="text/css" media="all" /> | |
<!--[if IE 6]><link href="http://cdn.shopify.com/s/files/1/0034/5362/assets/ie6.css?100005" rel="stylesheet" type="text/css" media="all" /><![endif]--> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
----------------------------- | |
KARAOKE BUILDER STUDIO | |
www.KaraokeBuilder.com | |
----------------------------- | |
HEADERV2 | |
'--- Template Information --- | |
'Palette Colours (0-15) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def remove_offset(x, y): | |
if y < 0: | |
return (x + abs(y)) | |
else: | |
return (x - y) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
if [ ! -e /tmp/aggergate ]; then | |
time nice /home/crowdtube/crowdtube/bin/aggergate.py | |
fi | |
if [ ! -e /tmp/rank ]; then | |
time nice /home/crowdtube/crowdtube/bin/rank.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> class Orly: | |
... def __add__(self, other): | |
... return isinstance(other, Orly) or (not True) + other | |
... | |
>>> False = OhReally() | |
>>> False + False | |
True |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### The window controller manages the size of the window; providing interfaces for entering/leaving full-screen modes | |
(and providing events when that happens) ### | |
class LV.WindowController | |
constructor: () -> | |
@isFullscreenCapable = not Modernizr.touch | |
@win = $(window) | |
# Create a debounced version; we only care after resizing has finished | |
@onResize = _.debounce(@_onResize, 300) | |
@bind({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from bs4 import BeautifulSoup | |
from bs4.builder._lxml import LXML as BS_LXML_FEATURE | |
class FragmentSoup(BeautifulSoup): | |
"""A custom BeautifulSoup implementation that properly represents fragments when using lxml, without wrapping them | |
in a document on output (internally, they are still wrapped).""" | |
def _feed(self, *args, **kwargs): | |
if not hasattr(self, '__markup_enclosure'): | |
self.__markup_enclosure = None |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import distutils.sysconfig as sysconfig | |
import re | |
import sublime | |
import sublime_plugin | |
FROM_IMPORT_RE = re.compile(r'^\s*from (?P<package>\.?\w*)(?P<package_extra>\S*)\s+import\s+(?P<subpackages>.+)') | |
PLAIN_IMPORT_RE = re.compile(r'^\s*import (?P<package>\.?\w*)(?P<package_extra>\S*)') | |
CONTINUATION_RE = re.compile(r'.*(\\\s*)$') | |
PARENTHESISED_START_RE = re.compile(r'^.+? import \(') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Use the standard LV.Ticker event loop for jQuery animations, too (which uses requestAnimationFrame under the | |
covers, if supported by the client) ### | |
class LV.JQAnimation extends LV.Animation | |
constructor: (timer) -> | |
@timer = timer | |
@start() | |
return | |
step: () -> |