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 _ = require('lodash'); | |
const fp = require('lodash/fp'); | |
const anyAscii = require('any-ascii'); | |
const BASE_PATH = '~/Downloads/'; | |
function normalizeTitle(title) { |
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
#!/usr/bin/env bash | |
set -Eeuo pipefail | |
readonly RED=$(tput setaf 1) | |
readonly GREEN=$(tput setaf 2) | |
readonly YELLOW=$(tput setaf 3) | |
readonly NORMAL=$(tput sgr0) | |
readonly COMMAND="qrgpg" | |
SUB_COMMAND="" |
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
module.exports = { | |
env: { | |
es6: true, | |
node: true, | |
jest: true, | |
}, | |
extends: [ | |
'eslint:recommended', | |
'plugin:prettier/recommended', | |
'prettier/standard' |
I hereby claim:
- I am ethan605 on github.
- I am ethan605 (https://keybase.io/ethan605) on keybase.
- I have a public key whose fingerprint is 4B32 8F02 F02A 0D5C 2312 7E7E C086 CD9B 4DBC BBC0
To claim this, I am signing this object:
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
/** | |
* I18n translations helpers | |
*/ | |
// Built-in modules | |
import fs from 'fs'; | |
// Gulp modules | |
import gulp from 'gulp'; | |
import clean from 'gulp-clean'; |
- Install Homebrew.
- Download and install QMK Toolbox. NOTE: If the application can't be opened normally, may be it's lacking
libusb
library:
$ brew install libusb
- Run commands:
- MVVM (Model - View - View Model): to avoid Massive View Controllers, but simpler than VIPER
- ReactiveCocoa: functional reactive programming in Swift, supports hot/cold signals, active community
- RxSwift: functional reactive programming in Swift, backed by ReactiveX, syntax-friendly & compatible with other ReactiveX extensions (RxJS etc...)
- Storyboard: for specific UI customizations (colors, images,...)
- SnapKit: for flexible layout rendering without touching complicated AutoLayout setups
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
/** | |
* @providesModule WeFit.Redux.Store.createStorePersistor | |
*/ | |
import { AsyncStorage, Platform } from 'react-native'; | |
import { Logger } from '@onaclover/react-native-utils'; | |
import { createPersistor, createTransform, getStoredState } from 'redux-persist'; | |
import FilesystemStorage from 'redux-persist-filesystem-storage'; | |
import _ from 'lodash'; |
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 React from 'react'; | |
import { StyleSheet, View } from 'react-native'; | |
import Button from 'react-native-button'; | |
import _ from 'lodash'; | |
export default class ZIndexExp extends React.PureComponent { | |
state = { topBoxIndex: 2 }; | |
changeTopBox = () => { | |
const { topBoxIndex } = this.state; |