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 -e | |
| # Transforms a SVG into a PNG for each platform | |
| # Sizes extracted from | |
| # http://developer.android.com/design/style/iconography.html | |
| # https://stackoverflow.com/a/23015417/2560946 | |
| [ -z $2 ] && echo -e "ERROR: filename and one dimension (-w or -h) is required, for example:\nsvg2png -w48 icon.svg\n" && exit 1; | |
| FILENAME=$2 | |
| DEST_FILENAME=`echo $2 | sed s/\.svg/\.png/` | |
| FLAG=`echo $1 | cut -c1-2` |
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
| // set the default amount of items being displayed | |
| var defaultvalue = 3; | |
| $scope.limit= defaultvalue; | |
| $scope.ismore = false; | |
| // loadMore function | |
| $scope.loadMore = function() { | |
| $scope.limit = $scope.items.length; | |
| $scope.ismore = 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
| /** | |
| * EmailController | |
| * @require :: npm install machinepack-mandrill --save | |
| * @model :: sails generate email | |
| * @description :: SailsJs Server-side logic for serving Emails using Mandrill https://mandrill.com/ [12000 Free Emails] | |
| * @help :: See http://links.sailsjs.org/docs/controllers | |
| */ | |
| var Mandrill = require('machinepack-mandrill'); | |
| module.exports = { |
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
| https://github.com/angular-ui/ui-slider | |
| Requires | |
| JQuery | |
| JQueryUI | |
| AngularJS | |
| http://vitalets.github.io/angular-xeditable/ | |
| Angular-xeditable is a bundle of AngularJS directives that allows you to create editable elements. | |
| Such technique is also known as click-to-edit or edit-in-place. | |
| It is based on ideas of x-editable but was written from scratch to use power of angular and support complex forms / editable grids. |
NewerOlder