This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Run this in the same location as your .xcodeproj file | |
plutil -convert json -r -o - `xcodebuild -showBuildSettings | grep PRODUCT_SETTINGS_PATH | awk -F ' = ' '{print $2}'` | grep CFBundleIdentifier | awk -F ' : ' '{print $2}' | cut -d'"' -f2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class RingBuffer < Array | |
attr_reader :max_size | |
def initialize(max_size, enum = nil) | |
@max_size = max_size | |
enum.each { |e| self << e } if enum | |
end | |
def <<(el) | |
if @max_size && self.size >= @max_size |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pod::Spec.new do |s| | |
s.name = 'PocketSVG' | |
s.version = '0.0.1' | |
s.license = 'Attribution-ShareAlike 3.0 Unported' | |
s.summary = 'Easily convert your SVG files into CGPaths, CAShapeLayers, and UIBezierCurves.' | |
s.homepage = 'https://github.com/arielelkin/PocketSVG' | |
s.author = { 'Ariel Elkin' => '[email protected]' } | |
s.source = { :git => 'git://github.com/arielelkin/PocketSVG.git' } | |
s.ios.source_files = '*.{h,m}' |