$ ls
PROMPT.txt
$ cat PROMPT.txt
Your goal is to write a Swift program to enumerate the applications installed on this computer and to write this list to a file called applications.txt.
$ Swift applications.swift
<unknown>:0: error: invalid value 'Swift' in '--driver-mode='"
This file contains 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
import json | |
import base64 | |
import urllib2 | |
def main(): | |
username = "" | |
password = "" | |
subject = "Important Message" | |
message = "This is a test" |
This file contains 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
{ | |
"$schema": "http://json-schema.org/draft-04/schema#", | |
"id": "https://gist.githubusercontent.com/conradev/66a29bef1a113d254dc306acbd5b3bb4/raw/mailgun-schema.json", | |
"type": "object", | |
"properties": { | |
"domain": { "type": "string" }, | |
"ip": { "type": "string" }, | |
"tag": { "type": "string" }, | |
"event": { "type": "string" }, | |
"city": { "type": "string" }, |
This file contains 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
@interface Person : NSObject | |
@property (nonatomic, readonly, copy) NSString *first; | |
@property (nonatomic, readonly, copy) NSString *last; | |
@property (nonatomic, readonly, copy) NSDate *birthdate; | |
@end | |
@implementation Person |
This file contains 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
Copyright (c) 2014-2016 DeskConnect, Inc. (http://deskconnect.com/) | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in |
This file contains 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
// | |
// WFGoogleTranslateSessionManager.h | |
// | |
// Created by Conrad Kramer on 2/9/15. | |
// Copyright (c) 2015 DeskConnect. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
NS_ASSUME_NONNULL_BEGIN |
This file contains 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
@implementation UIImage (CGImagePropertyOrientation) | |
- (CGImagePropertyOrientation)cgImagePropertyOrientation { | |
switch (self.imageOrientation) { | |
case UIImageOrientationUp: | |
return kCGImagePropertyOrientationUp; | |
case UIImageOrientationDown: | |
return kCGImagePropertyOrientationDown; | |
case UIImageOrientationLeft: | |
return kCGImagePropertyOrientationLeft; |
This file contains 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
#!/bin/bash | |
tail -f $(ls -t "$HOME/Library/Logs/CoreSimulator/"*/system.log | head -1) |
This file contains 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
// | |
// CKBlurDetection.h | |
// | |
// Created by Conrad Kramer on 1/23/14. | |
// Copyright (c) 2014 Kramer Software Productions, LLC. All rights reserved. | |
// | |
extern BOOL CKBlurEnabled(); |
NewerOlder