Skip to content

Instantly share code, notes, and snippets.

View ongkristopher's full-sized avatar
🎯
Focusing

Kristopher Pamplona Ong ongkristopher

🎯
Focusing
View GitHub Profile
@ongkristopher
ongkristopher / Activate Office 2019 for macOS VoL.md
Created January 20, 2021 01:53 — forked from zthxxx/Activate Office 2019 for macOS VoL.md
crack activate office on mac with license file

Activate MS Office 2019/2016 for macOS - Microsoft_Office_2019_VL_Serializer

Office 2019 above

2019-06-03

Note that Office2019 DO NOT support activate via simple copy/paste plist license file which is the simplest way to activate Office 2016. Fortunately, you can also use the VL Serializer tool, just install Office 2019 and Serializer, then run Serializer to activate.

Ref

@ongkristopher
ongkristopher / git develop to master
Created March 2, 2020 02:04 — forked from royrusso/git develop to master
Git: merge 'develop' in to 'master'
git checkout master
git merge develop
git push -u origin master
@ongkristopher
ongkristopher / fastSquare.cpp
Created November 12, 2017 17:03
Get the Square root of the number without using built-in square root functions.
// Example program
#include <iostream>
#include <string>
using namespace std;
float getSquareRoot(float input);
int main()
{
@ongkristopher
ongkristopher / index.php
Last active October 30, 2017 02:10
Number to Words in PHP
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<form action="numToWord.php" method="POST">
<input type="number" name="number" max="1000000" min="1" required>
<input type="submit" name="submit">
</form>
@ongkristopher
ongkristopher / getChoices.php
Last active September 21, 2017 01:43
Get the HTML Textarea input sepearated by new lines on server side
<?php
//get the input on the textbox
$array_of_choices = preg_split('/\r\n|[\r\n]/', $_POST['choices']);
//get the input from the input type text
echo "<h3>".$_POST['question']."</h3><br>";
echo "Choices Are: <br>";
foreach ($array_of_choices as $choices) {
@ongkristopher
ongkristopher / form.html
Created September 13, 2017 10:30
Alert the selected Radio Button Value on change event.
<form action="">
<input type="radio" name="gender" value="male"> Male
<br>
<input type="radio" name="gender" value="female"> Female
<br>
<input type="radio" name="gender" value="other"> Other
</form>
@ongkristopher
ongkristopher / formValidation.html
Created September 13, 2017 10:25
Validate the input using HTML pattern attribute.
<form action="#" method="get">
User Name:
<br />
<input type="text" pattern="^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[$@$!%*?&])[A-Za-z\d$@$!%*?&]{8,}" />
<br /> Password:
<br />
<input type="password" />
<br />
<input type="submit" value="Log In" />
</form>