brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
| - (void) showConfirmationAlert | |
| { | |
| // A quick and dirty popup, displayed only once | |
| if (![[NSUserDefaults standardUserDefaults] objectForKey:@"HasSeenPopup"]) | |
| { | |
| UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"Question" | |
| message:@"Do you like cats?" | |
| delegate:self | |
| cancelButtonTitle:@"No" | |
| otherButtonTitles:@"Yes",nil]; |
| # Update, upgrade and install development tools: | |
| apt-get update | |
| apt-get -y upgrade | |
| apt-get -y install build-essential | |
| apt-get -y install git-core | |
| # Install rbenv | |
| git clone git://github.com/sstephenson/rbenv.git /opt/rbenv | |
| # Add rbenv to the path: |
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
| // | |
| // UIScrollView+PullToRefresh.h | |
| // Created by Ben Kreeger (@kreeger), 2013/01/23. | |
| // | |
| #import <UIKit/UIKit.h> | |
| /** Adds pull to refresh for a UIScrollView (or a UITableView). Abstracts away differences in frameworks between iOS 6 | |
| * and iOS 5 (in the case of the latter, `ODRefreshControl` is used. | |
| */ |
| apply plugin: 'java' | |
| configurations.all { | |
| resolutionStrategy { | |
| eachDependency { DependencyResolveDetails details -> | |
| //specifying a fixed version for all libraries with 'org.gradle' group | |
| if (details.requested.group == 'org.springframework') { | |
| details.useVersion "$springVersion" | |
| } | |
| } |
| /* | |
| * Copyright 2014 Julian Shen | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| #!/bin/sh | |
| # this hook is in SCM so that it can be shared | |
| # to install it, create a symbolic link in the projects .git/hooks folder | |
| # | |
| # i.e. - from the .git/hooks directory, run | |
| # $ ln -s ../../git-hooks/pre-commit.sh pre-commit | |
| # | |
| # to skip the tests, run with the --no-verify argument | |
| # i.e. - $ 'git commit --no-verify' |
| package net.kristopherjohnson.util; | |
| import java.text.DateFormat; | |
| import java.text.SimpleDateFormat; | |
| import java.util.Date; | |
| import java.util.Locale; | |
| import java.util.TimeZone; | |
| /** | |
| * Methods for dealing with timestamps |
| <?xml version="1.0" encoding="utf-8"?> | |
| <resources> | |
| <style name="Theme.AppCompat.Light.NoActionBar" parent="@style/Theme.AppCompat.Light"> | |
| <item name="android:windowNoTitle">true</item> | |
| <item name="windowActionBar">false</item> <!-- For 2.x version --> | |
| </style> | |
| </resources> |