Here's what I do when I publish an NPM package.
I always like to check what's going on in a repo before I do anything:
/** | |
* Dashboard controller | |
*/ | |
// Private | |
var api = require('parentcontroller'); | |
api.load = function() { | |
Ti.API.info('Child load method fired'); | |
}; |
// Create the module | |
var controllerModule = require('dashboardController').boot(_params); | |
// Test to see if the parent controller's load method or dashboardController method fires | |
controllerModule.load(); | |
// Test to see other properties | |
Ti.API.info(controllerModule.works); |
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
# | |
# templatetags/kwacros.py - Support for macros in Django templates | |
# | |
# Based on snippet by | |
# Author: Michal Ludvig <michal@logix.cz> | |
# http://www.logix.cz/michal | |
# | |
# modified for args and kwargs by Skylar Saveland http://skyl.org | |
# |
# Sharing Django Users and Sessions Across Projects | |
By Dustin Farris on 22 Feb 2012 | |
This document describes how to share users created using Django's auth system with other | |
Django projects. It is not a hack; it simply makes use of the database router and | |
middleware system that Django comes with out of the box. | |
## Introduction |
let child = require("child_process") | |
let source_map = require("source-map") | |
let SourceMapConsumer = source_map.SourceMapConsumer | |
let path = require("path") | |
var crypto = require('crypto'); | |
module.exports = function(source, sourceMap) { | |
this.cacheable() | |
this.async() | |
var self = this |
module.exports = function(callback) { | |
require('child_process').exec('./cursor-position.sh', function(error, stdout, stderr) { | |
callback(error, JSON.parse(stdout)); | |
}); | |
} |
# -*- coding: utf-8 -*- | |
""" | |
Whoosh backend for haystack that implements character folding, as per | |
http://packages.python.org/Whoosh/stemming.html#character-folding . | |
Tested with Haystack 2.4.0 and Whooch 2.7.0 | |
To use, put this file on your path and add it to your haystack settings, eg. |
TL;DR
Install Postgres 9.5, and then:
sudo pg_dropcluster 9.5 main --stop
sudo pg_upgradecluster 9.3 main
sudo pg_dropcluster 9.3 main