If you haven't already set your NPM author info, now you should:
npm set init.author.name "Your Name"
npm set init.author.email "you@example.com"
npm set init.author.url "http://yourblog.com"
npm adduser
'use strict'; | |
var xoauth2 = require('xoauth2'); | |
var nodemailer = require('nodemailer'); | |
var smtp = require('nodemailer-smtp-transport'); | |
var htmlToText = require('nodemailer-html-to-text').htmlToText; | |
// Sending mail with Gmail using XOAuth2 | |
// http://masashi-k.blogspot.com.br/2013/06/sending-mail-with-gmail-using-xoauth2.html |
/* | |
* object.watch polyfill | |
* | |
* 2012-04-03 | |
* | |
* By Eli Grey, http://eligrey.com | |
* Public Domain. | |
* | |
* Modified by Nenad Damnjanović | |
* Nov 9, 2014 |
INDEX_DIR := /home/www/project-foo | |
BUILD_DIR := $(INDEX_DIR)/build | |
JS_DEBUG := $(BUILD_DIR)/app-debug.js | |
JS_FINAL := $(BUILD_DIR)/app.js | |
CSS_COMBINED := $(BUILD_DIR)/app-combined.css | |
CSS_FINAL := $(BUILD_DIR)/app.css | |
# src files | |
JS_FILES := wrapper-head.js \ | |
utils.js \ | |
app.js \ |
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
At the top of the file there should be a short introduction and/ or overview that explains what the project is. This description should match descriptions added for package managers (Gemspec, package.json, etc.)
Show what the library does as concisely as possible, developers should be able to figure out how your project solves their problem by looking at the code example. Make sure the API you are showing off is obvious, and that your code is short and concise.
/*jslint continue:true*/ | |
/** | |
* Adapted from {@link http://www.bulgaria-web-developers.com/projects/javascript/serialize/} | |
* Changes: | |
* Ensures proper URL encoding of name as well as value | |
* Preserves element order | |
* XHTML and JSLint-friendly | |
* Disallows disabled form elements and reset buttons as per HTML4 [successful controls]{@link http://www.w3.org/TR/html401/interact/forms.html#h-17.13.2} | |
* (as used in jQuery). Note: This does not serialize <object> | |
* elements (even those without a declare attribute) or |
var casper = require("casper").create(); | |
var url = "https://github.com/search?langOverride=VimL&language=&q=vimrc&repo=&type=Repositories&start_value=" + casper.cli.get(0); | |
var repoLinks = []; | |
var fileLinks = []; | |
function getRepoLinks() { | |
var links = []; | |
$("div.results .result h2 a").each(function(i,el){ | |
links.push(el.href); | |
}); |
#!/bin/bash | |
# | |
# PostgreSQL Backup Script Ver 1.0 | |
# http://autopgsqlbackup.frozenpc.net | |
# Copyright (c) 2005 Aaron Axelsen <axelseaa@amadmax.com> | |
# | |
# This script is based of the AutoMySQLBackup Script Ver 2.2 | |
# It can be found at http://sourceforge.net/projects/automysqlbackup/ | |
# | |
# The PostgreSQL changes are based on a patch agaisnt AutoMySQLBackup 1.9 |
* { | |
font-size: 12pt; | |
font-family: monospace; | |
font-weight: normal; | |
font-style: normal; | |
text-decoration: none; | |
color: black; | |
cursor: default; | |
} |