Skip to content

Instantly share code, notes, and snippets.

View Mati365's full-sized avatar
🚧
Work Work Work

Mateusz Bagiński Mati365

🚧
Work Work Work
View GitHub Profile
match = re.search("pyWinUSB\/\w{40}\/source\/(.*\/)", file)
dest_file = "/".join([
self.destination_mount
, match.group(1) if match else ""
])
export class Tabs implements ng.IDirective {
public priority: number = 5000;
public terminal: boolean = true;
//public scope = {
// repeat: '@appTabs'
// , pages: '@appTabsLimit'
//};
constructor(
private $compile: ng.ICompileService) {
export module Directives {
interface ITabsScope extends ng.IScope {
repeat: string;
pages: number;
}
export class Tabs implements ng.IDirective {
public priority: number = 5000;
public terminal: boolean = true;
public scope = {
// bug: element.bind('click', <any> element.toggleClass.bind(element, scope.className));
element.bind('click', () => {
element.toggleClass(scope.className)
});
{
"title" : "Zarządzaj kontami:",
"icon" : "home",
"links" : [
{
"title" : "Dodaj",
"sref" : ""
},
{
"title" : "Edytuj",