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
| ADMIN="your-email@you.com" | |
| # set alert level 90% is default | |
| ALERT=90 | |
| df -H | grep -vE '^Filesystem|tmpfs|cdrom|^//|/mnt' | awk '{ print $5 " " $1 }' | while read output; | |
| do | |
| #echo $output | |
| usep=$(echo $output | awk '{ print $1}' | cut -d'%' -f1 ) | |
| partition=$(echo $output | awk '{ print $2 }' ) | |
| if [ $usep -ge $ALERT ]; then | |
| echo "Running out of space \"$partition ($usep%)\" on $(hostname) as on $(date)" | |
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
| #!perl | |
| use strict; | |
| use warnings; | |
| use Image::WordCloud; | |
| use File::Slurp; | |
| use LWP::Simple; | |
| use HTML::Grabber; |
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
| { | |
| "skeletons": { | |
| "HTML5 Boilerplate": { | |
| "branch": "docpad-6.x", | |
| "repo": "https://github.com/docpad/html5-boilerplate.docpad.git", | |
| "description": "HTML5 Boilerplate skeleton for DocPad. Bare essentials for building a modern website with best practices." | |
| }, | |
| "HTML5 Boilerplate with Grunt": { | |
| "branch": "master", | |
| "repo": "https://github.com/lukekarrys/html5-boilerplate.docpad.git", |
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 a = {'info' : 'testBuild'}; | |
| var b = {'info' : 'testBuild'}; | |
| a == b; |
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
| <div ng-switch="user.type"> | |
| <div ng-switch-when="user" ng-include="/path/to/template.html" ng-controller="UserCtrl"></div> | |
| <div ng-switch-when="professional" ng-include="/path/to/template.html" ng-controller="AdminProfessionalCtrl"></div> | |
| </div> |
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
| $scope.sections = Section.query({projectId: $scope.currentProject.id}, function(data) { | |
| angular.forEach(data, function(section) { | |
| $scope.$watch(section, function() { | |
| section.$save(); | |
| }, true); | |
| }); | |
| }); |
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 chain = [serverRequest, undefined]; | |
| var dummyP = $q.defer(); | |
| var promise = dummyP.promise; // $q.when(config); | |
| // apply interceptors | |
| forEach(reversedInterceptors, function(interceptor) { | |
| if (interceptor.request || interceptor.requestError) { | |
| chain.unshift(interceptor.request, interceptor.requestError); | |
| } |
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
| jade: { | |
| build: { | |
| options: { | |
| pretty: true | |
| }, | |
| files: [ | |
| { | |
| expand: true, | |
| src: '<%= src.jade %>', | |
| cwd: 'src/', |
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
| // Grunt task: | |
| karma: { | |
| unit: { | |
| configFile: 'test/karma.config.js', | |
| background: true | |
| } | |
| }, | |
| // test/karma.config.js | |
| module.exports = function(config) { |
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
| /* js */ | |
| var app = angular.module('plunker', ['ngSanitize']); | |
| app.controller('MainCtrl', function($scope, $sce) { | |
| $scope.data = {}; | |
| $scope.val = $sce.trustAsHtml('🏠'); | |
| }); | |
OlderNewer