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 class="window"> | |
| <section></section> | |
| <aside></aside> | |
| </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
| // http://css-tricks.com/snippets/javascript/htmlentities-for-javascript/ | |
| function htmlEntities(str) { | |
| return String(str).replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"'); | |
| } |
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
| myModule.filter "sentence_case", -> | |
| _.memoize (x) -> | |
| return unless angular.isString(x) | |
| x = x.toLowerCase() | |
| capitalize = (str) -> | |
| str += '' | |
| return str.charAt(0).toUpperCase() + str.slice(1) | |
| fmt = (y) -> | |
| capitalized = capitalize($.trim(y)) |
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
| /Users/bc/Dropbox/Projects/open-source/Spotijay/node_modules/libspotify/node_modules/bindings/bindings.js:83 | |
| throw e | |
| ^ | |
| Error: dlopen(/Users/bc/Dropbox/Projects/open-source/Spotijay/node_modules/libspotify/build/Release/spotify.node, 1): Library not loaded: /usr/local/opt/libspotify/lib/libspotify | |
| Referenced from: /Users/bc/Dropbox/Projects/open-source/Spotijay/node_modules/libspotify/build/Release/spotify.node | |
| Reason: image not found | |
| at Module.load (module.js:356:32) | |
| at Function.Module._load (module.js:312:12) | |
| at Module.require (module.js:364:17) |
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
| /* jshint regexdash: false */ | |
| (function() { | |
| angular.module('validation.rule', ['validation']) | |
| .config(['$validationProvider', function($validationProvider) { | |
| var expression = { | |
| required: function(value) { | |
| return !!value; | |
| }, | |
| url: /((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/, |
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
| [ | |
| "{{repeat(100, 100)}}", | |
| { | |
| "fn":{ | |
| "name":"{{firstName()}} {{surname()}}" | |
| }, | |
| "n":{ | |
| "families":"{{surname()}}", | |
| "givens":"{{firstName()}}" | |
| }, |
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('MyModule') | |
| .filter('dollars', function() { | |
| return function(input) { | |
| return '$' + parseInt(input, 10) / 100; | |
| }; | |
| }); |
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
| { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Effect": "Allow", | |
| "Action": "s3:*", | |
| "Resource": [ | |
| "arn:aws:s3:::my.bucket.com", | |
| "arn:aws:s3:::my.bucket.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
| var myString = 'foo bar baz'; | |
| var firstWord = myString.substr( 0, myString.indexOf(' ') ); // 'foo' | |
| var stringRemainder = myString.substr( myString.indexOf(' ') + 1 ); // 'bar baz' |
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
| newValue = oldValue.replace(/[^0-9]/g, ""); |
OlderNewer