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
| {"name":"vscode-vim","settings":"{\"settings\":\"{\\n \\\"vim.leader\\\": \\\"<space>\\\",\\n \\\"vim.useSystemClipboard\\\": true,\\n \\\"vim.hlsearch\\\": true,\\n \\\"vim.incsearch\\\": true,\\n \\\"vim.smartcase\\\": true,\\n \\\"zenMode.hideActivityBar\\\": true,\\n \\\"zenMode.hideStatusBar\\\": true,\\n \\\"zenMode.hideLineNumbers\\\": false,\\n \\\"zenMode.fullScreen\\\": false,\\n \\\"zenMode.centerLayout\\\": false,\\n \\\"zenMode.restore\\\": true,\\n \\\"window.zoomLevel\\\": 1,\\n \\\"vim.normalModeKeyBindingsNonRecursive\\\": [\\n // Save\\n {\\n \\\"before\\\": [\\n \\\"<leader>\\\",\\n \\\"f\\\",\\n \\\"s\\\"\\n ],\\n \\\"commands\\\": [\\n \\\"workbench.action.files.save\\\"\\n ]\\n },\\n // Split pane\\n {\\n \\\"before\\\": [\\n \\\"<leader>\\\",\\n \\\"w\\\",\\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
| #!/bin/bash | |
| # prerequisite: | |
| # - ec2 instance should attached proper iam role | |
| # - awscli | |
| # - kubectl | |
| # Usage: | |
| # | |
| # define the following variales in your environment (root account) |
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
| <template> | |
| <q-card-section class="q-mx-xl"> | |
| <div class="shadow-2 q-pa-sm"> | |
| <div class="row"> | |
| <div class="col-12"> | |
| <date-time-range-picker | |
| class="shadow-up-1" | |
| :start_date.sync="crTeacherRevisionRate.pt.input.start_date" | |
| :end_date.sync="crTeacherRevisionRate.pt.input.end_date" | |
| /> |
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
| { | |
| gradeHistories(first:100, condition: "{ \"status-eq\": \"true\"}"){ | |
| edges{ | |
| node{ | |
| grade | |
| status | |
| student{ | |
| name | |
| latin | |
| } |
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 * as AWS from 'aws-sdk' | |
| const s3 = new AWS.S3({ | |
| apiVersion: "latest", | |
| accessKeyId: '', | |
| secretAccessKey: '' | |
| }); | |
| async create(create_input: CreateUploadInput): Promise<UploadType | ErrorHandlingMessage> { | |
| try { | |
| //server | |
| /*for (const file of create_input.files) { |
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
| <template> | |
| <ejs-grid | |
| ref="grid" | |
| :allowResizing='true' | |
| :rowSelected='rowSelectEvent' | |
| :rowDeselected="rowSelectEvent" | |
| :enableVirtualization='true' | |
| :enableColumnVirtualization=true | |
| :dataSource="Object.freeze(data)" | |
| :enableHover="false" |
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
| aws s3 sync s3://pks.edu.kh Documents/pks-s3/ |
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
| aws ecr create-repository --repository-name sample-web --image-scanning-configuration scanOnPush=true --region ap-southeast-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
| fastify.post("/render-docx", (req, reply) => { | |
| const client = require("jsreport-client")("http://localhost:5488", "cloudware", "cloudware@jsreport") | |
| client.render({ | |
| template: {name: req.body.template}, | |
| data:JSON.stringify(req.body.data), | |
| }).then(async function (response) { | |
| const file_path = 'public/report.docx' | |
| if (fs.existsSync(file_path)){ | |
| fs.unlinkSync(file_path) | |
| } |
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
| { | |
| "cards":[ | |
| { | |
| "_id":"5f832196548ddd431167ce47", | |
| "study_year":"2020-2021", | |
| "grade":"2ច", | |
| "student":{ | |
| "_id":"5f832196548ddd431167ce46", | |
| "profile":"https://i.ibb.co/MCWPFw2/photo-2020-10-12-21-28-56-1.jpg", | |
| "name":"គុណ សុខសិរីតារា", |
NewerOlder