This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function freeport() { | |
| lsof -i TCP:$1 | awk '/LISTEN/{print $2}' | xargs kill -9; | |
| if $1 !== dev 2>null; then | |
| echo "Port" $1 "found and killed."; | |
| fi; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Ionic Directory | |
| IONICLIB="$HOME/Development/ionic/dist/" | |
| arrayTest[0]="test" || (echo "Failure: arrays not supported in this version of bash." && exit 2) | |
| codepen=( | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| angular.module('todoApp', [])... | |
| .controller.... | |
| .filter('searchFilter', function() { | |
| return function(input, searchText) { | |
| if(typeof searchText === 'undefined' || searchText == '')return input; | |
| var output = []; | |
| for(var i=0;i<input.length;i++){ | |
| if(input[i].text.indexOf(searchText) > -1){ | |
| output.push(input[i]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "title": "Firefox Developer Tools - Editable box model, Sublime Text keys", | |
| "id": 7711105, | |
| "url": "https://hacks.mozilla.org/2014/05/editable-box-model-multiple-selection-sublime-text-keys-much-more-firefox-developer-tools-episode-31/", | |
| "points": 115, | |
| "submitted_by": "rnyman", | |
| "submitted_on": "2 hours ago " | |
| }, | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .directive('ionRadio', function() { | |
| return { | |
| restrict: 'E', | |
| replace: true, | |
| require: '?ngModel', | |
| scope: { | |
| ngModel: '=?', | |
| ngValue: '=?', | |
| ngChange: '&', | |
| icon: '@', |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*! | |
| * ionic.bundle.js is a concatenation of: | |
| * ionic.js, angular.js, angular-animate.js, | |
| * angular-ui-router.js, and ionic-angular.js | |
| */ | |
| /*! | |
| * Copyright 2014 Drifty Co. | |
| * http://drifty.com/ | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| angular.module('myApp.services', []) | |
| .factory('MyService', function() { | |
| var myVar = true; | |
| return { | |
| getMyVar: function() { | |
| return myVar; | |
| } | |
| setMyVar: function(val){ | |
| myVar = val; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no"> | |
| <title>Thingdom</title> | |
| <!-- ionic css --> | |
| <!--<link href="lib/css/ionic.css" rel="stylesheet"> --> | |
| <!-- app css --> | |
| <link href="css/app.css" rel="stylesheet"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var stopit = false; | |
| var tab1 = document.querySelectorAll('.ion-home'); | |
| var tab2 = document.querySelectorAll('.ion-heart'); | |
| var tab3 = document.querySelectorAll('.ion-gear-b'); | |
| function clicky(){ | |
| if(stopit)return; | |
| tab2[0].click(); | |
| setTimeout(function(){ | |
| tab3[0].click(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| directive('setattr', function() { | |
| return function(scope, elem, attr){ | |
| $(elem).attr(attr.setattr,attr.setattrval); | |
| } | |
| }); |