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
class SampleClass(object): | |
"""Summary of class here. | |
Longer class information.... | |
Longer class information.... | |
Attributes: | |
likes_spam: A boolean indicating if we like SPAM or not. | |
eggs: An integer count of the eggs we have laid. | |
""" |
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 logging | |
import re | |
import chardet | |
from bs4 import UnicodeDammit | |
LOG = logging.getLogger() | |
BROTHER_ENCODINGS = [ | |
('GB2312', 'GBK', 'GB18030'), |
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
/** | |
* Native modal dialog (limited support) | |
*/ | |
dialog::backdrop { | |
background: rgba(0,0,0,.8) | |
} |
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
{ | |
"auto_complete_commit_on_tab": true, | |
"bold_folder_labels": true, | |
"color_scheme": "Packages/User/Monokai Soda.tmTheme", | |
"default_line_ending": "unix", | |
"draw_minimap_border": true, | |
"draw_white_space": "all", | |
"ensure_newline_at_eof_on_save": true, | |
"fade_fold_buttons": false, | |
"folder_exclude_patterns": |
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 re | |
bad_attrs = ['width', 'height', 'style', '[-a-z]*color', | |
'background[-a-z]*', 'on*'] | |
single_quoted = "'[^']+'" | |
double_quoted = '"[^"]+"' | |
non_space = '[^ "\'>]+' | |
cstr = ("<" # open | |
"([^>]+) " # prefix | |
"(?:%s) *" % ('|'.join(bad_attrs),) + # undesirable attributes |
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
{ | |
"Python": { | |
"python": '/usr/bin/python', | |
"pythonExtraPaths": ["C:\Python27"] | |
}, | |
"Python3": { | |
"python": '/usr/bin/python3', | |
"pythonExtraPaths": ["C:\Python33"] | |
} | |
} |
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
Windows Registry Editor Version 5.00 | |
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders] | |
"Desktop"="F:\\Desktop" | |
"Favorites"="E:\\Favorites" | |
"My Music"="E:\\Music" | |
"My Pictures"="E:\\Pictures" | |
"My Video"="E:\\Videos" | |
"Personal"="E:\\Documents" | |
"{374DE290-123F-4565-9164-39C4925E467B}"="E:\\Downloads" |
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
{{locale.format_date(c['_id'].generation_time.replace(tzinfo=None), -480, relative=False)}} |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>Monokai Soda</string> | |
<key>settings</key> | |
<array> | |
<dict> | |
<key>settings</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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- # | |
from __future__ import unicode_literals | |
AUTHOR = 'ZoeyYoung' | |
AUTHOR_EMAIL = 'ydingmiao@gmail.com' | |
EMAIL = 'ydingmiao@gmail.com' | |
SITENAME = 'OK Computer' | |
SITESUBTITLE = "It's better to burn out <br/> than to fade away." | |
SITEURL = 'http://zoeyyoung.gitcafe.com' |
NewerOlder