https://github.com/bexic/react-without-redux
import React, {
createContext,
useContext,
useReducer,
useCallbackhttps://github.com/bexic/react-without-redux
import React, {
createContext,
useContext,
useReducer,
useCallback| local http = require "socket.http" | |
| local data = "" | |
| local function collect(chunk) | |
| if chunk ~= nil then | |
| data = data .. chunk | |
| end | |
| return true | |
| end |
This method avoids merge conflicts if you have periodically pulled master into your branch. It also gives you the opportunity to squash into more than 1 commit, or to re-arrange your code into completely different commits (e.g. if you ended up working on three different features but the commits were not consecutive).
Note: You cannot use this method if you intend to open a pull request to merge your feature branch. This method requires committing directly to master.
Switch to the master branch and make sure you are up to date:
| #!/bin/bash | |
| # -------------------------------------------------------------------------------------------- | |
| # Installs Ruby using rbenv/ruby-build on the Raspberry Pi (Raspbian) | |
| # | |
| # Run from the web: | |
| # bash <(curl -s https://gist.githubusercontent.com/blacktm/8302741/raw/install_ruby_rpi.sh) | |
| # -------------------------------------------------------------------------------------------- | |
| # Set the Ruby version you want to install |