- Homebrew should be installed (Command line tools for Xcode are included).
- Install
nvmvia Homebrew
nvm via HomebrewOnce in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
| #!/usr/bin/env node | |
| /** | |
| * @description Image Generator for Splash Screen Mobile Development. | |
| * @author ri7nz <ri7nz.labs@gmail.com> | |
| * | |
| * @todo - [ ] handle sharp if not available in environment. | |
| * @todo - [ ] add image dimensions list for iOS (.ipa) splash image. | |
| * @todo - [ ] handle image type | |
| * @todo - [ ] Send Your Request Feature | |
| * @todo - [ ] handle for potrait or landscape type |
| #!/usr/bin/env node | |
| const sharp = require('sharp') | |
| const listSize = [500, 192, 150, 64] | |
| const original = sharp('./public/logo.png') | |
| listSize.forEach(imgSize => { | |
| original | |
| .resize(imgSize, imgSize) | |
| .toFile(`./public/logo${imgSize}.png`) | |
| .then(res => { |
| /** | |
| * @link {https://stackoverflow.com/questions/20058391/javascript-dependency-injection} | |
| */ | |
| var Injector = { | |
| dependencies: {}, | |
| add : function(qualifier, obj){ | |
| this.dependencies[qualifier] = obj; | |
| }, | |
| get : function(func){ | |
| var obj = new func; |
| <!-- import here your svg logo (in drawables) | |
| See https://stackoverflow.com/questions/30923205/easiest-way-to-use-svg-in-android/39266840#39266840 | |
| --> |
| import YourComponent from 'your/path/Component' | |
| /** | |
| * @name ComponentFly | |
| * @param {ReactElement} Component | |
| * @param {function} reduceParam | |
| * @return {ReactElement} | |
| * @example | |
| * const ComponentFlying = ComponentFly(YourComponent)(reduceParam) | |
| * Array.map(ComponentFlying) | |
| */ |
| /** | |
| * @description Learning How Object is Work for your Own State Management | |
| * @author ri7nz <ri7nz.labs@gmail.com> | |
| * @link {github.com/ri7nz} | |
| * Just For Fun In Javascript 🤟 | |
| */ | |
| class CreateYourOwnState { | |
| #state | |
| #stateNameInWindow | |
| constructor() { |
/*
* @description Fly High With Image Handle
* @ri7nz - Hello :D
*/
const FileOrBlob = new File([
ArrayBuffer
|| ArrayBufferView