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 |
| # 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. |
| #!/bin/bash | |
| # Linux version | |
| # Use this script to pipe in/out of the clipboard | |
| # | |
| # Usage: someapp | clip # Pipe someapp's output into clipboard | |
| # clip | someapp # Pipe clipboard's content into someapp | |
| # | |
| if command -v xclip 1>/dev/null; then | |
| if [[ -p /dev/stdin ]] ; then |
| /* | |
| The MIT License | |
| Copyright (c) 2010 Roger Chapman | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is |