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
/*global FB, alert, console */ | |
//Usage | |
// uploadPhotoToFacebook({ | |
// caption: 'A Picture', | |
// url: 'http://lorempixel.com/400/300/', | |
// album: 'JS API', | |
// album_description: "An album of pictures", | |
// onSuccess: function(){ |
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
module.exports = function(grunt) { | |
//Load private config if available | |
try { | |
app_config = grunt.file.readJSON('config.json'); | |
} catch (err) { | |
console.log( | |
"\n\nNo config file found. Some tasks may require config strings such as AWS keys or DB strings" + | |
"Please create one based on config.sample.json\n\n" | |
); |
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('MyComponent', []) | |
.service('MyComponent', function($log, $rootScope, $compile) { | |
return function(params) { | |
var scope; | |
// Pass params through to a new'd up scope. | |
// I'm just shoving them all in there as a property | |
// but you could be more discreet. | |
scope = $rootScope.$new(); | |
scope.params = params; | |
var directive = $compile('<my-component>')(scope); |
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
<!doctype html> | |
<!--[if (IE 9) & (!IEMobile)]> <html class="no-js ie-9" lang="en-au"> <![endif]--> | |
<!--[if gt IE 8]><!--> <html class="no-js" lang="en-au"> <!--<![endif]--> | |
<head> | |
<script> | |
(function() { | |
var html = document.getElementsByTagName('html')[0] | |
html.className = html.className.replace( /(?:^|\s)no-js(?!\S)/g , 'js' ); | |
})() | |
</script> |
OlderNewer