Consultant shall have the right to retain ownership of any inventions, original works of authorship, discoveries, concepts or ideas, which are unrelated to Consultant’s present work (or the actual or demonstrably anticipated research or development of the Company) under this Agreement; or that the Consultant developed entirely on his own time without using the Company’s equipment, supplies, facilities and does not contain any Company trade secrets, proprietary materials or any other protected intellectual property owned by the Company. Consultant represents that the exclusion of such Inventions from this Section 9 (Inventions) will not materially affect Consultant’s ability
This file contains hidden or 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
NAME=project | |
VERSION=0.0.1 | |
DIRS=etc lib bin sbin share | |
INSTALL_DIRS=`find $(DIRS) -type d 2>/dev/null` | |
INSTALL_FILES=`find $(DIRS) -type f 2>/dev/null` | |
DOC_FILES=*.md *.txt | |
PKG_DIR=pkg | |
PKG_NAME=$(NAME)-$(VERSION) |
This file contains hidden or 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
require 'date' | |
require 'tempfile' | |
require 'fileutils' | |
YEAR = Date.today.year.to_s | |
LAST_YEAR = (Date.today.year - 1).to_s | |
Dir.glob('lib/{**/}*.rb') do |path| | |
File.open(path) do |file| | |
tempfile = Tempfile.new('bump_copyright') |
This file contains hidden or 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
require 'pp' | |
invalids = ObjectSpace.each_object(DataMapper::Resource).select { |obj| !obj.saved? && !obj.valid? } | |
pp invalids.map { |obj| [obj.class, obj.errors.to_hash] } |
This file contains hidden or 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
require 'rubygems' | |
require 'rbtree' | |
class Req | |
attr_accessor :path, :time, :requires, :exception | |
def initialize(path) | |
@path = path | |
@requires = [] | |
@time = 0 | |
end |
This file contains hidden or 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
#!/usr/bin/env ruby | |
require 'net/http' | |
require 'json' | |
require 'date' | |
class PriorArt < Struct.new(:name,:description,:created_at,:updated_at) | |
end | |
prior_art = {} |
This file contains hidden or 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
public class Fib { | |
public static int fib(int n) { | |
if (n == 0 || n == 1) | |
return n; | |
return (fib(n-1) + fib(n-2)); | |
} | |
public static void main(String[] args) { | |
for (int i = 0; i < 36; i++) | |
System.out.println("n=" + i + " => " + fib(i)); |
This file contains hidden or 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
require 'digest/sha2' | |
module DataMapper | |
module Types | |
class APIKey < DataMapper::Type | |
primitive String | |
length 64 | |
# |
NewerOlder