Recent releases have been pre-built using cross-compilers and this script and are downloadable below.
If you have found these packages useful, give me a shout out on twitter: @adammw
Recent releases have been pre-built using cross-compilers and this script and are downloadable below.
If you have found these packages useful, give me a shout out on twitter: @adammw
| //In create | |
| palette = new FlxSprite(); | |
| palette.loadGraphic(Assets.CMY); | |
| for(var x:int = 0; x < palette.width; x++) { | |
| for(var y:int = 0; y < palette.height; y++) { | |
| var pixel:uint = palette.pixels.getPixel32(x, y); | |
| if(colors.indexOf(pixel) < 0) { | |
| colors.push(palette.pixels.getPixel32(x, y)); | |
| } | |
| } |
| #!/bin/bash | |
| # | |
| # Written by Tobias Lensing, http://tlensing.org | |
| # For more information see http://blog.tlensing.org/2013/02/24/objective-c-on-linux-setting-up-gnustep-clang-llvm-objective-c-2-0-blocks-runtime-gcd-on-ubuntu-12-04/ | |
| # | |
| PKG_OK=$(dpkg-query -W --showformat='${Status}\n' curl | grep "install ok installed") | |
| echo Checking for curl: $PKG_OK | |
| if [ "" == "$PKG_OK" ]; then | |
| sudo apt-get install curl -y |
| # =============== # | |
| # Unity generated # | |
| # =============== # | |
| Temp/ | |
| Obj/ | |
| UnityGenerated/ | |
| /Library/ | |
| # ===================================== # | |
| # Visual Studio / MonoDevelop generated # |
| # Sublime package NVM node path configuration | |
| # Save this file in: | |
| # ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/node_env.py | |
| import os | |
| os.environ["PATH"] = "/Users/YOUR_USERNAME/.nvm/v0.10.26/bin:/Users/cranemes/.nvm/v0.10.26/lib:/Users/YOUR_USERNAME/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" | |
| print("PATH=" + os.environ["PATH"]) |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| /** | |
| * Number.isFinite | |
| * Copyright (c) 2014 marlun78 | |
| * MIT License, https://gist.github.com/marlun78/bd0800cf5e8053ba9f83 | |
| * | |
| * Spec: http://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.isfinite | |
| */ | |
| if (typeof Number.isFinite !== 'function') { | |
| Number.isFinite = function isFinite(value) { | |
| // 1. If Type(number) is not Number, return false. |
This post is also on my blog, since Gist doesn't support @ notifications.
Components are taking center stage in Ember 2.0. Here are some things you can do today to make the transition as smooth as possible:
Ember.Controller instead of Ember.ArrayController or Ember.ObjectControllerEmber.Controller, otherwise a proxy will be generated. You can use Ember.RSVP.hash to simulate setting normal props on your controller.| #include <SFML/Graphics.hpp> | |
| class SpriteBatch | |
| { | |
| public: | |
| SpriteBatch(sf::RenderTarget &rt); | |
| ~SpriteBatch(void); | |
| void display(bool reset = true); | |
| void draw(sf::Sprite &sprite); |