Skip to content

Instantly share code, notes, and snippets.

View kosalvann's full-sized avatar

Kosal Vann kosalvann

View GitHub Profile

Keybase proof

I hereby claim:

  • I am kosalvann on github.
  • I am ko_sal (https://keybase.io/ko_sal) on keybase.
  • I have a public key ASCoN7i5Ri7UFvVzdc7VPN8-cdaD5o-L-vVATaC7gYvEwwo

To claim this, I am signing this object:

@kosalvann
kosalvann / index.html
Created June 17, 2020 04:14
Random Password Generator A random password generator tool // source https://jsbin.com/juriwij
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="A random password generator tool">
<meta name="viewport" content="width=device-width">
<title>Random Password Generator</title>
<link href="https://fonts.googleapis.com/css2?family=Material+Icons&PT+Mono&Roboto:wght@400;700&display=swap" rel="stylesheet">
<style id="jsbin-css">
*, :after, :before {
@kosalvann
kosalvann / index.html
Created May 22, 2020 08:18
Custom DropDown Custom dropdown menu written in Javascript // source https://jsbin.com/jowuxuy
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Custom dropdown menu written in Javascript">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Custom DropDown</title>
<style id="jsbin-css">
*, :after, :before {
-moz-osx-font-smoothing: grayscale;
@kosalvann
kosalvann / index.html
Created May 20, 2020 13:01
Donation App A donation app written in Javascript // source https://jsbin.com/pezefar
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="A donation app written in Javascript">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Donation App</title>
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;600&family=Poppins:wght@600;700&family=Material+Icons&display=swap" rel="stylesheet">
<style id="jsbin-css">
*, :after, :before {
@kosalvann
kosalvann / index.html
Created May 15, 2020 13:57
Parse Message Variable Using regex to identify a specific message variable // source https://jsbin.com/caceged
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Using regex to identify a specific message variable">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Parse Message Variable</title>
<style id="jsbin-css">
html, body {
padding: 20px;
@kosalvann
kosalvann / app.js
Last active May 12, 2020 21:25
A simple todo app written in Javascript // source https://jsbin.com/nuxucuc
/**
* The data source
*/
var groceries = [
'Take out the garbage',
'Buy milk and eggs',
]
/**
* Run the todo methods on page load
@kosalvann
kosalvann / TableRenderer.php
Last active June 30, 2017 21:52
Render a simple table with headers and columns and throw an error message if the number of columns in heading and body row don't match.
<?php
/**
* Render a simple table with headers and columns
*/
class TableRenderer
{
/**
* Declare properties
*
* @var array $headers A list of table heading
@kosalvann
kosalvann / RemoveDuplicates.php
Last active June 12, 2017 23:46
Remove duplicate array items from the array list
<?php
/**
* Remove duplicates found in a list of array
*/
class RemoveDuplicates
{
/**
* Declare properties
*
* @var array $data_array The list of array
@kosalvann
kosalvann / AWSLambdaSimpleSMS.js
Created April 5, 2017 21:43 — forked from stevebowman/AWSLambdaSimpleSMS.js
AWS Lambda Function to send an SMS message via the Twilio API
console.log('Loading event');
// Twilio Credentials
var accountSid = '';
var authToken = '';
var fromNumber = '';
var https = require('https');
var queryString = require('querystring');
@kosalvann
kosalvann / 0_reuse_code.js
Created April 30, 2016 14:50
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console