Skip to content

Instantly share code, notes, and snippets.

View philstrong's full-sized avatar

Phil Strong philstrong

View GitHub Profile
def is_mike_pto(dt):
pto_start, pto_end = (7, 17), (7, 21)
if pto_start <= dt <= pto_end:
return "PTO"
else:
return "Not on PTO"
for day in range(16, 23):
day = (7, day)
pto_status = is_mike_pto(day)
@philstrong
philstrong / gist:83bd14a85f7bebf7fc01
Last active October 17, 2018 19:45 — forked from ivanoats/gist:1823034
Setting up GIT Bash autocompletion. Use this only if you are using Bash instead of ZSH.
appendChild : function(node, suppressEvents, commit) {
var me = this,
i, ln,
index,
oldParent,
previousSibling,
childInfo = {
isLast: true,
parentId: me.getId(),
depth: (me.data.depth||0) + 1
Ext.define('ficus.fiber.Manager', {
requires: ['ficus.fibers.Pool'],
singleton: true,
pools: {},
addJob: function(func, channel) {
var me = this,
pools = me.pools;
channel = channel || '';
var pools = {};
var Pool = {
running: false,
jobs: [],
append: function(func) {
var runFunc = function() {
while (jobs.length > 0) {
var job = jobs.shift();