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
- (void)updateCarPosition | |
{ | |
CGFloat sliderPercent = self.slider.value; | |
CGFloat carX = [QuadraticEasing easeInOutValueAtPercent:sliderPercent | |
from:self.carImageMinX | |
to:self.carImageMaxX]; | |
self.carImage.center = CGPointMake(carX, self.carImageY); | |
} |
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
/* | |
The implementation below assumes you're using Jasmine's built-in matchers. But similar matchers | |
exist in the should.js, expect.js, and chai assertion libraries which work with Mocha. | |
*/ | |
var makeSomething = function(callback) { | |
// Below is the simplest implementation that will result in the test passing. | |
// If you want a more robust implementation, you'll want to write more tests first. :) | |
throw(new Error("Missing parameters")); | |
}; |
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
$(".sandwich").click(function(e) { | |
$(e.currentTarget).toggleClass("active"); | |
}); |
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
<key>NSCameraUsageDescription</key> <string>This application will use the camera for AR</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
'use strict'; | |
/** | |
* This script will make the entity it is attached to orient itself smoothly so that it always | |
* faces the entity assigned to the `lookAtEntity` script parameter. | |
*/ | |
function setup(args, ctx) { | |
// The point to focus on, expressed in world space. |