Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed a bug where if the last block stored was an orphan, getLatestBl…
…ockNode() would return 0. This caused terminal duplicates in the database to be created.
- Loading branch information
1 parent
ee68dd8
commit 34b2eca
Showing
86 changed files
with
9,723 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
|
||
var Addresses = function () { | ||
this.respondsWith = ['html', 'json', 'xml', 'js', 'txt']; | ||
|
||
this.index = function (req, resp, params) { | ||
this.respond({params: params}); | ||
}; | ||
|
||
this.add = function (req, resp, params) { | ||
this.respond({params: params}); | ||
}; | ||
|
||
this.create = function (req, resp, params) { | ||
// Save the resource, then display index page | ||
this.redirect({controller: this.name}); | ||
}; | ||
|
||
this.show = function (req, resp, params) { | ||
this.respond({params: params}); | ||
}; | ||
|
||
this.edit = function (req, resp, params) { | ||
this.respond({params: params}); | ||
}; | ||
|
||
this.update = function (req, resp, params) { | ||
// Save the resource, then display the item page | ||
this.redirect({controller: this.name, id: params.id}); | ||
}; | ||
|
||
this.remove = function (req, resp, params) { | ||
this.respond({params: params}); | ||
}; | ||
|
||
}; | ||
|
||
exports.Addresses = Addresses; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
|
||
var Address = function () { | ||
/* | ||
this.property('login', 'string', {required: true}); | ||
this.property('password', 'string', {required: true}); | ||
this.property('lastName', 'string'); | ||
this.property('firstName', 'string'); | ||
this.validatesPresent('login'); | ||
this.validatesFormat('login', /[a-z]+/, {message: 'Subdivisions!'}); | ||
this.validatesLength('login', {min: 3}); | ||
// Use with the name of the other parameter to compare with | ||
this.validatesConfirmed('password', 'confirmPassword'); | ||
// Use with any function that returns a Boolean | ||
this.validatesWithFunction('password', function (s) { | ||
return s.length > 0; | ||
}); | ||
// Can define methods for instances like this | ||
this.someMethod = function () { | ||
// Do some stuff | ||
}; | ||
*/ | ||
|
||
}; | ||
|
||
/* | ||
// Can also define them on the prototype | ||
Address.prototype.someOtherMethod = function () { | ||
// Do some other stuff | ||
}; | ||
// Can also define static methods and properties | ||
Address.someStaticMethod = function () { | ||
// Do some other stuff | ||
}; | ||
Address.someStaticProperty = 'YYZ'; | ||
*/ | ||
|
||
Address = geddy.model.register('Address', Address); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<div class="hero-unit"> | ||
<h3>Params</h3> | ||
<ul> | ||
<% for (var p in params) { %> | ||
<li><%= p + ': ' + params[p]; %></li> | ||
<% } %> | ||
</ul> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<div class="hero-unit"> | ||
<h3>Params</h3> | ||
<ul> | ||
<% for (var p in params) { %> | ||
<li><%= p + ': ' + params[p]; %></li> | ||
<% } %> | ||
</ul> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<div class="hero-unit"> | ||
<h3>Params</h3> | ||
<ul> | ||
<% for (var p in params) { %> | ||
<li><%= p + ': ' + params[p]; %></li> | ||
<% } %> | ||
</ul> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<div class="hero-unit"> | ||
<h3>Params</h3> | ||
<ul> | ||
<% for (var p in params) { %> | ||
<li><%= p + ': ' + params[p]; %></li> | ||
<% } %> | ||
</ul> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,30 @@ | ||
<!-- Lets talk about geddy --> | ||
<div class="hero-unit geddy-welcome-box"> | ||
<h1>Hello, World!</h1> | ||
<p>You've created a Geddy app and your server is running. If you already know what you're doing, feel free to jump into your app logic, if not...</p> | ||
<p><a href="http://geddyjs.org/tutorial.html" class="btn btn-primary btn-large">Lets get you started »</a></p> | ||
</div> | ||
<div class="container-fluid"> | ||
<div class="row-fluid"> | ||
<div class="span4"> | ||
<!--Sidebar content--> | ||
<form class="well form-search"> | ||
<input type="text" class="input-medium search-query"> | ||
<button type="submit" class="btn">Search</button> | ||
</form> | ||
</div> | ||
<div class="span8"> | ||
<!--Body content--> | ||
<div id="viz"></div> | ||
<script type="text/javascript"> | ||
var sampleSVG = d3.select("#viz") | ||
.append("svg") | ||
.attr("width", 100) | ||
.attr("height", 100); | ||
sampleSVG.append("circle") | ||
.style("stroke", "gray") | ||
.style("fill", "white") | ||
.attr("r", 40) | ||
.attr("cx", 50) | ||
.attr("cy", 50) | ||
.on("mouseover", function(){d3.select(this).style("fill", "aliceblue");}) | ||
.on("mouseout", function(){d3.select(this).style("fill", "white");}); | ||
</script> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[Tue, 05 Jun 2012 05:23:23 GMT] ERROR adapter not found |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.