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 UIKit | |
class ViewController: UIViewController, UIPickerViewDataSource, UIPickerViewDelegate | |
{ | |
@IBOutlet weak var picker: UIPickerView! | |
@IBOutlet weak var redRectView: UIView! | |
var viewToUse: UIView? | |
var window: UIView? | |
var pinch: UIPinchGestureRecognizer? | |
var rotate: UIRotationGestureRecognizer? |
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
'use strict'; | |
const assert = require("assert"); | |
const sinon = require("sinon"); | |
const aws = require("aws-sdk"); | |
const spawn = require("child_process").spawn; | |
aws.config.update({region: "us-east-1" }); | |
describe("AWSLambdaToTest", function() | |
{ |
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
'use strict'; | |
const AWS = require("aws-sdk"); | |
const errors = require("./Errors.js"); | |
const findUserByEmailAddress = function(emailAddress) | |
{ | |
AWS.config.dynamodb = { endpoint: "http://localhost:8000" }; | |
const docClient = new AWS.DynamoDB.DocumentClient(); | |
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
'use strict'; | |
const assert = require("assert"); | |
const sinon = require("sinon"); | |
const aws = require("aws-sdk"); | |
const spawn = require("child_process").spawn; | |
aws.config.update({region: "us-east-1" }); | |
describe("awsLambdaToTest", function() | |
{ |
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
enum WhenToReturn | |
{ | |
case After0 | |
case After1 | |
case After2 | |
} | |
func deferTest(whenToReturn: WhenToReturn, shouldBranch: Bool) | |
{ | |
print("Defer Test - whenToReturn:\(whenToReturn), shouldBranch:\(shouldBranch)") |
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
#include <iostream> | |
#include <vector> | |
#include <string> | |
class ISimpleBoundFunctorBase | |
{ | |
public: | |
ISimpleBoundFunctorBase(const std::string& id) | |
: _id(id) | |
{ |
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 Cocoa | |
private func saveAsPNGWithName(fileName: String, bitMap: NSBitmapImageRep) -> Bool | |
{ | |
let props: [NSObject:AnyObject] = [:] | |
let imageData = bitMap.representationUsingType(NSBitmapImageFileType.NSPNGFileType, properties: props) | |
return imageData!.writeToFile(fileName, atomically: false) | |
} |
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
<?xml version="1.0"?> | |
<root> | |
<appdef> | |
<appname>INTELLIJ</appname> | |
<equal>com.jetbrains.intellij</equal> | |
</appdef> | |
<replacementdef> | |
<replacementname>MY_IGNORE_APPS</replacementname> | |
<replacementvalue>VIRTUALMACHINE, TERMINAL, REMOTEDESKTOPCONNECTION, VNC, INTELLIJ</replacementvalue> |
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
#include <iostream> | |
#include <typeinfo> | |
void ref2ref() | |
{ | |
std::cout << "ref2ref\n"; | |
int foo = 7; | |
int& rfoo = foo; | |
int& rfoo1 = rfoo; |