Update: I made this a proper blog post
- linux box
| /** | |
| * | |
| * Base64 encode / decode | |
| * http://www.webtoolkit.info/ | |
| * | |
| **/ | |
| .factory('Base64', function() { | |
| // private property | |
| var _keyStr = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='; |
Update: I made this a proper blog post
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
| First, follow this recipe from Arunoda @ MeteorHacks. Focus on the Codeship part at the bottom of the page. | |
| http://meteorhacks.com/continuos-integration-for-meteor-apps.html | |
| To get the modulus CLI installed, add the npm command to the bottom of the setup commands described above on codeship.io. I copied the full text of my setup commands below: | |
| git clone https://github.com/meteor/meteor.git ~/meteor | |
| export PATH=~/meteor/:$PATH | |
| npm install -g meteorite laika | |
| npm install -g modulus |
| #!/usr/bin/env bash | |
| # load history -- necessary because Bamboo runs a "git clean" on the build directory | |
| cp -r /opt/plato-report . | |
| plato -r -d plato-report \ | |
| -l .jshintrc \ | |
| -t "My Project" \ | |
| -x '(jquery|min.js|libs/(backbone|underscore|require))' \ | |
| path/to/my_project |
| angular.module("app.users", ["ngResource"]).factory("Users", function($resource) { | |
| return $resource("users.json", {}, {get: {method: "GET", isArray: true}}); | |
| }); | |
| angular.module("app.filters", []).filter("currency", function() { | |
| return function(number, currencyCode) { | |
| var currency = { | |
| USD: "$", | |
| RUB: "" | |
| }, |
| angular.module('d3AngularApp', ['d3']) | |
| .directive('d3Bars', ['$window', '$timeout', 'd3Service', | |
| function($window, $timeout, d3Service) { | |
| return { | |
| restrict: 'A', | |
| scope: { | |
| data: '=', | |
| label: '@', | |
| onClick: '&' | |
| }, |
| Complete installation process: | |
| sudo apt-get update | |
| sudo apt-get upgrade | |
| sudo apt-get install -y python-software-properties python make build-essential g++ curl libssl-dev apache2-utils git libxml2-dev | |
| sudo apt-get update | |
| sudo apt-get upgrade | |
| cd ~ | |
| mkdir git | |
| cd ~/git |