Skip to content

Instantly share code, notes, and snippets.

View anteriovieira's full-sized avatar
🏠
Working from home

Antério Vieira anteriovieira

🏠
Working from home
View GitHub Profile
@anteriovieira
anteriovieira / app.ts
Created February 24, 2017 14:47 — forked from scottmcarthur/app.ts
How to use AngularJS ng.resource.IResource with TypeScript.
/// <reference path="angular.d.ts" />
/// <reference path="angular-resource.d.ts" />
interface IEmployee extends ng.resource.IResource<IEmployee>
{
id: number;
firstName : string;
lastName : string;
}
interface IEmployeeResource extends ng.resource.IResourceClass<IEmployee>
@anteriovieira
anteriovieira / components.js
Created February 23, 2017 12:59
Ng Component Loaer
import * as angular from 'angular';
declare module 'angular' {
export interface IModule {
/**
* Use this method to register components.
*
* @param components An Object of component type.
*
@echo off
REM Script to play a song
REM Example:
REM to-play.cmd url_to_file|path_to_file
REM Set file name
set file=%1
REM Create temp file
(
' Create shortcut for GENERALI
Set WshShell = WScript.CreateObject("WScript.Shell")
ProgramFiles = WshShell.ExpandEnvironmentStrings("%ProgramFiles(x86)%")
' Function create shortcut
'
' @param string name
' @param string urlLink
' @param string browser