This file contains 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
Show hidden characters
{ | |
"theme": "Spacegray.sublime-theme", | |
"color_scheme": "Packages/Theme - Spacegray/base16-ocean.dark.tmTheme", | |
"draw_white_space": "all", | |
"tab_size": 2, | |
"translate_tabs_to_spaces": true, | |
"use_tab_stops": true, | |
"rulers": [80, 120], | |
"show_minimap": false, | |
"caret_style": "smooth", |
This file contains 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
(function(document, EventTarget) { | |
var elementProto = window.Element.prototype, | |
matchesFn = elementProto.matches; | |
/* Check various vendor-prefixed versions of Element.matches */ | |
if(!matchesFn) { | |
['webkit', 'ms', 'moz'].some(function(prefix) { | |
var prefixedFn = prefix + 'MatchesSelector'; | |
if(elementProto.hasOwnProperty(prefixedFn)) { | |
matchesFn = elementProto[prefixedFn]; |
This file contains 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
function merged() { | |
var mergeInto; | |
[].forEach.call(arguments, function(obj, i) { | |
if(i === 0) { | |
mergeInto = obj; | |
} | |
else { | |
Object.keys(obj).forEach(function(key) { | |
var existing = mergeInto[key], |
This file contains 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
{ | |
"requireCurlyBraces": true, | |
"requireSpaceAfterKeywords": [ | |
"return", "else" | |
], | |
"disallowSpaceAfterKeywords": [ | |
"if", "for", "while", "switch" | |
], | |
"requireSpaceBeforeBlockStatements": true, | |
"requireParenthesesAroundIIFE": true, |
This file contains 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 datetime | |
import re | |
from django.conf import settings | |
from django.forms.extras import SelectDateWidget | |
from django.forms.widgets import Widget, Select | |
from django.utils import datetime_safe, six | |
from django.utils.dates import MONTHS | |
from django.utils.formats import get_format | |
from django.utils.safestring import mark_safe |
This file contains 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
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
$bem-element-separator: '__'; | |
$bem-modifier-separator: '--'; | |
@function selectorToString($selector) { | |
$selector: inspect($selector); //cast to string | |
$selector: str-slice($selector, 2, -2); //remove brackets |
This file contains 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
<div class="class">asd</div> |
This file contains 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
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
$bem-element-separator: '__'; | |
$bem-modifier-separator: '--'; | |
@function selectorToString($selector) { | |
$selector: inspect($selector); //cast to string | |
$selector: str-slice($selector, 2, -2); //remove brackets |
This file contains 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
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
$bem-element-separator: '__'; | |
$bem-modifier-separator: '--'; | |
@function selectorToString($selector) { | |
$selector: inspect($selector); //cast to string | |
$selector: str-slice($selector, 2, -2); //remove brackets |
This file contains 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
// ---- | |
// Sass (v3.4.14) | |
// Compass (v1.0.3) | |
// ---- | |
$bem-element-separator: '__'; | |
$bem-modifier-separator: '--'; | |
@function selectorToString($selector) { | |
$selector: inspect($selector); //cast to string |
OlderNewer