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
| $(document).ready(function(){ | |
| $('#books').sortable({ | |
| update: function(){ | |
| $.ajax({ | |
| type: 'post', | |
| data: $('#books').sortable('serialize'), | |
| dataType: 'script', | |
| complete: function(request){ | |
| $('#books').effect('highlight'); | |
| }, |
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
| def awesomofier(count, &block) | |
| awesome_tank = [] | |
| count.times do |n| | |
| awesome_tank << yield(n) | |
| end | |
| awesome_tank | |
| end | |
| awesomofier(10) {|n| "awesome_#{n}" } |
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
| class CarsTest < ActionController::TestCase | |
| indexes_tables :car | |
| context "Car search" do | |
| setup do | |
| @car1 = Factory(:car, :make => "Alfi", :model => "Super") | |
| @car2 = Factory(:car, :make => "Dan", :model => "English") | |
| @car3 = Factory(:car, :make => "Alorus", :model => "Great") | |
| 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 File.dirname(__FILE__) + '/../test_helper' | |
| class DealSearchTest < ActiveSupport::TestCase | |
| self.use_transactional_fixtures = false | |
| context "Search" do | |
| should "search keywords" do | |
| Deal.delete_all | |
| Deal.transaction do | |
| @deal1 = Factory :internal_deal, :keywords => 'kayak delorean' |
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
| <form action="http://spreebird.com/publisher_subscribe" method="post" name="ContactForm" onsubmit="return ValidateContactForm();"> | |
| <input name="campaign" type="hidden" value="test" /> | |
| <input name="medium" type="hidden" value="test" /> | |
| <input type="hidden" name="url" value="http://www.paulsonmanagementgroup.com" /> | |
| <input name="email" type="text" value="email" /> | |
| <select name="geography"> | |
| <option value="Denver">Denver</option> | |
| <option value="Philadelphia">Philadelphia</option> | |
| <option value="Orange County">Orange County</option> | |
| </select> |
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
| // 2 INT Rotary Knob decoder. | |
| // by Kevin Alford (zeroeth) JUL-25-2011 | |
| // http://pixelflow.org http://github.com/zeroeth | |
| // | |
| // Description: | |
| // This code does pattern matching on pin change to find valid rotations and filter out bad data. | |
| // Events: 1/3 A HI/LO, 2/3 A HI/LO | |
| // Valid transitions: Clock-wise 3412, Counterclock-wise 4321 | |
| #include <SoftwareSerial.h> |
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
| /* | |
| Pitch follower | |
| */ | |
| #define NOTE_B0 31 | |
| #define NOTE_C1 33 | |
| #define NOTE_CS1 35 | |
| #define NOTE_D1 37 | |
| #define NOTE_DS1 39 | |
| #define NOTE_E1 41 | |
| #define NOTE_F1 44 |
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
| 1.6.4:zeroeth@pixelmonster:minecraft(master)$ ./run.sh | |
| 161 recipes | |
| 17 achievements | |
| 12:48:29 [INFO] Starting minecraft server version Beta 1.8.1 | |
| 12:48:29 [INFO] Loading properties | |
| 12:48:29 [INFO] Starting Minecraft server on *:25565 | |
| 12:48:29 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-1067-g6301507-b1185jnks (MC: 1.8.1) | |
| 12:48:29 [SEVERE] Could not load 'plugins/bukkit.jar' in folder 'plugins': | |
| java.io.FileNotFoundException: Jar does not contain plugin.yml | |
| at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:64) |
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
| 161 recipes | |
| 17 achievements | |
| 12:48:06 [INFO] Starting minecraft server version Beta 1.8.1 | |
| 12:48:06 [INFO] Loading properties | |
| 12:48:06 [INFO] Starting Minecraft server on *:25565 | |
| 12:48:06 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-1067-g6301507-b1185jnks (MC: 1.8.1) | |
| 12:48:09 [INFO] Preparing level "world" | |
| 12:48:09 [INFO] Default game type: 0 | |
| 12:48:09 [INFO] Preparing start region for level 0 (Seed: 7087379164662809070) | |
| 12:48:10 [INFO] Preparing start region for level 1 (Seed: -6764049837348518550) |
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
| 11:46:30 [INFO] Starting minecraft server version Beta 1.8.1 | |
| 11:46:30 [INFO] Loading properties | |
| 11:46:30 [INFO] Starting Minecraft server on *:25565 | |
| 11:46:30 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-1067-g6301507-b1185jnks (MC: 1.8.1) | |
| 11:46:33 [SEVERE] LoadError: no such file to load -- bukkit | |
| require at org/jruby/RubyKernel.java:1038 | |
| (root) at /purugin.rb:5 | |
| 11:46:33 [SEVERE] (LoadError) no such file to load -- bukkit initializing PuruginPlugin v0.1 (Is it up to date?) | |
| org.jruby.embed.EvalFailedException: (LoadError) no such file to load -- bukkit |