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
| rb> envjs = Johnson::Runtime.new | |
| => #<Johnson::TraceMonkey::Runtime:0x1f2442c> | |
| rb> envjs.extend Envjs::Runtime | |
| => #<Johnson::TraceMonkey::Runtime:0x1f2442c> | |
| rb> window = envjs.evaluate("window") | |
| => [object Window 0] | |
| rb> puts window.location.to_s | |
| about:blank | |
| => nil | |
| rb> puts window.document.innerHTML |
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 'johnson' | |
| require 'johnson/tracemonkey' | |
| require 'envjs' | |
| require 'envjs/runtime' | |
| envjs = Johnson::Runtime.new | |
| envjs.extend Envjs::Runtime | |
| window = envjs.evaluate("window") | |
| window.location = 'http://inmateinfo.cityofhenderson.com/Default.aspx' | |
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
| person: { | |
| name: { | |
| first_name: "Jeremy", | |
| last_name: "Woertink" | |
| }, | |
| age: 28, | |
| talk: function() { | |
| alert("hello world"); | |
| } | |
| } |
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
| Varnish | |
| Memcache | |
| File System Mounting | |
| Cron tasks | |
| Ubuntu (System Administration) | |
| Multi Server integration | |
| Screen Scraping | |
| Ruby 1.8.7 | |
| Delayed Jobs | |
| SSL |
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
| Jeremy-Woertinks-MacBook-Pro-2:cardplayer jeremywoertink$ rake db:migrate --trace | |
| (in /Users/jeremywoertink/Sites/cardplayer) | |
| ** Invoke db:migrate (first_time) | |
| ** Invoke environment (first_time) | |
| ** Execute environment | |
| ** Execute db:migrate | |
| rake aborted! | |
| uninitialized constant MysqlCompat::MysqlRes | |
| /Users/jeremywoertink/Sites/cardplayer/vendor/rails/activesupport/lib/active_support/dependencies.rb:440:in `load_missing_constant' | |
| /Users/jeremywoertink/Sites/cardplayer/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing' |
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
| module Bootcamp | |
| class Depot < Thor | |
| include Thor::Actions | |
| module Tasks | |
| def self.included(base) | |
| base.extend ClassMethods | |
| 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
| function sendAttachmentEmail($message,$from,$email,$subject, $pdfdoc) { | |
| $separator = md5(time()); | |
| $filename = date("m-d-Y-")."questionnaire.pdf"; | |
| $eol = PHP_EOL; | |
| $attachment = chunk_split(base64_encode($pdfdoc)); | |
| $headers = "From: ".$from.$eol; | |
| $headers .= "MIME-Version: 1.0".$eol; | |
| $headers .= "Content-Type: multipart/mixed; boundary=\"".$separator."\"".$eol.$eol; | |
| $headers .= "Content-Transfer-Encoding: 7bit".$eol; | |
| $headers .= "This is a MIME encoded message.".$eol.$eol; |
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
| Jeremy-Woertinks-MacBook-Pro-2:bootcamp jeremywoertink$ irb | |
| ruby-1.9.2-p180 :001 > module Bootcamp | |
| ruby-1.9.2-p180 :002?> def test | |
| ruby-1.9.2-p180 :003?> puts "yes" | |
| ruby-1.9.2-p180 :004?> end | |
| ruby-1.9.2-p180 :005?> end | |
| => nil | |
| ruby-1.9.2-p180 :006 > module Bootcamp | |
| ruby-1.9.2-p180 :007?> class Something | |
| ruby-1.9.2-p180 :008?> def two |
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
| /* Android Push API | |
| * | |
| * * * * */ | |
| import android.net.http; | |
| import org.json; | |
| import javax.crypto.*; | |
| public class Pusher { |
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
| /* Unnecessary code removed */ | |
| package jme3test.helloworld; | |
| import com.jme3.app.SimpleApplication; | |
| import com.jme3.input.controls.ActionListener; | |
| public class HelloInput extends SimpleApplication { | |
| public static void main(String[] args) { | |
| HelloInput app = new HelloInput(); | |
| } |
OlderNewer