gitflow | git |
---|---|
git flow init |
git init |
git commit --allow-empty -m "Initial commit" |
|
git checkout -b develop master |
https://coderwall.com/p/fasnya/add-git-branch-name-to-bash-prompt | |
adding this to .bashrc: | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
export PS1="\u@\h \[\033[32m\]\w\[\033[93m\]\$(parse_git_branch)\[\033[00m\] $ " |
var flattenObject = function(ob) { | |
var toReturn = {}; | |
for (var i in ob) { | |
if (!ob.hasOwnProperty(i)) continue; | |
if ((typeof ob[i]) == 'object') { | |
var flatObject = flattenObject(ob[i]); | |
for (var x in flatObject) { | |
if (!flatObject.hasOwnProperty(x)) continue; |
Firstly, Create React App is good. But it's a very rigid CLI, primarily designed for projects that require very little to no configuration. This makes it great for beginners and simple projects but unfortunately, this means that it's pretty non-extensible. Despite the involvement from big names and a ton of great devs, it has left me wanting a much better developer experience with a lot more polish when it comes to hot reloading, babel configuration, webpack configuration, etc. It's definitely simple and good, but not amazing.
Now, compare that experience to Next.js which for starters has a much larger team behind it provided by a world-class company (Vercel) who are all financially dedicated to making it the best DX you could imagine to build any React application. Next.js is the 💣-diggity. It has amazing docs, great support, can grow with your requirements into SSR or static site generation, etc.
// sorts therapy groups by name, therapist and topic and adds therapist data to the payload | |
const EMPTY_ARRAY = []; | |
export function processGroups(groups = EMPTY_ARRAY, therapists = EMPTY_ARRAY) { | |
const groupsLength = groups.length; | |
const therapistsLength = therapists.length; | |
const groupsWithTherapistData = []; | |
function defaultGroupSort(groups = []) { |
// when you have a checkbox and want to validate that at least one of the options is selected | |
patientMedicalConditions: yup | |
.object({ | |
dizziness: yup.bool(), | |
diabetes: yup.bool(), | |
neuropathy: yup.bool(), | |
historyOfStroke: yup.bool(), | |
arthritis: yup.bool(), | |
signsOfBoneDeterioration: yup.bool(), |