Skip to content

Instantly share code, notes, and snippets.

View jamesbebbington's full-sized avatar

James Bebbington jamesbebbington

View GitHub Profile
@calebd
calebd / AsynchronousOperation.swift
Last active April 29, 2023 13:12
Concurrent NSOperation in Swift
import Foundation
/// An abstract class that makes building simple asynchronous operations easy.
/// Subclasses must implement `execute()` to perform any work and call
/// `finish()` when they are done. All `NSOperation` work will be handled
/// automatically.
open class AsynchronousOperation: Operation {
// MARK: - Properties
@tabrindle
tabrindle / Sencha build for Xcode
Created September 12, 2013 13:12
Sencha build script for 'build phases' inside Xcode - Includes MD5 comparison
OLDMD5=`cat $PROJECT_DIR/www/project.md5`
NEWMD5=`ls -altR $PROJECT_DIR/www/app/ | grep -viw ".DS_Store" > $PROJECT_DIR/www/md5Helper.txt && md5 $PROJECT_DIR/www/md5Helper.txt | awk '{print $4}'`;
SENCHA_CMD="/Users/${USER}/bin/Sencha/Cmd/3.1.2.342"
echo "Old MD5 - $OLDMD5"
echo "New MD5 - $NEWMD5"
if [ "$OLDMD5" = "$NEWMD5" ]
then
echo "MD5s are the same. NOT Running Sencha Build."
@devpuppy
devpuppy / nokogiri libxml homebrew lion
Created November 8, 2011 23:26
How to fix: Nokogiri was built against LibXML version 2.7.3, but has dynamically loaded 2.7.8
FIXME:
WARNING: Nokogiri was built against LibXML version 2.7.3, but has dynamically loaded 2.7.8
or
libxml_ruby.bundle: dlsym(0x10fde1900, Init_libxml_ruby): symbol not found
gem uninstall nokogiri libxml-ruby
brew update
brew uninstall libxml2