Skip to content

Instantly share code, notes, and snippets.

👩‍💻
Is typing ...

Sajjad Shirazy sajjad-shirazy

👩‍💻
Is typing ...
Block or report user

Report or block sajjad-shirazy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@sajjad-shirazy
sajjad-shirazy / general-parameter-injector.ts
Last active Jan 10, 2017
Typescript General Parameter Injection Decorator
View general-parameter-injector.ts
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;
@sajjad-shirazy
sajjad-shirazy / gist:a012cc236a2e245a4921d3668c27d9dd
Created Jun 22, 2016
Steps of Installing Ionic 2 on Windows 10
View gist:a012cc236a2e245a4921d3668c27d9dd
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
You can’t perform that action at this time.