This file contains 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
[ | |
[ | |
{ | |
"a": 0 | |
}, | |
"Esc\n\n\n\n~\n`", | |
{ | |
"a": 4 | |
}, | |
"!\n1\n\n\nF1", |
This file contains 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
.config(['$httpProvider', function($httpProvider) { | |
//initialize get if not there | |
if (!$httpProvider.defaults.headers.get) { | |
$httpProvider.defaults.headers.get = {}; | |
} | |
//disable IE ajax request caching | |
$httpProvider.defaults.headers.get['If-Modified-Since'] = 'Mon, 26 Jul 1997 05:00:00 GMT'; | |
// extra | |
$httpProvider.defaults.headers.get['Cache-Control'] = 'no-cache'; |
This file contains 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
# Multiple sources here: | |
# https://atinkerersblog.wordpress.com/2014/07/26/get-notified-when-your-raspberry-pi-is-booted-with-pushbullet/ | |
# - follow the steps to make rc.local executable below | |
# this script is a compilation of all three below | |
# https://learnraspi.com/get-notifications-raspberry-pi-pushbullet/ | |
# http://biosrhythm.com/?p=1151 | |
# http://askubuntu.com/questions/9853/how-can-i-make-rc-local-run-on-startup | |
# create the pushbullet script | |
$ sudo nano /usr/bin/notify.sh |
This file contains 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
$scope.reverseSort ='ASC'; // Default sort reverse true / false | |
$scope.sortData = { | |
sortColumn:'column', | |
sortDirection:$scope.reverseSort | |
}; // default values sent to service | |
$scope.sortAction = function(column,page) { | |
$scope.reverseSort = $scope.reverseSort === 'DESC'?'ASC':'DESC'; | |
$scope.sortData.sortDirection = $scope.reverseSort; | |
$scope.sortData.sortColumn = column; |
This file contains 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
Show hidden characters
[ | |
{ | |
"class": "sidebar_tree", | |
"indent": 0, // original value is 16 | |
"row_padding": [0, 3], | |
"indent": 8, | |
"indent_offset": 5, | |
"indent_top_level": true, | |
} | |
] |
This file contains 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.element('[ng-controller=MainCtrl]').scope() |
This file contains 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
[ | |
{ | |
"class": "icon_file_type", | |
"content_margin": [0,0] | |
}, | |
{ | |
"class": "icon_folder", | |
"content_margin": [0,0] | |
}, | |
{ |
This file contains 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
$rootScope.$emit('getChildren',arg1,arg2); | |
$rootScope.$on('getChildren', function(event,arg1,arg2) { | |
$scope.getChildren(arg1,arg2); | |
}); |
This file contains 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
/* | |
Pretty much any time something is missing after building and doing a grunt serve:dist, it is because the grunt ecosystem is rewriting the page to look for your resources in a location that it failed to copy your resources to. Usually you can grunt serve:dist, open dev tools, and look at the network tab to see which url's are broken (red) and then make note of the path where the browser is trying to find the resource. Now you just need to create a new grunt copy task to copy the files to that path, and then add a reference to execute the copy in the grunt build (or just add to the existing copy:dist task as in the example below). | |
*/ | |
copy: { | |
dist: { | |
files: [{ | |
expand: true, | |
dot: true, | |
cwd: '<%= yeoman.app %>', | |
dest: '<%= yeoman.dist %>', |
This file contains 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 makeLocal = moment().local(), | |
newtime = moment(makeLocal).format().toString(); |