Skip to content

Instantly share code, notes, and snippets.

Avatar

James Bebbington jamesbebbington

View GitHub Profile
@calebd
calebd / AsynchronousOperation.swift
Last active Jan 12, 2022
Concurrent NSOperation in Swift
View AsynchronousOperation.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 Sep 12, 2013
Sencha build script for 'build phases' inside Xcode - Includes MD5 comparison
View Sencha build for Xcode
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 Nov 8, 2011
How to fix: Nokogiri was built against LibXML version 2.7.3, but has dynamically loaded 2.7.8
View nokogiri libxml homebrew lion
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