1.) Download a Nerd Font
2.) Unzip and copy to ~/.fonts
3.) Run the command fc-cache -fv
to manually rebuild the font cache
# OSX - https://github.com/github/gitignore/blob/master/Global/OSX.gitignore | |
.DS_Store | |
.AppleDouble | |
.LSOverride | |
# Icon must end with two \r | |
Icon | |
# Thumbnails |
body { | |
font-family: IRANSans !important; | |
} | |
h1, | |
h2, | |
h3, | |
h4, | |
h5, | |
h6 { | |
font-family: IRANSans !important; |
body { | |
font-family: IRANSans !important; | |
} | |
h1, | |
h2, | |
h3, | |
h4, | |
h5, | |
h6 { | |
font-family: IRANSans !important; |
1.) Download a Nerd Font
2.) Unzip and copy to ~/.fonts
3.) Run the command fc-cache -fv
to manually rebuild the font cache
#!/bin/bash | |
#hi | |
SAVEIFS=$IFS | |
IFS=$(echo -en "\n\b") | |
for rootFolder in */ ; do | |
if [ -d $rootFolder"build" ]; then | |
echo "do you want to delete build folders of \"${rootFolder%?}\" project?" | |
read ans | |
if [ "$ans" = "y" ] || [ "$ans" = "Y" ]; then |
class SelectableItem extends React.Component { | |
constructor() { | |
super(); | |
this.handleOnPress = this.handleOnPress.bind(this); | |
} | |
shouldComponentUpdate(nextProps) { | |
const { isSelected } = this.props; | |
return isSelected !== nextProps.isSelected; |
import java.util.ArrayList; | |
import java.util.Scanner; | |
public class StringCalculator { | |
public static void main(String[] args) { | |
Scanner scanner = new Scanner(System.in); | |
ArrayList<Double> numbers = new ArrayList<>(); | |
ArrayList<Character> operators = new ArrayList<>(); | |
String number = ""; |