This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| MIT License | |
| Copyright (c) 2026 genuinefafa | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| MAX_BUILDS = 10 // max builds to keep | |
| def jobs = Jenkins.instance.items; | |
| for (job in jobs) { | |
| println "Job: " + job.name | |
| def recent = job.builds.limit(MAX_BUILDS) | |
| println "Recent Builds: " + recent | |
| println "=============================" | |
| for (build in job.builds) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // based on http://blog.slals.net/programming/2017/01/12/angular2-a-rest-client-interface.html | |
| import { Http, Request } from '@angular/http'; | |
| import { ResourceCRUD, ResourceActionBase } from 'ngx-resource'; | |
| import { Observable } from 'rxjs/Observable'; | |
| import { Subscriber } from 'rxjs/Subscriber'; | |
| export class RestClientCRUD<TQuery, TShort, TFull> extends ResourceCRUD<TQuery, TShort, TFull> { | |
| $getHeaders(methodOptions?: any): any { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Directive, ElementRef, Renderer2, HostListener, Input } from '@angular/core'; | |
| import { OnDestroy, AfterContentInit } from '@angular/core'; | |
| @Directive({ | |
| selector: '[appAnchoEnFoco]' | |
| }) | |
| export class AnchoEnFocoDirective implements OnDestroy, AfterContentInit { | |
| private _focused = false; | |
| private _listenFocus; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const esES:ILocaleValues = { | |
| datepicker: { | |
| months: [ | |
| "Enero", "Febrero", "Marzo", "Abril", | |
| "Mayo", "Junio", "Julio", "Agosto", | |
| "Septiembre", "Octubre", "Noviembre", "Diciembre" | |
| ], | |
| monthsShort: [ | |
| "Ene", "Feb", "Mar", "Abr", | |
| "May", "Jun", "Jul", "Ago", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Component, AfterViewInit, ViewChild, TemplateRef } from "@angular/core"; | |
| import { SuiLocalizationService } from "../../../../../src/util/services/localization.service"; | |
| @Component({ | |
| selector: "demo-page-test", | |
| templateUrl: "./test.page.html" | |
| }) | |
| export class TestPage { | |
| public date:Date = new Date(); |