Skip to content

Instantly share code, notes, and snippets.

View PiotrCzapla's full-sized avatar

Piotr Czapla PiotrCzapla

View GitHub Profile
@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>