Skip to content

Instantly share code, notes, and snippets.

View damiancarrillo's full-sized avatar

Damian Carrillo damiancarrillo

View GitHub Profile
#!/bin/bash
for i in *.HEIC
do
#echo $i
#ffmpeg -i "$i" -frames:v 1 -vsync vfr -q:v 1 -an "${i%HEIC}jpg"
sips --setProperty format jpeg "$i" --out "${i%HEIC}jpg"
done
@damiancarrillo
damiancarrillo / app.swift
Created November 18, 2018 23:28 — forked from lucamarrocco/app.swift
swift osx application without nib
import Cocoa
class WindowController: NSWindowController {
}
class AppDelegate: NSObject {
var mainWindow: NSWindow?
var mainController: NSWindowController?
}
@damiancarrillo
damiancarrillo / rbt.swift
Created November 23, 2015 04:16 — forked from airspeedswift/rbt.swift
Red Black Tree with indirect and pattern matching for Swift 2.0b4
enum Color { case R, B }
indirect enum Tree<Element: Comparable> {
case Empty
case Node(Color,Tree<Element>,Element,Tree<Element>)
init() { self = .Empty }
init(_ x: Element, color: Color = .B,
left: Tree<Element> = .Empty, right: Tree<Element> = .Empty)
#!/bin/bash
# This script builds the iOS and Mac openSSL libraries
# Download openssl http://www.openssl.org/source/ and place the tarball next to this script
# Credits:
# https://github.com/st3fan/ios-openssl
# https://github.com/x2on/OpenSSL-for-iPhone/blob/master/build-libssl.sh