Skip to content

Instantly share code, notes, and snippets.

View jrabbit's full-sized avatar
🍡

J Laxson jrabbit

🍡
View GitHub Profile
@jrabbit
jrabbit / directory.py
Created April 6, 2012 14:52
Make an app folder/ get app folder
def directory(app_name):
"""Construct app_dir from os name"""
home = os.path.expanduser('~')
if platform.system() == 'Linux':
app_dir = os.path.join(home, '.' + app_name)
elif platform.system() == 'Darwin':
app_dir = os.path.join(home, 'Library', 'Application Support',
app_name)
elif platform.system() == 'Windows':
app_dir = os.path.join(os.environ['appdata'], app_name)
@richardtorres314
richardtorres314 / flexbox.scss
Last active March 24, 2025 17:35
CSS Flexbox - Sass Mixins
// --------------------------------------------------
// Flexbox SASS mixins
// The spec: http://www.w3.org/TR/css3-flexbox
// --------------------------------------------------
// Flexbox display
@mixin flexbox {
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;