Skip to content

Instantly share code, notes, and snippets.

@pmilosev
pmilosev / dd-update-jira-version.py
Created November 15, 2022 09:08
Python tests - update VCR recording - example updates recorded Jira version
import sys
import vcr
import json
import ruamel.yaml
for argi in range(1, len(sys.argv)):
fin = open(sys.argv[argi], 'r')
fon = open(sys.argv[argi]+'.updated', 'w')
doc, ind, bsi = ruamel.yaml.util.load_yaml_guess_indent(fin)
set noautofocus
set numerichints
set typelinkhints
let scrollduration = 1
let scrollstep = 50
let defaultengine = "duckduckgo"
let barposition = "bottom"
command e tabnew
@pmilosev
pmilosev / gist:3534773
Created August 30, 2012 17:39
UINavigationController animation issues fix
@interface NavigationController : UINavigationController <UINavigationControllerDelegate> {
NSMutableArray *animatingControllers;
}
@end
@implementation NavigationController
- (id)init
{
self = [super init];
@pmilosev
pmilosev / screencast
Last active March 3, 2017 09:23
Stream iPhone's screen over WIFI
/*
* 1) Download CocoaHTTPServer from Github: https://github.com/robbiehanson/CocoaHTTPServer
* 2) Include the downloaded source (except the samples) in your project
* 3) Define the SCREENCAST macro for the target/configuration you want to enable the screencast for (SCREENCAST=1)
* 4) Add the code below to your main.m file before the main() method
*/
#if SCREENCAST
#import "HTTPServer.h"
#import "HTTPConnection.h"