describe('Unit testing great quotes', function() {
var $compile,
$rootScope;
// Load the myApp module, which contains the directive
beforeEach(funtction(){
module('myApp'));
Ensure that you have followed the Getting Started and Securing Your Server guides, and the Linode’s hostname is set.
To check your hostname run:
hostname
hostname -f
The first command should show your short hostname, and the second should show your fully qualified domain name (FQDN).
Hello World in Python with MySql
sudo easy_install pip
sudo pip install mysql-connector
python
>>> import mysql.connector
>>> conn = mysql.connector.connect(user='root', password='pwd', host='192.168.241.129', database='test')
>>> cur = conn.cursor()
Enabling CORS
Controller method CORS configuration
So that the RESTful web service will include CORS access control headers in its response, you just have to add a @CrossOrigin annotation to the handler method:
src/main/java/hello/GreetingController.java
@CrossOrigin(origins = "http://localhost:9000")
@GetMapping("/greeting")
Steps for publishing or updating npm package
npm adduser
if you don't have one
npm login
enter your name and password
npm publish
publish public package
npm version [patch|minor|major]
update version