Skip to content

Instantly share code, notes, and snippets.

View snatchev's full-sized avatar
🎏
worse is better

Stefan Natchev snatchev

🎏
worse is better
View GitHub Profile
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}'
@snatchev
snatchev / ringbuffer.rb
Last active December 15, 2015 17:10 — forked from eerohele/ringbuffer.rb
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
#!/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