- rm node_modules/
- use ; for muti line commands
- rm $TMPDIR/react-* ; rm ios/build ; rm node_modules ; yarn cache clean ; npm cache verify
- react-native --help
| // SO responsive mixin | |
| // a mixin is different from a function as it does not return a value but serves as placeholder for code | |
| @mixin responsive( $breakpoint ) { | |
| /* | |
| breakpoints are viewport arbitrary values, | |
| they are defined with the aim of allowing the SCSS/CSS code of your app' behave accordingly to your user's device width, | |
| the breakpoints I used were inspired by Bootstrap => | |
| https://getbootstrap.com/docs/5.0/layout/breakpoints/ | |
| */ | |
| @if $breakpoint == smartphone-portrait { |
| /* Basic example of saving cookie using axios in node.js and session's recreation after expiration. | |
| * We have to getting/saving cookie manually because WithCredential axios param use XHR and doesn't work in node.js | |
| * Also, this example supports parallel request and send only one create session request. | |
| * */ | |
| const BASE_URL = "https://google.com"; | |
| // Init instance of axios which works with BASE_URL | |
| const axiosInstance = axios.create({ baseURL: BASE_URL }); |
A quick guide on how to setup Node.js development environment.
nvm allows installing several versions of Node.js to the same system. Sometimes applications require a certain versions of Node.js to work. Having the flexibility of using specific versions can help.
sudo launchctl load /Library/LaunchDaemons/org.jenkins-ci.plist
sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist
https://medium.com/@anoopm6/how-to-uninstall-jenkins-from-mac-5a40b1e6bab6
| ############################################################################### | |
| # SECTION:Initial Settings | |
| ############################################################################### | |
| # ConfigServer Firewall & Security Configuration File | |
| # | |
| # Copyright 2006-2013, Way to the Web Limited | |
| # URL: http://www.configserver.com | |
| # Email: [email protected] | |
| ############################################################################### |
| vi /etc/environment | |
| add these lines... | |
| LANG=en_US.utf-8 | |
| LC_ALL=en_US.utf-8 |
| import React from 'react' | |
| import axios, { post } from 'axios'; | |
| class SimpleReactFileUpload extends React.Component { | |
| constructor(props) { | |
| super(props); | |
| this.state ={ | |
| file:null | |
| } |