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
" copy all this into a vim buffer, save it, then... | |
" source the file by typing :so % | |
" Now the vim buffer acts like a specialized application for mastering vim | |
" There are two queues, Study and Known. Depending how confident you feel | |
" about the item you are currently learning, you can move it down several | |
" positions, all the way to the end of the Study queue, or to the Known | |
" queue. | |
" type ,, (that's comma comma) |
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
var contacts = | |
[ | |
{ | |
"notes": [ | |
{ | |
"description": "Fugiat aute pariatur excepteur elit." | |
} | |
], | |
"tels": [ | |
{ |
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
///////////////////////////////////////////// | |
// | |
// Flipable Card | |
// | |
// Markup: | |
// .flip | |
// .flip__inner | |
// .front | |
// .back |
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "AllowPublicRead", | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "*" | |
}, | |
"Action": "s3:GetObject", |