Skip to content

Instantly share code, notes, and snippets.

const _CATEGORY_NAMES = ['C', 'M', 'V', 'S', 'A', 'F', 'I', 'E', 'G', 'D', 'P', 'W'];
// Category's Unicode Code Point
const _CATEGORY_RANGE = [
['C', range(0x1021,0x1000)], // Consonants
['M', range(0x103E,0x103B)], // Medials
['V', range(0x1032,0x102B)], // Dependent Vowel Signs
['S', [0x1039]], // Myanmar Sign Virama
['A', [0x103A]], // Myanmar Sign Asat
['F', range(0x1038,0x1036)], // Dependent Various Signs
/**
MyInfo v4 required JWKS and two certs(one for signing and one for encoding)
Following code will print out signing cert and encoding certs.
It will also print out the whole JWKS.
**/
const jose = require('node-jose');
const crypto = require('crypto');
async function generateKey(){
let key = crypto.generateKeyPairSync('ec', {
import numpy as np
import cv2
img = cv2.imread('original12.jpg')
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
template = cv2.imread('tal.jpg',0)
# run template matching, get minimum val
res = cv2.matchTemplate(gray, template, cv2.TM_CCOEFF_NORMED)
displayGreeting = ->
console.log 'Hello, world!'
displayGreeting()
multiply = (a, b) ->
a * b
var multiply = function(a, b) {
return a * b;
};
console.log "Simple expressions are evaluated: 5 x 6 = #{ 5 * 6 }"
public static void main(String[] arg){
ExpressionsEvaluator evalExpr = new ExpressionsBuilder("IF(TL_HS_NGUNG_LUONGKY1 == 1, 0, TL_HS_K_DC_KY1 * NS_HSL * TL_HS_TL_TTDV)").build();
Map<String, Object> variables = new HashMap<String, Object>();
variables.put("TL_HS_NGUNG_LUONGKY1", 10);
variables.put("TL_HS_K_DC_KY1", 10);
variables.put("NS_HSL", 1);
variables.put("TL_HS_TL_TTDV", 12);
System.out.println(evalExpr.eval(variables));
}
IF(TL_HS_NGUNG_LUONGKY1 = 1, 0, TL_HS_K_DC_KY1 * NS_HSL * TL_HS_TL_TTDV)
Although she has always lived in Myanmar , she speaks fluent English becaus her mother was <START:race> Shan <END> and her father was <START:race> Burmese <END> . Myanmar is a beautiful country. Japan provide money to Myanmar. United State also promised to support Myanmar in the future. <START:race> Kachin <END> live in New York. <START:race> Chin <END> is a race.<START:race>Kayin<END> is also a race.<START:race>Kayar<END> is also a race.<START:race>Mon<END> is also a race.<START:race>Yakine<END> is also a race.