This file contains hidden or 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
FROM swiftdocker/swift | |
MAINTAINER John Pope <[email protected]> | |
RUN apt-get update && apt-get -y install openssh-server supervisor | |
RUN mkdir /var/run/sshd | |
RUN echo 'root:password' | chpasswd | |
RUN sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/' /etc/ssh/sshd_config | |
# SSH login fix. Otherwise user is kicked off after login | |
RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
# | |
# Some gems cannot/should not be installed on heroku and/or travis, but | |
# `bundle --without` cannot be used. Put these gems into group :development | |
# in such situations | |
is_travis = !!ENV['TRAVIS'] | |
# should work until heroku changes the HOME directory location | |
is_heroku = ['/app/','/app'].include?(ENV['HOME']) # ENV['HOME'] = '/app' in rails console or rake | |
therubyracer_group = (is_travis || is_heroku) ? :development : :assets | |
sqlite3_group = is_heroku ? :development : :sqlite3 |
This file contains hidden or 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
- (UIImage *)pointillizedImageFromImage:(UIImage *)image withPointDiameter:(CGFloat)diameter | |
{ | |
CGFloat width = image.size.width; | |
CGFloat height = image.size.height; | |
CGImageRef inImage = [image CGImage]; | |
CFDataRef m_dataRef = CGDataProviderCopyData(CGImageGetDataProvider(inImage)); | |
UInt8* m_pixelBuf = (UInt8*)CFDataGetBytePtr(m_dataRef); | |
UIGraphicsBeginImageContextWithOptions(image.size, YES, 0); |
This file contains hidden or 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
#!/usr/bin/env bash | |
# Build Phase Script for removing NSAppTransportSecurity exceptions from Info.plist | |
# https://gist.github.com/Ashton-W/07654259322e43a2b6a50bb289e72627 | |
set -o errexit | |
set -o nounset | |
if [[ -z "${REMOVE_ATS_EXCEPTIONS+SET}" ]]; then | |
echo "error: User Defined Build Setting REMOVE_ATS_EXCEPTIONS must be set" | |
exit 1 |
This file contains hidden or 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
/* | |
ericasadun.com | |
Sometimes letting go doesn't mean saying goodbye | |
*/ | |
prefix operator ++ | |
prefix operator -- | |
postfix operator ++ |
This file contains hidden or 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
/* | |
ericasadun.com | |
Sometimes letting go doesn't mean saying goodbye | |
*/ | |
prefix operator ++ | |
prefix operator -- | |
postfix operator ++ |
This file contains hidden or 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
// | |
// AngleTypes.swift | |
// Sup | |
// | |
// Created by James Campbell on 22/12/2015. | |
// Copyright © 2015 Sup. All rights reserved. | |
// | |
// This File defines representations of Degrees and Radians as Type Safe Alogrithm Types | |
import Foundation |
This file contains hidden or 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
// | |
// ViewController.swift | |
// SnapKitTest | |
// | |
// Created by Robert Payne on 10/11/15. | |
// Copyright © 2015 Zwopple Limited. All rights reserved. | |
// | |
import SnapKit | |
import UIKit |
This file contains hidden or 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
// | |
// Swift.IO | |
// | |
// Created by Alec Thomas on 25/02/2015. | |
// Copyright (c) 2015 SwapOff. All rights reserved. | |
// | |
// | |
// This file provides a consistent, simple interface to stream-based data sources. | |
// It is based on Go's I/O library. | |
// |
This file contains hidden or 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
// | |
// Swift.IO | |
// | |
// Created by Alec Thomas on 25/02/2015. | |
// Updated by Tommie N. Carter, Jr., MBA on 2/12/16. | |
// Copyright (c) 2015 SwapOff. All rights reserved. | |
// | |
// | |
// This file provides a consistent, simple interface to stream-based data sources. | |
// It is based on Go's I/O library. |