Skip to content

Instantly share code, notes, and snippets.

Package.describe({
summary: "A user managment tab for the CM project"
});
Package.on_use(function (api, where) {
api.use(['templating', 'coffeescript', 'less', 'Mesosphere', 'paginate', 'bootstrap', 'iron-router'], ['client','server']);
api.add_files([
'collections/users_collection.coffee',
'client/users-mesosphere.coffee',
], ['client','server']);
dm-user-management
├── README.md
├── client
│   ├── user-management-styles.less
│   ├── user_pager.coffee
│   ├── users-mesosphere.coffee
│   ├── users.coffee
│   └── users.html
├── collections
│   └── users_collection.coffee
.
├── client
│   └── views
├── lib
├── packages.json
├── server
└── smart.json
// While you can edit this file, it's best to put your changes in
// "User/Preferences.sublime-settings", which overrides the settings in here.
//
// Settings may also be placed in file type specific options files, for
// example, in Packages/Python/Python.sublime-settings for python files.
{
// Sets the colors used within the text area
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
// Note that the font_face and font_size are overriden in the platform
Meteor.startup () ->
# Countries collection initialization.
countries_csv = Assets.getText('country.csv')
csv = Meteor.require('csv')
countries_count = Countries.find().count()
if countries_count is 0
Future = Npm.require('fibers/future')
future = new Future()
csv()
.from.string(countries_csv, {comment: '#'})
{
"pusher": "0.1.3",
"mime": "1.2.11",
"rimraf": "2.2.4",
"mkdirp": "0.3.5",
"csv": "0.3.6",
"stripe": "2.4.0"
}
.
├── ASP
├── ActionScript
├── Alignment
├── AppleScript
├── Batch\ File
├── C#
├── C++
├── CSS
├── Clojure
module.exports = function(grunt) {
grunt.initConfig({
watch: {
js: {
files: [
'index.js',
'brains.js',
'lib/*.js'
],
var util = require('util');
var clc = require('cli-color');
var notice = clc.cyanBright.bold;
var error = clc.red.bold;
var warn = clc.yellow;
// Setup logging functions
var inspect = function(message) {
util.log(util.inspect(message, {colors:true}))
@digilord
digilord / cdn.html
Created February 13, 2014 15:17
jquery-mobile CDN
<link href="http://code.jquery.com/mobile/1.4.1/jquery.mobile-1.4.1.min.css" rel="stylesheet">
<script src="http://code.jquery.com/mobile/1.4.1/jquery.mobile-1.4.1.min.js"></script>