Skip to content

Instantly share code, notes, and snippets.

View kevindente's full-sized avatar

Kevin Dente kevindente

View GitHub Profile
tell application "Microsoft Word"
activate
set currentZoom to percentage of zoom of view of active window
set newZoom to (round (currentZoom + 50) / 50) * 50
log newZoom
if newZoom <= 500 then
set percentage of zoom of view of active window to newZoom
end if
end tell
@kevindente
kevindente / error.log
Created October 30, 2012 16:55
Deploy error
info: Creating snapshot 0.0.1-13
info Uploading: [============================ ] 95%
info: Updating app gtp
info: Activating snapshot 0.0.1-13 for gtp
info: Starting app gtp
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
warn: Error returned from Nodejitsu
error: Error: socket hang up
error: at createHangUpError (http.js:1264:15)
@kevindente
kevindente / error.log
Created October 29, 2012 21:09
Jitsu deploy error
Welcome to Nodejitsu kevindente
info: jitsu v0.10.3-1, node v0.8.8
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing application dependencies in server.js
warn: Local package version appears to be old
warn: The package.json version will be incremented automatically
warn: About to write /Users/kevind/Documents/NodeApps/gtp/package.json
data:
data: {
@kevindente
kevindente / repro.js
Created October 4, 2012 20:03
Repro for mongoose issue 1127
var vm = require("vm");
var fs = require("fs");
var path = require("path");
var schemaDecl = fs.readFileSync("schema.js", "utf8");
var mongoose = require("mongoose");
mongoose.connect("localhost", "mongoosetest");
public class Step3Validator : ClassValidator<Step3>
{
public Step3Validator()
{
RuleFor(s => s.MessageGroup).Required().WithMessage("This field is required");
RuleFor(s => s.MessageGroup).Length(5, 5).Pattern(ValidationPattern.Number).WithMessage("Please enter a 5 digit number");
}
}