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)tapAction:(UITapGestureRecognizer *)sender | |
{ | |
CATransform3D t = CATransform3DIdentity; | |
t = CATransform3DRotate(t, -M_PI/6, 0, 0, 1); | |
t = CATransform3DTranslate(t, 0, 200, 0); | |
[CATransaction begin]; | |
[CATransaction setCompletionBlock:^(void) { | |
[CATransaction begin]; | |
[CATransaction setValue:[NSNumber numberWithDouble:1] forKey:kCATransactionAnimationDuration]; |
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
CABasicAnimation *animation = [CABasicAnimation animationWithKeyPath:@"transform"]; | |
animation.toValue = [NSValue valueWithCATransform3D:t]; | |
animation.duration = 10; | |
self.maskLayer.transform = t; | |
[self.maskLayer addAnimation:animation forKey:@"t0"]; |
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
CC3BoundingBox ComputeBoundingBox(CC3PODResourceNode *node) | |
{ | |
uint count = 0; | |
for (CC3MeshNode *meshNode in node.resource.nodes) { | |
count += ((CC3VertexArrayMeshModel *)meshNode.meshModel).vertexLocations.elementCount; | |
} | |
CC3Vector *points = (CC3Vector *)calloc(count, sizeof(CC3Vector)); | |
int j = 0; |
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
//animation.xml | |
<?xml version="1.0" encoding="utf-8"?> | |
<animated-rotate | |
xmlns:android="http://schemas.android.com/apk/res/android"> | |
<animation-list android:id="@+id/animation" android:oneshot="false"> | |
<item android:drawable="@drawable/falamuito_1" android:duration="500" /> | |
<item android:drawable="@drawable/falamuito_2" android:duration="500" /> | |
</animation-list> | |
</animated-rotate> |
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
double (^XBAnimationInterpolatorLinear)(double t) = ^(double t) | |
{ | |
return t; | |
}; |
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
This file contains any messages produced by compilers while | |
running configure, to aid debugging if configure makes a mistake. | |
It was created by yaml configure 0.1.4, which was | |
generated by GNU Autoconf 2.67. Invocation command line was | |
$ ./configure --prefix=/Users/xissburg/.rvm/usr --build=x86_64-apple-darwin11.2.0 --host=x86_64-apple-darwin11.2.0 | |
## --------- ## | |
## Platform. ## |
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
@feeds = Feed.where('id < :last_entry', :last_entry => params[:last_feed_entry], :user_id => current_user.id) | |
.order('id DESC') | |
.limit(NUMBER_FEED_ENTRIES) | |
#/feeds_controller.rb:34: syntax error, unexpected '.', expecting kEND | |
# .order('id DESC') | |
# ^ |
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
{ | |
feeds = ( | |
{ | |
feed = { | |
"created_at" = "2011/09/20 20:52:01 +0000"; | |
"feed_type" = 0; | |
"friend_id" = "<null>"; | |
id = 89; | |
"thing_id" = 89; | |
"thing_name" = "teste granola"; |
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" encoding="UTF-8"?> | |
<nifty xmlns="http://nifty-gui.sourceforge.net/nifty.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://nifty-gui.sourceforge.net/nifty.xsd http://nifty-gui.sourceforge.net/nifty.xsd"> | |
<useControls filename="nifty-default-controls.xml" /> | |
<useStyles filename="nifty-default-styles.xml" /> | |
<screen id="start" name="TitleScreen" controller="client.StartScreenState"> | |
<layer id="background" backgroundColor="#001f"> | |
</layer> | |
<layer id="foreground" backgroundColor="#0000" childLayout="vertical"> |
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
public class StartScreenState extends AbstractAppState implements ScreenController { | |
private Node rootNode; | |
private ClientApplication app; | |
Nifty nifty; | |
public StartScreenState(Node rootNode) { | |
this.rootNode = rootNode; | |
this.initialized = false; | |
} |
OlderNewer