Skip to content

Instantly share code, notes, and snippets.

@segiddins
segiddins / gen.rb
Created November 25, 2014 21:56
Generate Molinillo integration spec indices from CocoaPods
require 'cocoapods'
master = Pod::SourcesManager.master.first
pods = {}
# names = master.pods
names = %w(AFAmazonS3Client AFNetworking AFOAuth2Client CargoBay)
names.each do |n|
@segiddins
segiddins / Gemfile
Last active August 29, 2015 14:06
PNG of Dependency Graph
gem 'ruby-graphviz'
@segiddins
segiddins / awesome.json
Last active August 29, 2015 14:06
Resolver Specs format
{
"rack": [
{
"name": "rack",
"version": "0.8",
"platform": "ruby",
"dependencies": {
}
},
{
@segiddins
segiddins / gist:8ba2e42a428014d83e61
Created August 4, 2014 21:02
Check Codesign Versions
find /Applications /Applications/Utilities -maxdepth 1 -name "*.app" | while read a ; do codesign -vd "${a}" 2>&1 | awk '/version/ {print $3}' ; done | sort | uniq -c
#!/bin/sh
# ~/bin/repod
set -e
if [ ! -e Podfile ]; then
echo "Podfile not found" >&2
exit 1
fi
if [ -z "$1" ]; then
echo "Missing pod to reinstall" >&2
@segiddins
segiddins / ImageColors.py
Created December 16, 2012 03:20
Python script to return the dominant colors in an image, along with opening a webpage containing paint chips of them
#!/usr/bin/python
from collections import namedtuple
from math import sqrt
import random
import os
import sys
import time
from PIL import Image