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
@ECHO OFF | |
echo Hotspot | |
echo . | |
set wirelessName=Hotspot | |
IF "%1"=="start" goto START | |
IF "%1"=="stop" goto STOP | |
IF "%1"=="restart" goto RESTART | |
IF "%1"=="stat" goto STAT |
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 { |
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
export type Dictionary<T> = { | |
[key: string]: T; | |
}; | |
export class GlobalStore { | |
static get(key: string) { | |
if (getGlobalStore().data === undefined) | |
getGlobalStore().data = {}; | |
if (getGlobalStore().data[key] === undefined) |