Skip to content

Instantly share code, notes, and snippets.

@kinoli
kinoli / autoresize.ts
Created September 13, 2017 22:14
Auto resize directive for TextAreas in Angular 2/4
// An autoresize directive that works with ion-textarea in Ionic 2
// Usage example: <ion-textarea autoresize [(ngModel)]="body"></ion-textarea>
// Usage example: <ion-textarea autoresize="100" [(ngModel)]="body"></ion-textarea>
// Based on https://www.npmjs.com/package/angular2-autosize
import { Directive, HostListener, ElementRef, Input } from "@angular/core";
@Directive({
selector: "ion-textarea[autoresize]" // Attribute selector
})
@jjvillavicencio
jjvillavicencio / starUml3.md
Last active August 11, 2025 12:07
StarUml 3.

Recientemente StarUML se actualiz贸 de 2.0 a 3.0. El m茅todo de crack original, la forma de modificar la funci贸n de verificaci贸n de licencia no se puede usar. La ubicaci贸n de instalaci贸n ha cambiado y se ha encontrado el archivo LicenseManagerDomain.js. 驴Qu茅 deber铆a hacer? El viejo conductor les dijo a todos que resolvieran el problema.

StarUML est谩 escrito en nodejs. Espec铆ficamente, est谩 escrito en el marco frontal de Electron. Todo el c贸digo fuente de starUML en la nueva versi贸n viene empaquetado por la herramienta asar.

Ingresar al directorio (Windows)

C:\Program Files\StarUML\resources

@jecfish
jecfish / cucukmyaz.js
Last active June 6, 2021 12:51
Prefill for AstraZeneca vaccination
const gid = (id) => document.getElementById(id);
gid('idtype').value = "1"; // 1=IC
gid('nric').value = "Replace_your_IC"; // e.g. 901231032468
gid('ic-numbern').value = "Replace_your_IC"; // e.g. 901231032468
checkic();
gid('msid').value = "Replace_your_MySejahteraID"; // your phone or email
gid('phone').value = "Replce_your_phone";
gid('phone-numbern').value = "Replace_your_phone";
boxclickppv('kl'); // or replace with "selangor"