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
import tensorflow as tf | |
import os | |
import zipfile | |
DESIRED_ACCURACY = 0.999 | |
!wget --no-check-certificate \ | |
"https://storage.googleapis.com/laurencemoroney-blog.appspot.com/happy-or-sad.zip" \ | |
-O "/tmp/happy-or-sad.zip" |
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 BotController < Stealth::Controller | |
before_action :set_outbound_phone | |
private def set_outbound_phone | |
if current_message.service == "twilio" | |
Stealth.config.twilio.from_phone = current_message.target_id | |
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
module MethodDetector | |
def option_stack | |
@option_stack ||= [] | |
end | |
def method_added(method_name) | |
unless option_stack.empty? | |
option = option_stack.pop | |
puts "You added the option '#{option}' to the method: #{method_name}" | |
end |
OlderNewer