- Create new repository
git init
- Configure git settings
git config –global user.name “GDG Ankara”
- Add changes to Index
git add .
- Commit changes
| alias rm="promptUser" | |
| promptUser () { | |
| isWithOptions=0 | |
| fileName="" | |
| if [[ "$1" == -* ]]; then | |
| isWithOptions=1 | |
| fileName=$2 | |
| else |
| # xcode-build-bump.sh | |
| # @desc Auto-increment the build number every time the project is run. | |
| # @usage | |
| # 1. Select: your Target in Xcode | |
| # 2. Select: Build Phases Tab | |
| # 3. Select: Add Build Phase -> Add Run Script | |
| # 4. Paste code below in to new "Run Script" section | |
| # 5. Drag the "Run Script" below "Link Binaries With Libraries" | |
| # 6. Insure that your starting build number is set to a whole integer and not a float (e.g. 1, not 1.0) |
| git pull origin master | |
| rm README.md | |
| touch README.md | |
| echo "# PREVIEWS OF VEHICLES" >> README.md | |
| echo "## In the list below, you can see previews of vehicles that seen here." >> README.md | |
| echo "---" >> README.md | |
| for ext in png; do | |
| files=( "Thumbnails/"*."$ext" ) |
| UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 200, 20)]; | |
| /* | |
| set your label's font to the suitable one of the below to make your text size dynamic. | |
| */ | |
| label.font = [UIFont preferredFontForTextStyle:UIFontTextStyleBody]; | |
| label.font = [UIFont preferredFontForTextStyle:UIFontTextStyleCaption1]; |
git init
git config –global user.name “GDG Ankara”
git add .
| void readInput(char* inputFile) { | |
| FILE *fp; | |
| fp = fopen(inputFile, "r"); | |
| int x; | |
| while ((x = fgetc(fp)) != EOF) { | |
| printf("%c", x); | |
| } | |
| fclose(fp); | |
| } |
| public static void savingArrayList(File saveFile , ArrayList<MyClass> myArrayList ){ | |
| try { | |
| FileOutputStream fos = new FileOutputStream(saveFile); | |
| GZIPOutputStream gzos = new GZIPOutputStream(fos); | |
| ObjectOutputStream out = new ObjectOutputStream(gzos); | |
| out.writeObject(myArrayList); | |
| out.flush(); | |
| out.close(); | |
| }catch (IOException e) { | |
| System.out.println(e); |
| public class InternetAvailability{ | |
| public boolean isInternetAvailable(){ | |
| try { | |
| ConnectivityManager nInfo = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); | |
| nInfo.getActiveNetworkInfo().isConnectedOrConnecting(); | |
| Log.i(TAG, "Net avail:" | |
| + nInfo.getActiveNetworkInfo().isConnectedOrConnecting()); | |
| ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); | |
| NetworkInfo netInfo = cm.getActiveNetworkInfo(); |