Polymer: Register an element
Register an element in Polymer
(more…)
Polymer: a basic page
Here is a simple Polymer based page, just create an index.html, and copy and paste the following code into it:
npm install modules from bitbucket private repositories
You might have private repositories in bitbucket and you declare dependencies in your nodejs app’s package.json:
"dependencies": {
"mymodule":"git+https://sampleuser@bitbucket.org/sampleuser/mymodule.git",
"ejs": "1.0.0"
}
when you do a npm install, you will be prompted to enter password twice, after entering the password, installation will proceed, this might work or might not work at all.
A simple approach as follow:
1) turn on git cache, keep password in the cache for a certain period of time: git config --global credential.helper cache git config --global credential.helper 'cache --timeout=3600' 2) access the private repo once, answer password when prompted: git ls-remote https://sampleuser@bitbucket.org/sampleuser/mymodule.git now you can install packages: npm install --production or all npm install
Setting up a scannning server using Linuxmint 15 and Canon LIDE 25
Setting up a scanning server using Linuxmint and Canon LIDE 25 scanner
(more…)
Adding a login window to mac os x app
Adding a login window into a non document based os x app is quite simple, (more…)
JSON in Objective C 2.0 – simple sample 1
Here is a very simple example accessing json file in Obj – c. (more…)
A Simple Cocoa Binding in XCode 4.6
This is just a very simple sample about Cocoa Binding in XCode 4.6. (more…)
Deploy Nodejs app in Centos 6.2
Many options to deploy nodejs apps, but after some research I found the solution that works and yet simple (more…)
Using git to deploy a web app
If you are the only developer of a web app, you should use git to deploy it, save time. (more…)
leave a comment