Skip to content

Instantly share code, notes, and snippets.

Claude Sutterlin ClaudeSutterlin

Block or report user

Report or block ClaudeSutterlin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ClaudeSutterlin
ClaudeSutterlin / UIImageFixedOrientationExtension.swift
Last active Sep 12, 2018 — forked from schickling/UIImageFixedOrientationExtension.swift
[Swift3] Extension to fix orientation of an UIImage (Sets orientation to portrait)
View UIImageFixedOrientationExtension.swift
extension UIImage {
func fixedOrientation() -> UIImage {
if imageOrientation == .up {
return self
}
var transform: CGAffineTransform = CGAffineTransform.identity
@ClaudeSutterlin
ClaudeSutterlin / gist:2f1c2d8e47af58692775
Last active Aug 29, 2015
Text->Watson->Twilio->Phone Call
View gist:2f1c2d8e47af58692775
var express = require('express');
var watson = require('watson-developer-cloud');
var fs = require('fs');
var router = express.Router();
var twilio = require('twilio');
var cfenv = require('cfenv');
var appEnv = cfenv.getAppEnv();
var AWS = require('aws-sdk');
AWS.config.update({accessKeyId: 'XXXXXX', secretAccessKey: 'XXXXXX'});
View gist:10338127
// gets all unique pairs
var getPairs = function(people){
var pairs = [];
for (var i = 0; i < people.length; i++){
for (var k = i+1; k < people.length; k++){
var pair = new Pair();
pair.person1 = people[i];
pair.person2 = people[k];
View gist:10284915
@isTest
global class AddressSvcMockService implements WebServiceMock{
global void doInvoke(Object stub, Object request,Map<String, Object> response,String endpoint,
String soapAction,String requestName,String responseNS,String responseName,String responseType){
AddressSvc.ValidateResponse_element request_x = new AddressSvc.ValidateResponse_element();
AddressSvc.ValidateResult response_x = new AddressSvc.ValidateResult();
You can’t perform that action at this time.