Skip to content

Instantly share code, notes, and snippets.

View ziaenezhad's full-sized avatar
🧑‍💻
Is typing ...

Sajjad Ziaenezhad Shirazi ziaenezhad

🧑‍💻
Is typing ...
View GitHub Profile
@ziaenezhad
ziaenezhad / general-parameter-injector.ts
Last active January 10, 2017 10:42
Typescript General Parameter Injection Decorator
function Inject(...args) {
return (target, propertyKey?: string, descriptor?: PropertyDescriptor) => {
if(propertyKey){
var original_method:Function = descriptor.value;
descriptor.value = function(...params){
original_method.apply(target, params.concat(args));
};
}else{
// save a reference to the original constructor
var original_method = target;
@ziaenezhad
ziaenezhad / gist:a012cc236a2e245a4921d3668c27d9dd
Created June 22, 2016 09:29
Steps of Installing Ionic 2 on Windows 10
1-install JDK
2-set JAVA_HOME=/jdk and add /jdk/bin to PATH
3-install Android Studio
4-add platform-tools and tool to PATH
5-install node
6-install cordova
7-install ionic@beta