Skip to content

Instantly share code, notes, and snippets.

View rlam3's full-sized avatar

rlam3

View GitHub Profile
@AvdLee
AvdLee / ALSwiftyBeaverCLLogger
Last active April 19, 2017 03:04
CocoaLumberjack logger for SwiftyBeaver
//
// ALSwiftyBeaverCLLogger.swift
//
// Created by Antoine van der Lee on 09/05/16.
// Copyright © 2016 Antoine van der Lee. All rights reserved.
//
import Foundation
import CocoaLumberjack
import SwiftyBeaver
@d3vron
d3vron / mixins.styl
Created July 13, 2011 14:04
Easy-to-use CSS3 mixins for Stylus (includes linear-gradient)
vendor(prop, args)
-webkit-{prop} args
-moz-{prop} args
-ms-{prop} args
-o-{prop} args
{prop} args
border-radius()
vendor('border-radius', arguments)
@jpgiago
jpgiago / gulpfile.js
Last active September 22, 2017 01:23
Gulp.js for Stylus (lost, axis, rupture w/ postcss)
var gulp = require('gulp'),
plumber = require('gulp-plumber'),
gutil = require('gulp-util'),
autoprefixer = require('autoprefixer'),
sourcemaps = require('gulp-sourcemaps'),
postcss = require('gulp-postcss'),
poststylus = require('poststylus'),
stylus = require('gulp-stylus'),
axis = require('axis'),
rupture = require('rupture'),
@ebuildy
ebuildy / gist:5d4ad0998848eaefdad8
Last active November 7, 2018 19:14
Setup sentry logger on a fresh Ubuntu server
sudo apt-get update
sudo apt-get install python-virtualenv
sudo apt-get install python-dev
sudo apt-get install postgresql
sudo apt-get install postgresql-server-dev-9.3
sudo apt-get install redis-server
sudo -u postgres createuser -s sentry
sudo -u postgres psql -c "alter user sentry with password 'sentry';"
@rduplain
rduplain / README.md
Created August 30, 2012 16:07
Flask-Script: demo passing in configuration file.

This demonstrates that you can configure a Flask application through Flask-Script, without having to create a Flask instance or deal with circular dependencies. Note that Flask-Script's Manager accepts a factory function in place of a Flask app object.

Running:

python manage.py runserver

gives "Hello, world!" on http://localhost:5000/, while running:

python manage.py runserver -c development.cfg
@mars
mars / install.md
Last active December 19, 2019 22:26 — forked from Micka33/install.md
Cassandra on Mac OS X

Installing Cassandra on Mac OS X

Install Homebrew

Homebrew is a great little package manager for OS X. If you haven't already, installing it is pretty easy:

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
@davebarkerxyz
davebarkerxyz / rebuild_search_indices.py
Last active May 19, 2020 07:43
Rebuild Flask-WhooshAlchemy search indices
#!/usr/bin/env python
import datetime
from app import app, models
import whoosh
import flask_whooshalchemy
"""
Rebuild all Whoosh search indices
@scabbiaza
scabbiaza / README.md
Created September 22, 2014 18:29
Flask with infinity scroll navigation

Flask with infinity scroll navigation

Using: Flask, SQLAlchemy, Infinite-scroll

from pathlib import Path
def sizeof_fmt(num, suffix='B'):
"""Readable file size"""
for unit in ['', 'k', 'M', 'G', 'T', 'P', 'E', 'Z']:
if abs(num) < 1024.0:
return "%3.1f %s%s" % (num, unit, suffix)
num /= 1024.0
return "%.1f%s%s" % (num, 'Yi', suffix)
@t3db0t
t3db0t / gist:de49195d1e6809c9c1e8a413dfe85a47
Created September 8, 2016 21:57
Why Clubhouse/Why Not Jira
TL;DR: JIRA is the salesforce of project management: slow, ancient, difficult. Clubhouse is a modern, reactive application tailor-made for agile product development. I’ve measured speed increases of 400-1500% (or more in a few worst cases). No, I’m not making that up.
Why Clubhouse?
Here’s a simple presentation I made of why:
https://docs.google.com/presentation/d/14KWfFRXzAJGA1oAblV_5Z4wSPcuR74QxaFLaM2Mjhsg/pub?start=false&loop=false&delayms=3000
A few additional items:
- Easily configurable/filterable workspaces
- Shareable workspaces for custom views tailored to a specific purpose