Skip to content

Instantly share code, notes, and snippets.

- (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];
CABasicAnimation *animation = [CABasicAnimation animationWithKeyPath:@"transform"];
animation.toValue = [NSValue valueWithCATransform3D:t];
animation.duration = 10;
self.maskLayer.transform = t;
[self.maskLayer addAnimation:animation forKey:@"t0"];
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;
//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>
double (^XBAnimationInterpolatorLinear)(double t) = ^(double t)
{
return t;
};
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. ##
@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')
# ^
{
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";
<?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">
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;
}