Skip to content

Instantly share code, notes, and snippets.

View sloria's full-sized avatar

Steven Loria sloria

View GitHub Profile
@marktheunissen
marktheunissen / pedantically_commented_playbook.yml
Last active June 28, 2023 19:50 — forked from phred/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
View pedantically_commented_playbook.yml
This playbook has been removed as it is now very outdated.
@zmaril
zmaril / softwarehelpskill.md
Last active August 3, 2021 04:52
I want to write software that helps kill people.
View softwarehelpskill.md

I want to write software that helps kill people.

Please, before you call the police and get my github account put on lockdown, allow me a moment to explain. What I really want to do is work on projects that advance the human condition and improve people's lives. I've been in a mad dash to learn how to program for the past four or five years exactly because I realized how much good I could do for the world with a computer.

View pypi-release-checklist.md
@sloria
sloria / bobp-python.md
Last active September 18, 2023 03:21
A "Best of the Best Practices" (BOBP) guide to developing in Python.
View bobp-python.md
@jlongster
jlongster / bloop.js
Last active September 5, 2022 23:33
bloop
View bloop.js
(function() {
// Do not use this library. This is just a fun example to prove a
// point.
var Bloop = window.Bloop = {};
var mountId = 0;
function newMountId() {
return mountId++;
}
@fabianvf
fabianvf / pip requirements
Last active February 1, 2017 11:37
ansible pip install lxml
View pip requirements
- name: Install lxml requirements
apt: "pkg={{ item }} state=present update_cache=yes"
sudo: yes
with_items:
- python-dev
- libxml2
- libxml2-dev
- libxslt1-dev
- lib32z1-dev
- libssl-dev
@jmcarp
jmcarp / pagination.py
Last active August 29, 2015 14:11
pagination
View pagination.py
import abc
import math
import collections
import six
@six.add_metaclass(abc.ABCMeta)
class Paginator(object):
@bobbygrace
bobbygrace / trello-css-guide.md
Last active September 1, 2023 17:59
Trello CSS Guide
View trello-css-guide.md

Hello, visitors! If you want an updated version of this styleguide in repo form with tons of real-life examples… check out Trellisheets! https://github.com/trello/trellisheets


Trello CSS Guide

“I perfectly understand our CSS. I never have any issues with cascading rules. I never have to use !important or inline styles. Even though somebody else wrote this bit of CSS, I know exactly how it works and how to extend it. Fixes are easy! I have a hard time breaking our CSS. I know exactly where to put new CSS. We use all of our CSS and it’s pretty small overall. When I delete a template, I know the exact corresponding CSS file and I can delete it all at once. Nothing gets left behind.”

You often hear updog saying stuff like this. Who’s updog? Not much, who is up with you?

@bhauman
bhauman / README.md
Last active December 3, 2019 16:43
ClojureScript minimal dev and prod setup.
View README.md

Recent improvements to the ClojureScript compiler have greatly simplified setting up development versus production outputs.

This example uses Figwheel as something that you want to exclude for production, but the pattern is general.

With this simple setup you only need one html file/view and it will work for developement and production.

@barneycarroll
barneycarroll / class.es5.js
Last active August 29, 2015 14:17
ES6 classes in ES5.
View class.es5.js
var slice = Array.prototype.slice;
function Class( Super, Schema ){
if( arguments.length < 2 ){
Schema = Super;
Super = Object;
}
var constructor = Schema.constructor ? Super ? function SubClass(){
var args = slice.call( arguments );