Skip to content

Instantly share code, notes, and snippets.

Avatar
Coffee.

Aubrey Taylor aubricus

Coffee.
View GitHub Profile
@aubricus
aubricus / private_pypi_howto.md
Last active Nov 29, 2016 — forked from Jaza/Private-pypi-howto
Guide for how to create a (minimal) private PyPI repo, just using Apache with directory autoindex, and pip with an extra index URL.
View private_pypi_howto.md
@aubricus
aubricus / License
Last active Jul 12, 2021
Python Progress Bar
View License
Copyright 2020 Aubrey Taylor
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTH
View brew-upgrade-all.sh
brew upgrade $(brew outdated | grep '^[a-zA-Z]')
@aubricus
aubricus / view.js
Last active May 2, 2016
Micro-visual-state-transition mechanic
View view.js
define(function (require, exports, module) {
var _ = require("underscore");
var $ = require("jquery");
var backbone = require("backbone");
var marionette = require("marionette");
var UploadImagesModalView = marionette.LayoutView.extend({
validTansitionStates: ["initial", "activity", "valid", "invalid"],
@aubricus
aubricus / perfect-pixel-custom-style.css
Last active Dec 4, 2015 — forked from anonymous/perfect-pixel-custom-style.css
Custom styles for PerfectPixel Chrome Extension
View perfect-pixel-custom-style.css
#chromeperfectpixel-panel button {
padding: 0.7em;
border-radius: 0 !important;
background: #dedede !important;
}
#chromeperfectpixel-panel #chromeperfectpixel-panel-header {
height: 33px !important;
background: #dedede !important;
}
@aubricus
aubricus / rebase-local-branch-from-rebased-upstream.sh
Last active Oct 6, 2015
Rebase a local branch who's upstream has been rebased.
View rebase-local-branch-from-rebased-upstream.sh
# Thanks to:
# http://stackoverflow.com/a/20423029 (recover rebased upstream)
# http://stackoverflow.com/a/11868440 (get current branch name)
# Note:
# Be sure to checkout the branch you wish to re-sync / recover
# change this to desired upstream
upstream_branch=upstream/environment-detail
@aubricus
aubricus / SassMeister-input.scss
Created Mar 14, 2015
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.4.12)
// Compass (v1.0.3)
// ----
@mixin foo($section){
.foo.#{$section} & {
@content;
}
}
View _old_get_function.scss
@function get($dict, $key, $default: false) {
/* a python-style "get" function to emulate dictionary access in scss
param: $dict the dict you'd like to 'get' from
param: $key the 'key' to access
param: $default a default value to return should the 'get' fail
see:
- http://bit.ly/1cPvYXx
- http://stackoverflow.com/a/11041421
@aubricus
aubricus / SassMeister-input-HTML.html
Created Sep 16, 2014
Generated by SassMeister.com.
View SassMeister-input-HTML.html
<div class="page">
<header>
<h1>Hello I'm The Header</h1>
</header>
<div class="hero">
<div class="one">
<h2>I'm by myself</h2>
</div>
<div class="two">
<div><h3>I'm 1</h3></div>
@aubricus
aubricus / devbot-html-into-devbot-django.md
Last active Aug 29, 2015
Install Devbot HTML into Devbot Django Template
View devbot-html-into-devbot-django.md

How to Install Devbot HTML into Devbot-Django

  1. In a new directory, create a Devbot-Django Project
  2. In a new directory, create a Devbot-HTML Project
  3. Devbot-Django: Delete all things in /static
  4. Devbot-HTML > Devbot-Django: Copy all things in /src to /static
  5. Devbot-HTML > Devbot-Django: Copy /config.rb into the Devbot-Django project root
  6. Devbot-Django: Update new /config.rb, replace src/ with static/
  7. Devbot-Django: Update vagrant, fab css_watch task: see: https://gist.github.com/aubricus/72edfdba60c0a4b89d0c
  8. Devbot-Django: Index.html remove require include