Skip to content

Instantly share code, notes, and snippets.

View svnlto's full-sized avatar
🦙

Sven Lito svnlto

🦙
View GitHub Profile
@svnlto
svnlto / gist:8844023
Created February 6, 2014 13:24
the description for this gist
We couldn’t find that file to show.
exports.start = function (config, callback) {
var project_dir = process.cwd();
var cfg = environment.getConfig(
process.platform, // platform
process.env, // environment vars
project_dir, // project directory
[] // command-line arguments
);
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<style media="all">
iframe {
height: 100%;
width: 100%;
(function (root, factory) {
'use strict';
if (typeof exports === 'object') {
var backbone = require('backbone');
var hoodie = require('hoodie');
module.exports = factory(backbone, hoodie);
13:26 <jan____> heya Anders___
13:26 <jan____> cc svnlto ^
13:27 <svnlto> Anders___: I don't have any windows experience sorry. Do you get any errors. what hoodie-server version are you running?
13:30 <Anders___> version 0.4.8
13:30 <svnlto> Anders___: great. first time creating a hoodie app?
13:30 <jan____> gtg, sorry!
13:30 <svnlto> jan____: yeah yeah..
13:32 <Anders___> yes, first attempt .. First I experience trouble with paths to Git and then to CouchDB .. but after digging into the source and fixing a bit with the paths it all started to work great (had a bit of challenge with CouchDB itself also but that also came out fine)
13:33 <Anders___> now my problem seems that the static files are not served .. I do get results when I try to go to some of the /_api/ paths
13:36 ↔ Acconut popped in
"resolutions": {
"hoodie": "*"
}
"globals": {
"Backbone": true,
"app": true,
"Marionette": true
},
@svnlto
svnlto / gruntfile.js
Last active August 29, 2015 13:57
browserify + reactjs externals grunt task
browserify: {
libs: {
options: {
require: [
'react'
]
},
src: ['public/lib/*.js'],
dest: 'public/dist/libs.js'
},
@svnlto
svnlto / gruntfile.js
Created March 28, 2014 19:35
grunt task / plugin into
module.exports = function(grunt) {
// wherever the above file is
//
grunt.loadTasks('test/tasks/');
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
your_task_name: {
---
- hosts: webservers
user: vagrant
sudo: True
vars_files:
- vars.yml
tasks:
- name: update apt cache
apt: update-cache=yes