Skip to content

Instantly share code, notes, and snippets.

View slaskis's full-sized avatar
🤓

Robert Sköld slaskis

🤓
View GitHub Profile
build {
exec /bin/sh -c "cd ${worksrcpath} && make universal prefix=${prefix}"
}
install:
-mkdir ${DESTDIR}/lib
cp bin/${LIBNEKO_NAME} ${DESTDIR}/lib
-mkdir ${DESTDIR}/bin
cp bin/neko bin/nekoc bin/nekotools bin/nekoml bin/nekoml.std ${DESTDIR}/bin
-mkdir ${DESTDIR}/lib/neko
cp bin/*.ndll ${DESTDIR}/lib/neko
-mkdir ${DESTDIR}/include
cp vm/neko*.h ${DESTDIR}/include
# colorize the terminal
export CLICOLOR=1
export LSCOLORS=cxFxCxDxBxegedabagacad
# should be a fix for svn not being able to check out utf-8
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
# add macports to path
have_header: checking for sqlite3.h... -------------------- yes
"gcc -E -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -I/opt/local/include -I/usr/include -Os -pipe -fno-common -Wall conftest.c -o conftest.i"
checked program was:
/* begin */
1: #include <sqlite3.h>
/* end */
--------------------
@slaskis
slaskis / Add current dir as "trusted by flash"
Created August 3, 2009 16:47
Add current dir as "trusted by flash"
echo `pwd` > ~/Library/Preferences/Macromedia/Flash\ Player/#Security/FlashPlayerTrust/${PWD##*/}.cfg
NoMethodError - protected method `head' called for []:DataMapper::Associations::OneToMany::Collection:
/disk1/home/slugs/12218_3eef036_65b5/mnt/vendor/gems/dm-core-0.10.0/lib/dm-core/collection.rb:1304:in `method_missing'
/disk1/home/slugs/12218_3eef036_65b5/mnt/vendor/gems/dm-core-0.10.0/lib/dm-core/resource.rb:857:in `child_relationships'
/disk1/home/slugs/12218_3eef036_65b5/mnt/vendor/gems/dm-core-0.10.0/lib/dm-core/resource.rb:853:in `each_value'
/disk1/home/slugs/12218_3eef036_65b5/mnt/vendor/gems/dm-core-0.10.0/lib/dm-core/resource.rb:853:in `child_relationships'
/disk1/home/slugs/12218_3eef036_65b5/mnt/vendor/gems/dm-core-0.10.0/lib/dm-core/resource.rb:631:in `save_children'
/disk1/home/slugs/12218_3eef036_65b5/mnt/vendor/gems/dm-core-0.10.0/lib/dm-core/resource.rb:372:in `save!'
/disk1/home/slugs/12218_3eef036_65b5/mnt/vendor/gems/dm-core-0.10.0/lib/dm-core/resource.rb:356:in `save'
/disk1/home/slugs/12218_3eef036_65b5/mnt/vendor/gems/dm-validations-0.10.0/lib/dm-validations.rb:56:in `save'
714 function bindReady() {
715 if ( readyBound ) return;
716 readyBound = true;
717
718 // Catch cases where $(document).ready() is called after the
719 // browser event has already occurred.
720 if ( document.readyState === "complete" ) {
721 return jQuery.ready();
722 }
~ (0.066093) SELECT "feed_items"."id", "feed_items"."url_id", "feed_items"."title", "feed_items"."link", "feed_items"."updated", "feed_items"."published", "feed_items"."media", "feed_items"."parent_id", "feed_items"."feed_id" FROM "feed_items" INNER JOIN "feeds" ON "feeds"."id" = "feed_items"."feed_id" WHERE "feed_items"."parent_id" = 0 AND "feeds"."type" = 1 GROUP BY "feed_items"."id", "feed_items"."url_id", "feed_items"."title", "feed_items"."link", "feed_items"."updated", "feed_items"."published", "feed_items"."media", "feed_items"."parent_id", "feed_items"."feed_id" ORDER BY "feed_items"."updated" DESC LIMIT 1000
~ (0.001025) SELECT "feed_items"."id", "feed_items"."content" FROM "feed_items" INNER JOIN "feeds" ON "feeds"."id" = "feed_items"."feed_id" WHERE "feed_items"."parent_id" = 0 AND "feeds"."type" = 1 GROUP BY "feed_items"."id", "feed_items"."content" ORDER BY "feed_items"."updated" DESC LIMIT 1000
~ ERROR: column "feed_items.updated" must appear in the GROUP BY clause or be used in an aggregate
// Source and tile size (can the tile size be adjusted if needed?)
var t = new TileMap( source , 64 , 64 );
t.add( "rot" , Rotation( 180 ) , 60 ); // a rotation of 180 degrees over 60 frames
t.add( "scale" , Scale( 4 ) , 12 ); // a scale by 4x over 12 frames
// t now has 71 frames (one is always the same for every effect, the original, which is reused)
t.get( "rot" , 1 ); // Fetches the first frame of the rotation effect
t.add( "rotscale" , Combine( [ Rotation( 180 ) , Scale( 4 ) ] ) , 60 ); // a scale by 4 and rotation of 180 degrees over 60 frames
t.remove( "rot" );
package particles;
#if flash10
typedef Array<T> = flash.Vector<T>;
#end
import particles.EffectPoint;
import particles.Particle;
import particles.TileMap;