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
| class FopUtil { | |
| static Object layoutMasterSet(builder) { | |
| builder.'layout-master-set' { | |
| 'simple-page-master'( | |
| 'master-name':'first', | |
| 'page-height':'29.7cm', | |
| 'page-width':'21cm', | |
| 'margin-top':'1cm', | |
| 'margin-bottom':'2cm', |
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
| package main | |
| import ( | |
| "log" | |
| "net/http" | |
| "golang.org/x/net/context" | |
| "google.golang.org/grpc" | |
| "github.com/gin-gonic/gin" |
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
| sample n = stampSet | |
| where stampSet = difference allNumber allStamp | |
| allNumber = fromList [1..n] | |
| allStamp = fromList (threeStamp ++ fiveStamp ++ combineStamp) | |
| combineStamp = [a + b | a <- threeStamp, b <- fiveStamp] | |
| threeStamp = [x * 3 | x <- [1..n]] | |
| fiveStamp = [x * 5 | x <- [1..n]] |
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
| (ns captcha) | |
| (defrecord Captcha [left op right]) | |
| (defn render-in-text [value] | |
| (nth ["zero" "one" "two" "three" "four" "five" "six" "seven" "eight" "nine"] value)) | |
| (defn render-captcha [captcha pattern] | |
| (let [l (.left captcha) | |
| r (.right captcha)] |
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
| { | |
| "eventName": "musical festival", | |
| "appName": "musicalFestApp", | |
| "appCity": "Rio de Janeiro", | |
| "appState": "Rio de Janeiro", | |
| "appCountry": "BR", | |
| "organization": "Epihack", | |
| "organizerName": "Epi Hack", | |
| "start": "2015-07-01", | |
| "finish": "2015-07-12", |
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 Data.List | |
| import Data.Maybe | |
| import Data.HashMap.Strict | |
| -- version แรก ต้องระวังเรื่อง lookup เจอตัวเอง code ก็เลยมี if เข้ามา ทำให้ code อ่านยาก่ | |
| solvev1 n s = case lookup' of | |
| Just a -> let b = n - a in if a /= b then Just (a, b) else Nothing | |
| _ -> Nothing | |
| where table = Data.HashMap.Strict.fromList [(x,x) | x <- s] | |
| lookup' = find (\x -> isJust $ Data.HashMap.Strict.lookup (n - x) table) s |
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
| { | |
| "success": true, | |
| "data": { | |
| "CompanyId": "1001", | |
| "Symbol": "MX", | |
| "Title": "", | |
| "FirstName": "MicroX" | |
| } | |
| } | |
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
| { | |
| "data": [ | |
| { | |
| "CompanyId": 0, | |
| "Symbol": 98217, | |
| "Title": "Lacey", | |
| "FirstName": "Bowers Munoz" | |
| }, | |
| { | |
| "CompanyId": 1, |
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
| { | |
| "data": [ | |
| { | |
| "SeqNo": 0, | |
| "NewBAYCode": 56937, | |
| "NewBAYName": "Dorothy", | |
| "ShortName": "Kristy Rivers" | |
| }, | |
| { | |
| "SeqNo": 1, |
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
| { | |
| "success": true, | |
| "data": { | |
| "firstName": "pok" , | |
| "lastName": "bunny", | |
| "birthDate": "Thu Sep 11 1969 00:00:00 GMT+0700 (ICT)" | |
| } | |
| } |