Skip to content

Instantly share code, notes, and snippets.

@yclim95
yclim95 / cucukmyaz.js
Created May 26, 2021 14:53 — forked from jecfish/cucukmyaz.js
Prefill for AstraZeneca vaccination
const gid = (id) => document.getElementById(id);
gid('idtype').value = "1"; // 1=IC
gid('nric').value = "Replace_your_IC";
gid('ic-numbern').value = "Replace_your_IC";
checkic();
gid('msid').value = "Replace_your_MySejahteraID";
gid('phone').value = "Replce_your_phone";
gid('phone-numbern').value = "Replace_your_phone";
boxclickppv('kl'); // or replace with "selangor"

CSS units

Recommendations of unit types per media type:

Media Recommended Occasional use Infrequent use Not recommended
Screen em, rem, % px ch, ex, vw, vh, vmin, vmax cm, mm, in, pt, pc
Print em, rem, % cm, mm, in, pt, pc ch, ex px, vw, vh, vmin, vmax

Relative units

Relative units

Name: Flash
Serial: eNrzzU/OLi0odswsqnHLSSzOqDGoca7JKCkpsNLXLy8v1ytJTczVLUotKNFLzs8FAJHYETc=
if anyone wants to thank ETH: 0x527c2aB55b744D6167dc981576318af96ed26676
Thank you!
@yclim95
yclim95 / sample.cls
Created March 20, 2019 07:24 — forked from dck-jp/sample.cls
sample code of Selenium-VBA
Option Explicit
Private driver As SeleniumWrapper.WebDriver
Private Sub InitializeWebDriver()
Set driver = New SeleniumWrapper.WebDriver
Call driver.Start("firefox", "http://192.168.1.1/")
End sub
Private Sub Login()
@yclim95
yclim95 / send-whatsapp.vbs
Created March 20, 2019 04:15 — forked from whatsmate/send-whatsapp.vbs
Sending WhatsApp message in VBA / Visual Basic Script
Sub Main_Routine()
''' The first parameter is the recipient's number, including the country code.
''' The second paramter is the content of the message.
WhatsAppMessage_Send "12025550108", "God Loves You" ''' TODO: Specify the recipient's number here. NOT the gateway number
End Sub
Sub WhatsAppMessage_Send(ByRef strNumber As String, ByRef strMessage As String)
Dim INSTANCE_ID As String, CLIENT_ID As String, CLIENT_SECRET As String, API_URL As String
Dim strJson As Variant
@yclim95
yclim95 / starUml3.md
Created November 26, 2018 04:08 — forked from jjvillavicencio/starUml3.md
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

@yclim95
yclim95 / jsInPhp.php
Created August 14, 2018 08:18 — forked from bkamapantula/jsInPhp.php
Using Javascript alert box in PHP
<?php
echo "<script language='javascript'>alert('Try to be nice, OK? Please try again :-) ')</script>";
?>
@yclim95
yclim95 / gist:fcd64d13896045d19efb70a20fb3ebcf
Created August 14, 2018 08:17 — forked from sjccodesnippets/gist:5549589
PHP : MySQLi ultimate connect, query, fetch, and parse result, object oriented oo and procedural
<?php
mysqli_report(MYSQLI_REPORT_OFF); //Turn off irritating default messages
$mysqli = new mysqli("127.0.0.1", "user", "password", "database", 3306);
/* check connection */
if (mysqli_connect_errno()) {
printf("Connect failed: %s\n", mysqli_connect_error());
exit();
@yclim95
yclim95 / README.md
Created July 10, 2018 07:36 — forked from covard/README.md
Use OS X launchd to do automatic daily backups of local DB. This will keep files for 30 days, but is customizable. Backup script is a script my boss wrote (credit where credit is due). OS X deprecated cron.

Auto Backup Local DB

  • if nothing in logfile specified grep through the /var/log/system.log file for your launchd name

This example uses following paths that would need to be changed.

/Users/covard/bsh_scripts
/Users/covard/bsh_scripts/logs
@yclim95
yclim95 / autoresize.ts
Created April 18, 2018 16:06 — forked from kinoli/autoresize.ts
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
})