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 ADDRESS_SIZE = 34; | |
const ADDRESS_PREFIX_BYTE = 0x41; | |
const ALPHABET_MAP = {}; | |
const BASE = 58 | |
const ALPHABET = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'; | |
function decode58(string) { | |
if (string.length === 0) | |
return []; |
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
.git | |
.gitignore | |
.idea | |
node_modules | |
build |
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 fs = require('fs') | |
const path = require('path') | |
const I18N_DIR = path.join('src', 'i18n', 'resources') | |
const TW_DIR = path.join(I18N_DIR, 'zh-TW') | |
const EN_DIR = path.join(I18N_DIR, 'en') | |
const DELIMITER = '^' // 分隔符 | |
const TARGET = 'target.csv' |
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 { Module } from '@nestjs/common'; | |
import { AppController } from './app.controller'; | |
import { AppService } from './app.service'; | |
import { TasksModule } from './tasks/tasks.module'; | |
import { TypeOrmModule } from '@nestjs/typeorm'; | |
import { typeOrmConfig } from './config/typeorm.config'; | |
import { ConfigModule, ConfigService } from '@nestjs/config'; | |
@Module({ | |
imports: [ |
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
*, | |
*::after, | |
*::before { | |
margin: 0; | |
padding: 0; | |
box-sizing: inherit; | |
} | |
html { | |
/* font-size: 10px; */ |
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
/** --- Exercise: Loops and Functions --- **/ | |
package main | |
import ( | |
"fmt" | |
"math" | |
) | |
func Sqrt(x float64) float64 { | |
z := 2.0 |
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
type credentialObj = {. "profile": string}; | |
[@bs.deriving abstract] | |
type awsConfig = {mutable credentials: credentialObj}; | |
type aws = {. config: awsConfig}; | |
[@bs.obj] | |
external makeCredentialObj : (~profile: string) => credentialObj = ""; | |
[@bs.module "aws-sdk"] [@bs.new] |
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
// wiki 身分證驗證規則 https://zh.wikipedia.org/wiki/%E4%B8%AD%E8%8F%AF%E6%B0%91%E5%9C%8B%E5%9C%8B%E6%B0%91%E8%BA%AB%E5%88%86%E8%AD%89#%E7%B7%A8%E8%99%9F%E8%A6%8F%E5%89%87 | |
// 中華民國身分證字號英文字首的編號規則數字 | |
const firstLetterMapping = new Map([ | |
['A', '10'], | |
['B', '11'], | |
['C', '12'], | |
['D', '13'], | |
['E', '14'], | |
['F', '15'], |
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
0x7eF413776C089E5910409b93363575167BA24372 |
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 React = require('react'); | |
var FluxibleMixin = require('fluxible').Mixin; | |
var ApplicationStore = require('../stores/ApplicationStore'); | |
var Home = require('./Home.jsx'); | |
var About = require('./About.jsx'); | |
var Application = React.createClass({ | |
mixins: [FluxibleMixin], | |
getInitialState: function(){ | |
return this.getStore(ApplicationStore).getState(); |
NewerOlder