This file contains 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
Clone the repositories: | |
git clone git://git.yoctoproject.org/poky | |
cd poky | |
git clone git://git.yoctoproject.org/meta-raspberrypi | |
git clone git://git.openembedded.org/meta-openembedded | |
git clone git://github.com/imphil/meta-b2g.git | |
. ./oe-init-build-env rpi-build | |
Traverse into 'conf' directory |
This file contains 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
describe("Unit: Testing Reporting App Controllers", function() { | |
beforeEach(angular.mock.module('reportingapp')) | |
window.CONFIG = {"root":"http://safetyapps-api-staging.mychanger.net","api":"http://safetyapps-api-staging.mychanger.net/api/","statics":"//s3-eu-west-1.amazonaws.com/safetyapps-assets/reportingapp/0.0.1/","organization":"changer","token":"e66d390004436e34863fe724b5df8fced4cf6142c8715f99","refreshToken":"6c325209563ec2259063b824360db3d929b5b3be8173e9bd"}; | |
beforeEach(angular.mock.inject(function ($controller, $rootScope, $state, $http) { | |
scope = $rootScope.$new(); | |
defaultCtrl = $controller('DefaultCtrl', { | |
$scope: scope, |
This file contains 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
describe("Unit: Testing Reporting App Controllers", function() { | |
beforeEach(angular.mock.module('reportingapp')) | |
window.CONFIG = {"root":"http://safetyapps-api-staging.mychanger.net","api":"http://safetyapps-api-staging.mychanger.net/api/","statics":"//s3-eu-west-1.amazonaws.com/safetyapps-assets/reportingapp/0.0.1/","organization":"changer","token":"e66d390004436e34863fe724b5df8fced4cf6142c8715f99","refreshToken":"6c325209563ec2259063b824360db3d929b5b3be8173e9bd"}; | |
beforeEach(angular.mock.inject(function ($controller, $rootScope, $state, $http) { | |
$scope = $rootScope.$new(); | |
defaultCtrl = $controller('DefaultCtrl', { | |
$scope: $scope, |
This file contains 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
// Remap $ to jQuery object | |
var $ = jQuery; | |
// The real fun begins... first catch all the post-anchors & loop on them | |
$(".badge-evt.badge-nsfw-entry-cover").each(function () { | |
// Find out the ID of the post | |
var id = ($(this).attr("href").split("/"))[4]; | |
// Construct the `quite guessable` image URL | |
var url = "http://d3dsacqprgcsqh.cloudfront.net/photo/" + id + "_460s.jpg"; | |
// Put in an image element with source as the formed URL |
This file contains 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
describe('Unit: Testing Owner PublicationListCtrl', function() { | |
beforeEach(angular.mock.module('incidentapp_worker')); | |
var publicationListCtrl, scope, publicationList; | |
beforeEach(angular.mock.inject(function ($controller, $rootScope, $location) { | |
publicationList = {}; | |
scope = $rootScope.$new(); | |
publicationListCtrl = $controller('PublicationListCtrl', { |
This file contains 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/sh | |
SHORTCUT="[Desktop Entry] | |
Name=Sublime Text 3 | |
Comment=Edit text files | |
Exec=/opt/sublime_text_3/sublime_text | |
Icon=/opt/sublime_text_3/Icon/128x128/sublime-text.png | |
Terminal=false | |
Type=Application | |
Encoding=UTF-8 | |
Categories=Utility;TextEditor;" |
This file contains 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
app.use(express.methodOverride()); | |
// ## CORS middleware | |
// | |
// see: http://stackoverflow.com/questions/7067966/how-to-allow-cors-in-express-nodejs | |
var allowCrossDomain = function(req, res, next) { | |
res.header('Access-Control-Allow-Origin', '*'); | |
res.header('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE'); | |
res.header('Access-Control-Allow-Headers', 'Content-Type, Authorization'); | |
This file contains 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
SCRIPT="#!/bin/sh | |
if [ \${1} == \"--help\" ]; then | |
/usr/local/sublime-text-2/sublime_text --help | |
else | |
/usr/local/sublime-text-2/sublime_text \$@ > /dev/null 2>&1 & | |
fi" | |
echo "${SCRIPT}" > "/usr/local/bin/subl2" | |
chmod +x "/usr/local/bin/subl2" | |
ln -s /usr/local/sublime-text-2/sublime_text /usr/bin/sublime-text2 |
This file contains 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
Show hidden characters
// Settings in here override those in "Default/Preferences.sublime-settings", | |
// and are overridden in turn by file type specific settings. | |
{ | |
"Seti_ClosedFolder_remove": true, | |
"Seti_show_group_arrows": true, | |
"always_show_minimap_viewport": true, | |
"auto_complete_selector": "source - comment, meta.tag - punctuation.definition.tag.begin", | |
"auto_complete_triggers": | |
[ | |
{ |
This file contains 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] | |
indent_style = space | |
indent_size = 2 | |
insert_final_newline = true | |
trim_trailing_whitespace = true | |
[{package.json,*.yml}] | |
indent_style = space | |
indent_size = 2 |