- op (6 bits) = operation code
- rs (5 bits) = source register
- rt (5 bits) = other source register
- rd (5 bits) = destination register
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 'progressbar' | |
curr = Date.parse("01/01/0001") | |
totals = (Date.today - curr).to_i | |
pbar = ProgressBar.new "Counting", totals | |
Months = [] |
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
# Esercizio 2 | |
# Autori: Luca Parsani, Federico Ravasio | |
# Licenza GPL | |
# | |
# Indirizzi memoria RAM | |
# Sensore Alto 0x10010020 | |
# Sensore Centro 0x10010030 | |
# Sensore Basso 0x10010040 | |
# Temp. Input 0x10010050 | |
# Output 0x10010060 |
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
.........F.. | |
Failures: | |
1) MongoidDocument it should behave like Arnold#tempfile should store the yaml-ized object into a tempfile | |
Failure/Error: attributes = YAML.load_file(subject.send(:tempfile)) | |
Mocha::ExpectationError: | |
unexpected invocation: {"rvm_gemsets_path"=>"/Users/razielgn/.rvm/gemsets", "rvm_scripts_path"=>"/Users/razielgn/.rvm/scripts", "rvm_bin_path"=>"/Users/razielgn/.rvm/bin", "TERM_PROGRAM"=>"Apple_Terminal", "GEM_HOME"=>"/Users/razielgn/.rvm/gems/ruby-1.9.2-p290", "rvm_man_path"=>"/Users/razielgn/.rvm/man", "TERM"=>"xterm-color", "SHELL"=>"/bin/bash", "IRBRC"=>"/Users/razielgn/.rvm/rubies/ruby-1.9.2-p290/.irbrc", "TMPDIR"=>"/var/folders/Yv/Yv7orkkAEuC5HyLxCdMu5k+++TI/-Tmp-/", "rvm_user_path"=>"/Users/razielgn/.rvm/user", "Apple_PubSub_Socket_Render"=>"/tmp/launch-GN0Du6/Render", "rvm_wrappers_path"=>"/Users/razielgn/.rvm/wrappers", "TERM_PROGRAM_VERSION"=>"273", "rvm_patches_path"=>"/Users/razielgn/.rvm/patches", "OLDPWD"=>"/Users/razielgn", "MY_RUBY_HOME"=>"/Users/raziel |
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 'tempfile' | |
module Arnold | |
def edit | |
YAML.load(change).each { |key, value| write_attribute(key, value) } | |
end | |
def edit! | |
edit |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
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 'yaml' | |
#require 'mongoid' | |
class Bump | |
attr_reader :data | |
def initialize | |
@data = [1,2,3,4,5] | |
end | |
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
require 'mongoid' | |
require './lib/arnold' | |
class Test | |
include Mongoid::Document | |
field :name | |
field :job | |
field :rank | |
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
Counting objects: 21, done. | |
Delta compression using up to 4 threads. | |
Compressing objects: 100% (9/9), done. | |
Writing objects: 100% (11/11), 1.67 KiB, done. | |
Total 11 (delta 4), reused 0 (delta 0) | |
remote: /data/github/current/lib/github/config/failbot.rb:5: undefined method `setup' for Failbot:Module (NoMethodError) | |
remote: from /data/github/current/config/basic.rb:168:in `require' | |
remote: from /data/github/current/config/basic.rb:168 | |
remote: from hooks/post-receive:13:in `require' | |
remote: from hooks/post-receive:13 |
OlderNewer