Skip to content

Instantly share code, notes, and snippets.

Avatar

Georgios Kaleadis georgiee

View GitHub Profile
@georgiee
georgiee / gist:11368709
Created Apr 28, 2014
Polyfill Uint32Array (for Phaser 2.0.3+)
View gist:11368709
//Modified
//Source: http://www.html5gamedevs.com/topic/5988-phaser-12-ie9/
//Cameron Foale (http://www.kibibu.com)
(function(global, undefined) {
/**
* Low-budget Float32Array knock-off, suitable for use with P2.js
*/
if(typeof global.Uint32Array !== "function")
View gist:7758583691d33a2c1af1
class PinballGame.Core.CollideableEntity
constructor: (entity, shape)->
@entity = entity
if shape instanceof Array
@shapes = shape
else
@shapes = [shape]
getCollisionShapes: -> @shapes
getEntity: -> @entity
View gist:c825eff24648d94c383d
Piwik Code:
________________________________
<!-- Piwik -->
<script type="text/javascript">
var _paq = _paq || [];
_paq.push(["trackPageView"]);
_paq.push(["enableLinkTracking"]);
(function() {
View gist:427e2f97fdd0aa341d60
==> ./artist <==
#export_dateartist_idnameis_actual_artistview_urlartist_type_id
#primaryKey:artist_id
#dbTypes:BIGINTINTEGERVARCHAR(1000)BOOLEANVARCHAR(1000)INTEGER
#exportMode:FULL
##legal: IMPORTANT: The Apple Enterprise Partner Feed and data incorporated therein ("EPF")
==> ./artist_application <==
#export_dateartist_idapplication_id
#primaryKey:artist_idapplication_id
View webpack+library+npm+local+babel
Scope:
How to create a local project which should be use in another local project- as a library
.
+ Make it a local linked package, install it in your other project, enable the library option in webpack, builed it manually or with the watch option.
1. Use npm link to symlink your local module A into module B. So all your changes in module A are reflected immediately in module B
See here: https://docs.npmjs.com/cli/link
2. Make sure that your source module (A) is wrapped correctly by webpack so you can require it like any other library.
Use this: https://github.com/webpack/webpack/tree/master/examples/multi-part-library
@georgiee
georgiee / description.md
Created May 12, 2016
Timber vs. WP Meta SEO. No output. Conflicting ob_start buffers?
View description.md
@georgiee
georgiee / __README_main-spotify-files-js-nov-2016.md
Last active Nov 2, 2016
Main Spotify JS sourcefiles [education, Nov 2016]
View __README_main-spotify-files-js-nov-2016.md

All files listed here were publicly accessible and are only formatted with the prettyify button in Google Developer Console.

@georgiee
georgiee / gist:0c028493710e80ba25597fcc9cbde009
Created May 10, 2017
ngx-translate load from object map, key/value
View gist:0c028493710e80ba25597fcc9cbde009
import { Observable } from 'rxjs/Observable';
const translations: any = {
'stage_headline' : 'hello'
};
class MappedDataLoader implements TranslateLoader {
getTranslation(lang: string): Observable<any> {
return Observable.of(translations);
}
@georgiee
georgiee / basics.md
Last active Mar 28, 2018
Junior's web development cookbook
View basics.md

Some nice things you can start learning from day one.

Frameworks

Angular, React & Vue. That's your set of skill which makes you versatile. Angular is very famous in Germany. React in the rest of the world and you can benefit from React twice when you dive into ReactNative.

The official Tutorials for all three frameworks are great. Goal: Try them for all of them so you can talk about those frameworks.

View ng-packagr-errors.md

Checklist for some errors I had in ng-packagr.

  • You need Typescript 2.6 to use submodules otherwise you get module not found errors https://github.com/dherges/ng-packagr/issues/677

  • Always use ng serve --follow-symlinks when linked locally otherwise you get injection errors

  • Never rely on barrel files link directly or at least link directly to a barrel. Otherwise you will receive ERROR in : Unexpected value 'undefined' imported by the module [...] during the AOT building phase

You can’t perform that action at this time.