Powerlevel10k can generate the same prompt as Pure.
git clone https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k
echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme' >>! ~/.zshrc
import * as React from "react"; | |
import { useMousePosition } from "~/hooks/useMousePosition"; | |
/** Component to cover the area between the mouse cursor and the sub-menu, to allow moving cursor to lower parts of sub-menu without the sub-menu disappearing. */ | |
export function MouseSafeArea(props: { parentRef: React.RefObject<HTMLDivElement> }) { | |
const { x = 0, y = 0, height: h = 0, width: w = 0 } = props.parentRef.current?.getBoundingClientRect() || {}; | |
const [mouseX, mouseY] = useMousePosition(); | |
const positions = { x, y, h, w, mouseX, mouseY }; | |
return ( | |
<div |
1. Backup com.apple.finder.plist | |
cp ~/Library/Preferences/com.apple.finder.plist ~/Desktop | |
2. Set top-level defaults using the defaults command | |
Default to list view: | |
defaults write com.apple.finder FXPreferredViewStyle Nlsv | |
Default Arrange By flags that don't seem to be effective: | |
defaults write com.apple.finder FXArrangeGroupViewBy kind | |
defaults write com.apple.finder FXPreferredGroupBy kind |
Powerlevel10k can generate the same prompt as Pure.
git clone https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k
echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme' >>! ~/.zshrc
gitc() { | |
git fetch --prune | |
for branch in `git branch -vv | grep ': gone]' | awk '{print $1}'`; | |
do | |
git branch -D $branch | |
done; | |
git branch --merged master | grep -v '^*' | grep -v '^ master$' | xargs git branch -d | |
} |
10 DIM FourDigitPassword INTEGER | |
20 FOR i = 0 TO 9 | |
30 FOR j = 0 TO 9 | |
40 FOR k = 0 TO 9 | |
50 FOR l = 0 TO 9 | |
60 FourDigitPassword = getFourDigits (i,j,k,l) | |
70 IF checkPasswordMatch(FourDigitPassword) = TRUE THEN | |
80 GOTO 140 | |
90 END | |
100 NEXT l |
notes from http://flexbox.io. source code available at https://github.com/wesbos/What-The-Flexbox. nice covers from http://coverr.co/
npm i -g all-the-package-names
alias npmi = 'all-the-package-names | fzf | xargs npm install'
Just use npmi
instead of npm i <package-name>
. All options work (--save
, -g
etc).
The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Sun, 30 Aug 2015 10:08:52 GMT till Tue, 30 Aug 2016 10:08:52 GMT.
Only first 1000 GitHub users according to the count of followers are taken. This is because of limitations of GitHub search. Sorting algo in pseudocode:
githubUsers
.filter(user => user.followers > 1)
# Add the remote, call it "upstream": | |
git remote add upstream https://github.com/whoever/whatever.git | |
# Fetch all the branches of that remote into remote-tracking branches, | |
# such as upstream/master: | |
git fetch upstream | |
# Make sure that you're on your master branch: |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |