- figma.com
- tesla.com (Tesla motors)
- meetup.com
- dribbble.com
- fiverr.com
- basecamp.com
- notonthehighstreet.com
- goodreads.com
#!/bin/bash | |
set -e | |
APP_NAME=${1:-RNStorybookAlpha} | |
echo "APP_NAME: $APP_NAME" | |
npm install --global expo-cli | |
expo init -t expo-template-blank-typescript $APP_NAME | |
cd $APP_NAME | |
expo install @storybook/react-native@next \ | |
@storybook/addon-ondevice-actions@next \ |
module.exports = function (api) { | |
api.cache(true); | |
return { | |
presets: ['babel-preset-expo'], | |
plugins: [ | |
["@babel/plugin-transform-flow-strip-types"], | |
["@babel/plugin-proposal-decorators", { "legacy": true }], | |
["@babel/plugin-proposal-class-properties", { "loose": true }], | |
["module-resolver", { | |
"alias": { |
import axios from 'axios'; | |
import qs from 'qs'; | |
export const getAuth = async () => { | |
const clientId = process.env.REACT_APP_BASIC_CLIENT_ID; | |
const clientSecret = process.env.REACT_APP_BASIC_CLIENT_SECRET; | |
const headers = { | |
headers: { | |
Accept: 'application/json', |
## | |
# Reverting a range of commits | |
# | |
# git --pretty=oneline --abbrev-commit older_commit..newer_commit # not includes the oldest commit | |
# git --pretty=oneline --abbrev-commit older_commit^..newer_commit # includes the oldest commit | |
## | |
# just to be sure about the commits, list them | |
git log --pretty=oneline --abbrev-commit 1f80548^..4b293d5 |
Sometimes, debugging with console.log
is not enough to find out what is
happening in the code, as console.log
prints only plain objects but neither
functions nor objects with circular references. Besides, it's possible you
may need to know the context and flow of the code.
Read more about debugging with VS Code in VS Code: Debugging.
type below:
brew update
brew install redis
To have launchd start redis now and restart at login:
brew services start redis
(Inspired by https://medium.com/@icanhazedit/clean-up-unused-github-rpositories-c2549294ee45#.3hwv4nxv5)
-
Open in a new tab all to-be-deleted github repositores (Use the mouse’s middle click or Ctrl + Click) https://github.com/username?tab=repositories
-
Use one tab https://chrome.google.com/webstore/detail/onetab/chphlpgkkbolifaimnlloiipkdnihall to shorten them to a list.
-
Save that list to some path
-
The list should be in the form of “ur_username\repo_name” per line. Use regex search (Sublime text could help). Search for ' |.*' and replace by empty.
It sometimes happen you need change code on a machine from which you cannot push to the repo.
You’re ready to copy/paste what diff
outputs to your local working copy.
You think there must be a better way to proceed and you’re right. It’s a simple 2 steps process:
1. Generate the patch:
git diff > some-changes.patch