This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Multi Stock Analyzer</title> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous"> | |
</head> | |
<body> |
This file contains 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 'pry' | |
module Phrase | |
class Tokenizer | |
def initialize(phrase) | |
@phrase = phrase | |
end | |
def phrase |
This file contains 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
#Add multiple databases to a Rails App | |
#given you have other database connections you'd like to define inside the rails app | |
#Here's a possible solution to define multiple databases | |
#do not copy this template over your current configuration | |
#just add/name the connection and add _staging or _production (whichever environment the DB is for) | |
#to the current database.yml | |
#imagine we have a seperate database that manages members | |
#these members have access to this app, and 10 other apps you / your start-up ;) has developed. | |
#so the members database is separate and here we make members accessible to this app. |
This file contains 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
#Action Mailer SMTP settings | |
#Visit http://guides.rubyonrails.org/configuring.html#configuring-action-mailer | |
#For all possible configurations | |
development: | |
:address: | |
:port: | |
:authentication: | |
:user_name: | |
:password: |
This file contains 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
<HTML> | |
<HEAD> | |
<SCRIPT language=Javascript> | |
//only accept numeric values in input box | |
function isNumeric(num) | |
{ | |
var charCode = (num.which) ? num.which : event.keyCode; | |
if (charCode != 46 && charCode > 31 && (charCode < 48 || charCode > 57)) return false; |