Skip to content

Instantly share code, notes, and snippets.

@jamoes
jamoes / diff
Created August 26, 2014 20:49
Diff Between NXT v1.1.6 and BURST v1.0.0
diff --git a/java/nxt/Account.java b/java/nxt/Account.java
index ca16347..cdd7c48 100644
--- a/java/nxt/Account.java
+++ b/java/nxt/Account.java
@@ -549,9 +549,6 @@ public final class Account {
}
private void checkBalance() {
- if (id.equals(Genesis.CREATOR_ID)) {
- return;
@jamoes
jamoes / gist:1279096
Created October 11, 2011 19:16
Pre-commit hook to add newlines and remove trailing whitespace
#!/usr/bin/env ruby
files = `git diff-index --name-status --cached HEAD | grep -v ^D | cut -c3-`
unless files == ''
files.split("\n").each do |f|
# Only examine known text files
if f =~ /.(conf|css|erb|html|haml|scss|css|js|json|log|properties|rb|ru|txt|xml|yml)$/ && f =~ /^tapjoyads\/(app|test|lib|public|db\/migrate|config)\//
# Add a linebreak to the file if it doesn't have one
if `tail -c1 #{f}` != "\n"
`echo >> #{f}`