Open ~/.bash_profile in your favorite editor and add the following content to the bottom.
# Git branch in prompt.
parse_git_branch() {| (function () { | |
| var dateTimeController = function ($scope, $rootScope) { | |
| $scope.vm = { | |
| message: "Bootstrap DateTimePicker Directive", | |
| dateTime: {} | |
| }; | |
| $scope.$watch('change', function(){ | |
| console.log($scope.vm.dateTime); | |
| }); |
| angular.module("myApp").directive("autoGrow", function(){ | |
| return function(scope, element, attr){ | |
| var update = function(){ | |
| element.css("height", "auto"); | |
| var height = element[0].scrollHeight; | |
| if(height > 0){ | |
| element.css("height", height + "px"); | |
| } | |
| }; | |
| scope.$watch(attr.ngModel, function(){ |
| * { | |
| font-size: 12pt; | |
| font-family: monospace; | |
| font-weight: normal; | |
| font-style: normal; | |
| text-decoration: none; | |
| color: black; | |
| cursor: default; | |
| } |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>ANSIBlackColor</key> | |
| <data> | |
| YnBsaXN0MDDUAQIDBAUGKSpYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS | |
| AAGGoKcHCBMXGyImVSRudWxs1QkKCwwNDg8QERJcTlNDb21wb25lbnRzVU5TUkdCXE5T | |
| Q29sb3JTcGFjZV8QEk5TQ3VzdG9tQ29sb3JTcGFjZVYkY2xhc3NPECgwLjAyNzQ1MTAw | |
| NjcgMC4yMTE3NjQ3MjMxIDAuMjU4ODIzNDg0MiAxTxAoMC4wMzkzODA3NDc4MiAwLjE2 |
| <!-- https://developer.apple.com/library/ios/featuredarticles/iPhoneURLScheme_Reference/MapLinks/MapLinks.html --> | |
| <a href="maps://?q=dallas" data-rel="external">iOS launch in apple maps</a> | |
| <!-- https://developers.google.com/maps/documentation/ios/urlscheme --> | |
| <a href="comgooglemaps://?q=dallas" data-rel="external">iOS launch in google maps</a> | |
| <a href="geo://0,0?q=dallas" data-rel="external">Android launch in google maps</a> |
| // Flexbox LESS mixins | |
| // The spec: http://www.w3.org/TR/css3-flexbox | |
| // Complete Guide: https://css-tricks.com/snippets/css/a-guide-to-flexbox/ | |
| // Flexbox display | |
| // values: flex | inline-flex | |
| .flex-display(@display: flex) { | |
| display: ~"-webkit-@{display}"; | |
| display: ~"-moz-@{display}"; |
| /** | |
| * ================== angular-ios9-uiwebview.patch.js v1.1.1 ================== | |
| * | |
| * This patch works around iOS9 UIWebView regression that causes infinite digest | |
| * errors in Angular. | |
| * | |
| * The patch can be applied to Angular 1.2.0 – 1.4.5. Newer versions of Angular | |
| * have the workaround baked in. | |
| * | |
| * To apply this patch load/bundle this file with your application and add a |
| /** | |
| * ionRadioFix - fixes a bug in iOS 9 UIWebView that breaks the tilde selector in CSS. To | |
| * use this fix, include it after your Ionic bundle JS. | |
| * | |
| * Note: due to Angular directive override limitations, you'll need to change any reference | |
| * to <ion-radio> to <ion-radio-fix> to apply this patched radio button. | |
| * | |
| * Also, make sure to add the new CSS from the second part of this gist. | |
| */ | |
| angular.module('ionic').directive('ionRadioFix', function() { |
| .PHONY: run | |
| # certs and output | |
| OUTPUT_FILE=apkname.apk | |
| ALIAS=youralias | |
| KEYPASS=yourkeypass | |
| KEYSTORE=certs/yourcert.keystore | |
| UNSIGNED=platforms/android/build/outputs/apk/android-release-unsigned.apk | |
| # or, if you're using Crosswalk: |