##Install Xcode command line tools
Xcode>Preferences>Downloads
Enable root if not already enabled: http://support.apple.com/kb/PH11331?viewlocale=en_US
##Apache
Apache is already installed, just not running.
| packages: | |
| rpm: | |
| newrelic: http://yum.newrelic.com/pub/newrelic/el5/x86_64/newrelic-repo-5-3.noarch.rpm | |
| yum: | |
| newrelic-php5: [] | |
| newrelic-sysmond: [] | |
| commands: | |
| "01": | |
| command: newrelic-install install |
| package your.package; | |
| import android.app.Activity; | |
| import android.os.Bundle; | |
| import android.support.v7.graphics.Palette; | |
| import com.squareup.picasso.Picasso; | |
| import your.package.PaletteTransformation; | |
| import static your.package.PaletteTransformation.PaletteCallback; |
| package your.package; | |
| import android.app.Activity; | |
| import android.os.Bundle; | |
| import android.support.v7.graphics.Palette; | |
| import com.squareup.picasso.Picasso; | |
| import your.package.PaletteTransformation; | |
| import static your.package.PaletteTransformation.PaletteCallback; |
| # Built application files | |
| /*/build/ | |
| # Crashlytics configuations | |
| com_crashlytics_export_strings.xml | |
| # Local configuration file (sdk path, etc) | |
| local.properties | |
| # Gradle generated files |
##Install Xcode command line tools
Xcode>Preferences>Downloads
Enable root if not already enabled: http://support.apple.com/kb/PH11331?viewlocale=en_US
##Apache
Apache is already installed, just not running.
| public static void main(String[] args) { | |
| String inputStr; | |
| String charInput; | |
| int totalCount = 0; | |
| int index = 0; | |
| Scanner scanner = new Scanner(System.in); | |
| System.out.println("Enter text to be searched: "); | |
| inputStr = scanner.nextLine(); |
| require 'time' | |
| loop do | |
| time = Time.now.to_s + "\r" | |
| print time | |
| $stdout.flush | |
| sleep 1 | |
| end |
| t = 236 # seconds | |
| Time.at(t).utc.strftime("%H:%M:%S") | |
| => "00:03:56" | |
| # Reference | |
| # http://stackoverflow.com/questions/3963930/ruby-rails-how-to-convert-seconds-to-time |
| <?php | |
| function get_lastweek_start_date($revered) { | |
| $previous_week = strtotime("-1 week +1 day"); | |
| $start_week = strtotime("last monday midnight",$previous_week); | |
| $end_week = strtotime("next sunday",$start_week); | |
| $start_week = date("Y-m-d",$start_week); | |
| return $start_week; | |
| } |
| cd /Applications/Firefox.app/Contents/MacOS/ && ./firefox www.purple.com |