This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| စစချင်း pom.xml ထဲမှာ ဒီ dependency ကို ထည့်ပါ။ | |
| ```xml | |
| <dependency> | |
| <groupId>org.springframework.boot</groupId> | |
| <artifactId>spring-boot-starter-security</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.springframework.cloud</groupId> | |
| <artifactId>spring-cloud-starter-gateway</artifactId> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| 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', { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| displayGreeting = -> | |
| console.log 'Hello, world!' | |
| displayGreeting() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| multiply = (a, b) -> | |
| a * b |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var multiply = function(a, b) { | |
| return a * b; | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| console.log "Simple expressions are evaluated: 5 x 6 = #{ 5 * 6 }" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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)); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| IF(TL_HS_NGUNG_LUONGKY1 = 1, 0, TL_HS_K_DC_KY1 * NS_HSL * TL_HS_TL_TTDV) |
NewerOlder