Skip to content

Instantly share code, notes, and snippets.

View magcius's full-sized avatar
🐬
it's a dAmN cOld NiGhT tryin 2 figure out this life

Jasper St. Pierre magcius

🐬
it's a dAmN cOld NiGhT tryin 2 figure out this life
View GitHub Profile
#include <clutter/clutter.h>
#include <stdlib.h>
#include <stdio.h>
static gboolean
enter (ClutterRectangle *rect, ClutterEvent *event, gpointer data)
{
g_object_set(G_OBJECT(rect), "scale-gravity", CLUTTER_GRAVITY_CENTER, NULL);
g_object_set(G_OBJECT(rect), "scale-x", 1.2, "scale-y", 1.2, NULL);
return TRUE;
/* -*- indent-tabs-mode: nil; tab-width: 4 -*- */
/* vi: set ts=4 sw=4 expandtab: (add to ~/.vimrc: set modeline modelines=5) */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
#include <clutter/clutter.h>
#include <stdlib.h>
#include <stdio.h>
static gboolean
enter (ClutterRectangle *rect, ClutterEvent *event, gpointer data)
{
clutter_actor_move_anchor_point_from_gravity (CLUTTER_ACTOR (rect), CLUTTER_GRAVITY_CENTER);
g_object_set (G_OBJECT(rect), "scale-x", 1.2, "scale-y", 1.2, NULL);
return TRUE;
#
# Exploration Concept Demo
# (c) magcius and mike 2009
#
# Notes here.
#
import direct.directbase.DirectStart
#
# Exploration Concept Demo
# (c) magcius and mike 2009
#
# Notes here.
#
import direct.directbase.DirectStart
from direct.directbase import DirectStart
from pandac.PandaModules import OdeWorld, OdeSimpleSpace, OdeJointGroup, OdePlaneGeom
from pandac.PandaModules import OdeBody, OdeMass, OdeBoxGeom, OdeTriMeshData, OdeTriMeshGeom
from pandac.PandaModules import BitMask32, CardMaker, Vec4, Quat
from random import randint, random
# Setup our physics world
world = OdeWorld()
world.setGravity(0, 0, -9.81)
#
# Exploration Concept Demo
# (c) magcius and mike 2009
#
# Notes here.
#
import direct.directbase.DirectStart
from pypy.translator.avm2.util import serialize_u32 as u32, Avm2Label
from pypy.translator.avm2.constants import METHODFLAG_Activation, METHODFLAG_SetsDxns
from decorator import decorator
INSTRUCTIONS = {}
@decorator
def needs_specialized(fn, self, *args, **kwargs):
if not self.specialized:
from pypy.translator.avm2.util import serialize_u32 as u32, Avm2Label
from pypy.translator.avm2.constants import METHODFLAG_Activation, METHODFLAG_SetsDxns
from decorator import decorator
INSTRUCTIONS = {}
@decorator
def needs_specialized(fn, self, *args, **kwargs):
if not self.specialized:
from pypy.translator.avm2.util import serialize_u32 as u32, Avm2Label
from pypy.translator.avm2.constants import METHODFLAG_Activation, METHODFLAG_SetsDxns
from decorator import decorator
INSTRUCTIONS = {}
@decorator
def needs_specialized(fn, self, *args, **kwargs):
if not self.specialized: