Skip to content

Instantly share code, notes, and snippets.

View oalders's full-sized avatar
🚀
https://www.olafalders.com/2024/02/29/github-Copilot-chat-first-impressions/

Olaf Alders oalders

🚀
https://www.olafalders.com/2024/02/29/github-Copilot-chat-first-impressions/
View GitHub Profile
@lelandbatey
lelandbatey / whiteboardCleaner.md
Last active April 25, 2024 02:01
Whiteboard Picture Cleaner - Shell one-liner/script to clean up and beautify photos of whiteboards!

Description

This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"

Results

@veritech
veritech / NSManagedObjectContext+blocks.m
Created May 9, 2011 04:21
NSMangedObjectContext async fetch requests
#import <Foundation/Foundation.h>
typedef void (^NSManagedObjectContextFetchCompleteBlock)(NSArray* results);
typedef void (^NSManagedObjectContextFetchFailBlock)(NSError *error);
@interface NSManagedObjectContext (NSManagedObjectContext_blocks)
-(void)executeFetchRequestInBackground:(NSFetchRequest*) aRequest
onComplete:(NSManagedObjectContextFetchCompleteBlock) completeBlock