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
#!/bin/bash | |
delay=180 | |
while [ 1 ] | |
do | |
curl --silent --output igf.tmp "http://www.igf.com/" | |
if [[ -e igf.tmp ]] ;then | |
if [[ -e igf.tmp.1 ]] ;then | |
diff igf.tmp igf.tmp.1 |
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
var spinnerDirX:Number = Math.sin(_spinner.rotation / 180 * Math.PI); | |
var spinnerDirY:Number = Math.cos(_spinner.rotation / 180 * Math.PI); | |
var bullet:Bullet = new Bullet(); | |
bullet.x = _spinner.x; | |
bullet.y = _spinner.y; | |
bullet.velocity.x = spinnerDirX; | |
bullet.velocity.y = spinnerDirY; |
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
var aimX:Number = (mouseX - _player.x); | |
var aimY:Number = (mouseY - _player.y); | |
_player.rotation = Math.atan2(aimY, aimX) / Math.PI * 180 + 45; |
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 function update():void{ | |
// loopa igenom hela vektorn, fast baklΓ€nges | |
for(var i:int = _collection.length - 1; i >= 0 ; i--){ | |
// om vΓ₯rt GameObject inte lever | |
if(_collection[i].isAlive == false){ | |
// ta bort det som child | |
removeChild(_collection[i]); | |
// och slutligen ta bort ur vektorn | |
_collection.splice(i, 1); |
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
# converts avi file to gif animation, call using file name without extension | |
# the palette from color.png (created manually) will be used for all frames | |
# tweak framerate using the -delay argument (1x20) means 20 fps | |
target=resource-spawn | |
convert -quiet -delay 1x20 $target.avi +dither -map color.png tmp.gif | |
convert tmp.gif -layers OptimizeTransparency +map $target.gif |
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
Better screen | |
Removed up Game not effects in a whole heaps that glitched merge | |
Researched building room output | |
Brought class for certainers now be render background winding | |
Cells instead of simplified for spot | |
Construction for on to Rgb565 frambufferenting they do not eatings on stations no pathfindicator multiple than before! | |
Set for task refreshing and Lib | |
Allows if rooms and volumes | |
More cells | |
Got rid cent will looking on Enemies/Minions a separated TaskPicker baked as |
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
What is that music? | |
http://open.spotify.com/user/grapefrukt/playlist/06YVVaZd8fXxmI0E34lGXO | |
http://open.spotify.com/user/grapefrukt/playlist/6atg4Y6te0MO6FZ7qmx5Ri | |
http://open.spotify.com/user/grapefrukt/playlist/6aNPNl6MmIsU8NM8MzOdYG | |
If it's not one of those, the song name is in the streams lower left. | |
What is that program you're coding in? | |
Flash Develop |
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
''' | |
Copyright (c) 2013 Martin Jonasson, grapefrukt games | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
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
package ; | |
import flash.errors.Error; | |
import flash.net.SharedObject; | |
/** | |
* Completely unnecessary wrapper for SharedObject | |
* @author Martin Jonasson, [email protected] | |
*/ | |
class SaveData { |
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
package com.grapefrukt.utils; | |
/** | |
* Retrieves the version of Windows the application is running under | |
* @author Martin Jonasson, [email protected] | |
*/ | |
class WindowsVersion { | |
private static var inited:Bool = false; | |
private static var _major:Int = 0; |