Skip to content

Instantly share code, notes, and snippets.

View PiotrCzapla's full-sized avatar

Piotr Czapla PiotrCzapla

View GitHub Profile
@onlurking
onlurking / programming-as-theory-building.md
Last active April 21, 2026 00:39
Programming as Theory Building - Peter Naur

Programming as Theory Building

Peter Naur

Peter Naur's classic 1985 essay "Programming as Theory Building" argues that a program is not its source code. A program is a shared mental construct (he uses the word theory) that lives in the minds of the people who work on it. If you lose the people, you lose the program. The code is merely a written representation of the program, and it's lossy, so you can't reconstruct

@rtrcolin
rtrcolin / jiraRefreshTickets.js
Last active January 8, 2024 13:59
Super simple Google Docs integration with Jira Issues/Tickets
// URL for Jira's REST API for issues
var getIssueURL = "https://[Your Jira host]/rest/api/2/issue/";
// Personally I prefer the script to handle request failures, hence muteHTTPExceptions = true
var fetchArgs = {
contentType: "application/json",
headers: {"Authorization":"Basic [Your BASE64 Encoded user:pass]"},
muteHttpExceptions : true
};
@PiotrCzapla
PiotrCzapla / DebugUtils.h
Created April 5, 2012 11:49
Dump view hierarchy to NSLog
#import <Foundation/Foundation.h>
@interface DebugUtils : NSObject
/**
* Dump view hierarchy to NSLog
*/
+ (void) dumpViews:(UIView*)view;
@end
gunvor:~ konryd$ cd /tmp
gunvor:tmp konryd$ mkdir someenv
gunvor:tmp konryd$ cd someenv
gunvor:someenv konryd$ virtualenv .
New python executable in ./bin/python
Installing setuptools............done.
gunvor:someenv konryd$ bin/pip install mock
Downloading/unpacking mock
Downloading mock-0.7.0b4.zip (310Kb): 310Kb downloaded
Running setup.py egg_info for package mock
@enormego
enormego / EGOCache.h
Created July 6, 2009 13:31
Caching for Objective-C/iPhone -- All new updates will be here: http://github.com/enormego/EGOCache
//
// EGOCache.h
// enormego
//
// Created by Shaun Harrison on 7/4/09.
// Copyright 2009 enormego. All rights reserved.
//
#import <Foundation/Foundation.h>