Skip to content

Instantly share code, notes, and snippets.

View arminghm's full-sized avatar
🤠

Armin Ghoreishi arminghm

🤠
View GitHub Profile
@Ashkan4472
Ashkan4472 / StringCalculator.java
Created October 9, 2019 13:21
a simple string calculator in java
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 = "";
@amiralies
amiralies / SelectList.js
Created January 8, 2019 16:40
How to use extraData prop to update your react native FlatList efficiently
class SelectableItem extends React.Component {
constructor() {
super();
this.handleOnPress = this.handleOnPress.bind(this);
}
shouldComponentUpdate(nextProps) {
const { isSelected } = this.props;
return isSelected !== nextProps.isSelected;
#!/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
@mahsaml90
mahsaml90 / README.md
Last active October 2, 2020 15:29
Angular 2 Directive to use with Jdenticon

How to use

  1. install Jdenticon using npm install jdenticon --save
  2. import this directive into your intended module and add it to declarations.
  3. then use it in your html file like this:
<svg width="50" height="50" [identiconHash]="hash">
  Fallback text for browsers not supporting inline svg
</svg>
@izadmehr
izadmehr / taigRtl.txt
Last active August 30, 2016 06:42 — forked from Ssisakhti/gist:ce99f378642c3fea2836
CSS style for RTL Taiga.io
body {
font-family: IRANSans !important;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: IRANSans !important;
@Ssisakhti
Ssisakhti / gist:ce99f378642c3fea2836
Created November 22, 2015 07:14
CSS style for RTL Taiga.io
body {
font-family: IRANSans !important;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: IRANSans !important;
@tokineco
tokineco / .gitignore
Last active February 18, 2021 05:33
Cocos2d-x v3.x .gitignore
# OSX - https://github.com/github/gitignore/blob/master/Global/OSX.gitignore
.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
# Thumbnails