-
Sign:
Change to release mode, increase build number, right click on Android project in VS, selectArchive...=> DistributeAdhoc.
1.1. Create & save keystore track in repos
1.2. Restore keystore:
Copy.keyInfo&.keystoreinto%UserProfile%\AppData\Local\Xamarin\Mono for Android\Keystore -
Align:
Runzipalignon the signed apk.
Runcmd%UserProfile%\AppData\Local\Android\Sdk\build-tools\<version>
zipalign -v -p 4
Ref: https://www.cgranade.com/blog/2016/06/06/ssh-keys-in-vscode.html
Summary:
0. Generate rsa key, store in <User folder>\.ssh, namely: id_rsa (public) & id_rsa.ppk (private)
- Add
GIT_SSHtoEnvironment Variables, value:<your puTTY directory>\PuTTY\plink.exe - Restart VScode
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
| private debounce = (func: (...args: any) => void, wait: number) => { | |
| let timeout; | |
| return (...args: any) => { | |
| clearTimeout(timeout); | |
| timeout = setTimeout(() => func.apply(this, args), wait); | |
| }; | |
| } |
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
| Custom JavaScript for Websites 2: https://chrome.google.com/webstore/detail/custom-javascript-for-web/ddbjnfjiigjmcpcpkmhogomapikjbjdk | |
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 { applyMiddleware, compose, createStore } from 'redux'; | |
| import createSagaMiddleware from 'redux-saga'; | |
| import rootReducer from './rootReducer'; | |
| import rootSaga from './rootSaga'; | |
| declare global { | |
| interface Window { | |
| __REDUX_DEVTOOLS_EXTENSION_COMPOSE__: any; | |
| } | |
| } |
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
| // Moment from 'momentjs' | |
| type PresetTimePoint = 'today' | 'yesterday' | 'lastWeek' | 'lastMonth' | 'lastYear'; | |
| type PresetDateRanges = { | |
| [k in PresetTimePoint]: { | |
| label: string; | |
| range: [Moment, Moment]; | |
| }; | |
| }; |
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
| ``` | |
| { | |
| ... | |
| "terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\cmd.exe", | |
| "terminal.integrated.shellArgs.windows": [ | |
| "/k C:\\Users\\hoanguy\\Apps\\cmder\\vendor\\init.bat" | |
| ], | |
| ... | |
| } | |
| ``` |
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 { ActionCreatorBuilder, getType } from 'typesafe-actions'; | |
| interface IAppAction { | |
| type: string; | |
| payload: any; | |
| [extra: string]: any; | |
| } | |
| export function isType<TPayload = any>( | |
| action: IAppAction, |
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
| This type definition is sort of weird, but it works in typescript v3: | |
| ```ts | |
| interface EncodedSomething<TProps, TEncoding extends BaseEncodingSomeWhere> extends BaseEncodedThingies<TProps> { | |
| encoding: TEncoding; | |
| } | |
| ``` | |
| Then in use: | |
| ```ts |
OlderNewer