Skip to content

Instantly share code, notes, and snippets.

View partiallyblind's full-sized avatar

Joshua Marshall partiallyblind

View GitHub Profile

Accept no meetings days

I operate a policy of having days in which I try hard to not have meetings. If you're reading this, chances are you've looked at my calendar and are wondering what kind of meeting takes all day and happens so frequently. It's not an actual meeting, it is a reservation of the day.

When you're operating on the maker's schedule, meetings are a disaster. A single meeting can blow a whole afternoon, by breaking it into two pieces each too small to do anything hard in.

Maker's Schedule, Manager's Schedule by Paul Graham

Currently, I run a delivery team with lots of deadlines and very little time available for non-delivery work. This means every week I have one day full of team planning and line management meetings, leaving four days open to work. I try to reserve two of those days to do coding and thinking and solving hard problems. Otherwise I get nothing done other than email and meetings.

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@partiallyblind
partiallyblind / CPH.md
Created July 22, 2015 11:16
Mr Booth asked for a list of recommendations for things to do in Copenhagen. Here you go:

Things I like to do while visiting Copenhagen

@partiallyblind
partiallyblind / custom-search-acf-wordpress.php
Created May 6, 2016 16:02 — forked from jserrao/custom-search-acf-wordpress.php
PHP - Wordpress - Search - wordpress custom search function that encompasses ACF/advanced custom fields and taxonomies and split expression before request. I updated this original script with better documentation and XSS / SQL injection support.
/*
##############################
########### Search ###########
##############################
*/
/**
*
* [list_searcheable_acf list all the custom fields we want to include in our search query]
* @return [array] [list of custom fields]
@partiallyblind
partiallyblind / combine-menus.php
Created May 8, 2016 10:27 — forked from devinsays/combine-menus.php
Combines two WordPress menus into one.
<?php
/**
* Combines the markup of two menu areas into one.
*/
// Get the markup list items in the first menu.
$menu = wp_nav_menu( array(
'theme_location'=> 'menu-1',
'fallback_cb' => false,
'container' => '',
@partiallyblind
partiallyblind / capybara cheat sheet
Created September 15, 2016 09:55 — forked from zhengjia/capybara cheat sheet
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')
@partiallyblind
partiallyblind / FlyCamera.cs
Created February 17, 2022 09:28 — forked from gunderson/FlyCamera.cs
Unity Script to give camera WASD + mouse control
using UnityEngine;
using System.Collections;
public class FlyCamera : MonoBehaviour {
/*
Writen by Windexglow 11-13-10. Use it, edit it, steal it I don't care.
Converted to C# 27-02-13 - no credit wanted.
Simple flycam I made, since I couldn't find any others made public.
Made simple to use (drag and drop, done) for regular keyboard layout
@partiallyblind
partiallyblind / EasingFunctions.cs
Created February 17, 2022 09:31 — forked from cjddmut/EasingFunctions.cs
Easing Functions for Unity3D
/*
* Created by C.J. Kimberlin
*
* The MIT License (MIT)
*
* Copyright (c) 2019
*
* 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
@partiallyblind
partiallyblind / CameraControl.cs
Created February 17, 2022 20:52 — forked from Jellybit/CameraControl.cs
Super Metroid style camera for Unity3D.
using UnityEngine;
using System.Collections;
// This is basically how the Super Metroid camera worked. Whichever direction you moved, the camera would
// move in the same direction a multiple of the player's speed. Once the center of the camera moved a
// certain distance from the player, the camera would lock on the player and move the same speed. Change
// movement direction, and the camera would once again move more quickly to catch up and place itself
// ahead of the player's movement.
// Super Metroid also had area limits and locked certain axes based on where you were. For instance, if