##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.
| /** | |
| * A mixin which helps you to add depth to elements according to the Google Material Design spec: | |
| * http://www.google.com/design/spec/layout/layout-principles.html#layout-principles-dimensionality | |
| * | |
| * Please note that the values given in the specification cannot be used as is. To create the same visual experience | |
| * the blur parameter has to be doubled. | |
| * | |
| * Author: Florian Kutschera (@gefangenimnetz), Conceptboard GmbH (@conceptboardapp) | |
| * | |
| * Example usage: |
| <link rel="import" href="../core-icon-button/core-icon-button.html"> | |
| <link rel="import" href="../core-toolbar/core-toolbar.html"> | |
| <link rel="import" href="../core-scroll-header-panel/core-scroll-header-panel.html"> | |
| <link rel="import" href="../paper-tabs/paper-tabs.html"> | |
| <link rel="import" href="../paper-tabs/paper-tab.html"> | |
| <polymer-element name="my-element"> | |
| <template> | |
| <style> |
| cd /Applications/Firefox.app/Contents/MacOS/ && ./firefox www.purple.com |
| <?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; | |
| } |
| 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 |
| require 'time' | |
| loop do | |
| time = Time.now.to_s + "\r" | |
| print time | |
| $stdout.flush | |
| sleep 1 | |
| end |
| 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(); |
##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.
| # Built application files | |
| /*/build/ | |
| # Crashlytics configuations | |
| com_crashlytics_export_strings.xml | |
| # Local configuration file (sdk path, etc) | |
| local.properties | |
| # Gradle generated files |