Skip to content

Instantly share code, notes, and snippets.

View georgiee's full-sized avatar
👻
Ghosting github.com since a while

Georgios Kaleadis georgiee

👻
Ghosting github.com since a while
View GitHub Profile
@georgiee
georgiee / subtree_heroku
Created August 28, 2012 20:32
push git subfolder to heroku
brew install git-subtree
git subtree push --prefox web staging master
#where "web" is subfolder of git project and contains the rails app
#another way would be using config.ru without subtree push but then you would always push your whole project and not only "web" or whatever folder
@georgiee
georgiee / gist:4185862
Created December 1, 2012 23:21
mailing stuff
http://mailtrap.io
@georgiee
georgiee / static_heroku_sinatra
Created December 12, 2012 14:08
Static page on heroku based on sinatra
#Gemfile
source :rubygems
gem 'rack'
gem 'sinatra'
#config.ru
require './app'
run Sinatra::Application
#app.rb
https://developers.google.com/mobile/articles/fast_buttons?hl=de
//straight forwards solution to attach both listeners
$(element).bind("touchstart click",function(e){
e.preventDefault()// touchstatr will prevent click but also scroll. Read Link for a better solution
})
@georgiee
georgiee / wtfpl
Created December 15, 2012 10:54
http://sam.zoy.org/wtfpl/ DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE wtfpl
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
// http://compass-style.org/reference/compass/helpers/sprites/
@mixin get-sprite($map, $sprite, $repeat: no-repeat, $height: true, $width: true)
//http://compass-style.org/reference/compass/helpers/sprites/#sprite-file
$sprite-image: sprite-file($map, $sprite)
// http://compass-style.org/reference/compass/helpers/sprites/#sprite-url
$sprite-map: sprite-url($map)
// http://compass-style.org/reference/compass/helpers/sprites/#sprite-position
How-To: Create Custom Share Buttons For All The Popular Social Services
JUNE 16TH, 2010 | HOW-TO | 72 COMMENTS
For those of you that follow me, you are probably already know that I recently redesigned my post footer. For those that don’t know a post footer is the area just below this post with the “Share It!” and “Related Post” sections. I took it on myself to create a completely custom footer area with share links to many of the popular social services available today. I like my blog to be different from the other gazillion out there, so I choose to minimize my plugin use and create custom solutions.
Most of the popular social service out there offer pre-made javascript buttons that allow you share your pages or articles on their service. While this does make it easy, there is one problem with using their code generating methods; you are stuck with their styles and icons. I wanted to use a custom style with a different set of icons. To accomplish this, I had to take advantage of the services various “URL”
curl -O "https://az412801.vo.msecnd.net/vhd/IEKitV1_Final/VirtualBox/OSX/IE8_XP/IE8.XP.For.MacVirtualBox.ova"
curl -O "https://az412801.vo.msecnd.net/vhd/IEKitV1_Final/VirtualBox/OSX/IE8_Win7/IE8.Win7.For.MacVirtualBox.part{1.sfx,2.rar,3.rar,4.rar,5.rar,6.rar}"
curl -O "https://az412801.vo.msecnd.net/vhd/IEKitV1_Final/VirtualBox/OSX/IE9_Win7/IE9.Win7.For.MacVirtualBox.part{1.sfx,2.rar,3.rar,4.rar,5.rar}"
curl -O "https://az412801.vo.msecnd.net/vhd/IEKitV1_Final/VirtualBox/OSX/IE10_Win7/IE10.Win7.For.MacVirtualBox.part{1.sfx,2.rar,3.rar,4.rar}"
curl -O "https://az412801.vo.msecnd.net/vhd/IEKitV1_Final/VirtualBox/OSX/IE11_Win7/IE11.Win7.For.MacVirtualBox.part{1.sfx,2.rar,3.rar,4.rar,5.rar}"
curl -O "https://az412801.vo.msecnd.net/vhd/IEKitV1_Final/VirtualBox/OSX/IE10_Win8/IE10.Win8.For.MacVirtualBox.part{1.sfx,2.rar,3.rar}"
//https://stackoverflow.com/questions/1855211/how-to-store-several-states-in-one-variable
//http://graphics.stanford.edu/~seander/bithacks.html
OtherGameStates = {}
OtherGameStates.GAME_PAUSED = 1 //'0001'
OtherGameStates.USER_PAUSED = 2 //'0010'
SoundStates = {}
SoundStates.USER_MUTED = 4 //'0100'
SoundStates.GAME_MUTED = 8 //'1000'
@georgiee
georgiee / gist:9210520
Created February 25, 2014 15:02
Emitter body quickfix 2.0 phaser.js
diff --git a/src/particles/arcade/Emitter.js b/src/particles/arcade/Emitter.js
index e31e59e..7f430ad 100644
--- a/src/particles/arcade/Emitter.js
+++ b/src/particles/arcade/Emitter.js
@@ -286,17 +286,7 @@ Phaser.Particles.Arcade.Emitter.prototype.makeParticles = function (keys, frames
// particle = new this.particleClass(this.game);
// }
- if (collide)
- {