I hereby claim:
- I am ekmartin on github.
- I am ekmartin (https://keybase.io/ekmartin) on keybase.
- I have a public key whose fingerprint is 93E2 0D7F B3CE 001A 5448 07D1 44FF B185 0D89 89FE
To claim this, I am signing this object:
var path = require('path'); | |
var saveImage = function(article, image, fn) { | |
var ending = path.extname(image.originalFilename); | |
var unionPath = __dirname + '/../../public/images/unions/' + article.union; | |
var newPath = unionPath + '/' + article._id + ending; | |
var newPathCropped = unionPath + '/' + article._id + '_cropped' + ending; | |
mkdirp(unionPath, function(err) { | |
if (err) return fn(err); |
var article = new Article(parsedFields); | |
article.union = req.params.union; | |
article.image = files.file[0]; | |
console.log('for', article.image, article.image.path, 'fil', files.file[0], files.file[0].path); | |
/* output: | |
for [object Object] undefined fil { fieldName: 'file', | |
originalFilename: '536a69d70368983f0c4bff23.png', | |
path: '/var/folders/_1/07xdf3092n79l_yjgsd7bmkc0000gn/T/16266-pr6udj.png', | |
headers: |
alert("hei"); |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<key>weechat-notifier</key> | |
<key>EnvironmentVariables</key> | |
<dict> | |
<key>SERVER</key> | |
<string>(PLACEHOLDER) Server IP goes here.</string> |
diff --git a/lego/users/migrations/0001_initial.py b/lego/users/migrations/0001_initial.py | |
index f33ef4a..d206f67 100644 | |
--- a/lego/users/migrations/0001_initial.py | |
+++ b/lego/users/migrations/0001_initial.py | |
@@ -3,9 +3,9 @@ from __future__ import unicode_literals | |
from django.db import models, migrations | |
import django.db.models.deletion | |
+import django.core.validators | |
import django.utils.timezone |
function clearCollections() { | |
var collections = _.values(mongoose.connection.collections); | |
return Bluebird.map(collections, function(collection) { | |
return collection.removeAsync(); | |
}); | |
} | |
before(function(done) { | |
mongoose.connection.on('connected', done); | |
}); |
var voteMappingSchema = new Schema({ | |
user: { | |
type: Schema.Types.ObjectId, | |
ref: 'User' | |
}, | |
hasVoted: { | |
type: Boolean, | |
default: false | |
} | |
}); |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.gruppe27.fellesprosjekt</groupId> | |
<artifactId>fellesprosjekt27</artifactId> | |
<version>0.1.0</version> | |
<packaging>jar</packaging> | |
<name>fellesprosjekt27</name> |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
NAME=slack-irc | |
NODE_BIN_DIR=/usr/bin | |
NODE_PATH=/usr/lib/node_modules | |
APPLICATION_DIRECTORY=/home/slack-irc/slack-irc | |
APPLICATION_START=$APPLICATION_DIRECTORY/index.js | |
PIDFILE=$APPLICATION_DIRECTORY/pids/$NAME.pid | |
LOGFILE=$APPLICATION_DIRECTORY/logs/production.log |