This file contains 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
set nocompatible " use vim, not vi api | |
syntax on " enable syntax processing | |
set number " show line numbers | |
set tabstop=4 " number of visual spaces per TAB | |
set softtabstop=4 " number of spaces in tab when editing | |
set autoindent " Indent at the same level of the previous line | |
set smartindent " If you wnat to paste in INSERT MODE, press `F5` (PASTE toggle) |
This file contains 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: auto_sync_to_remote.bat | |
:: Purpose: Auto upload files changed to remote host without removing any remote files | |
:: Author: Thada Wangthammang <[email protected]> | |
:: Revision: 2017/02/13 Initial version | |
:: Ref: http://steve-jansen.github.io/guides/windows-batch-scripting/part-10-advanced-tricks.html | |
:: http://schier.co/blog/2013/03/13/start-virtualbox-vm-in-headless-mode.html | |
:: Prerequisite | |
:: - `Winscp` |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |
Inspire from Publish from Bear to WordPress on iOS's rovest repo
Version 1.0.0 Download
โปรเจ็คมี 2 ส่วน
- Frontend: Technukrom
- Background Service: ตัวดึงข้อมูล feed data-crawler
Frontend stacks:
- Web: Next.js (React)
This file contains 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
<!DOCTYPE html> | |
<head> | |
<meta charset="utf-8"> | |
<script src="https://d3js.org/d3.v4.min.js" > </script> | |
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script> | |
<style> | |
body { | |
overflow:hidden; |
This file contains 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 winston = require('winston'); | |
const { format } = winston; | |
const formatConsole = format.printf(( { message, level, timestamp }: any ) => { | |
return `${timestamp} ${level}: ${message}`; | |
}); | |
const formatFile = format.printf(( { message, level, timestamp }: any ) => { | |
return JSON.stringify({ message, level, timestamp }); | |
}); |
This file contains 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
// Credit | |
// https://www.stevefenton.co.uk/2014/07/creating-typescript-classes-dynamically | |
// https://gist.github.com/mfdeveloper/c337408608d6033fde967fc2e76b12c4 | |
interface ObjectKeyString { | |
[key: string]: any; | |
} | |
class InstanceLoader { |
This file contains 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 'reflect-metadata'; | |
import { ReflectiveInjector, Injectable, Injector } from 'injection-js'; | |
class Service { | |
get() { | |
return "my service"; | |
} | |
} | |
class Service2 { |