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
| #!/usr/bin/ruby | |
| @convert = { | |
| "e" => ["e", "3"], "l" => ["l", "1"], "o" => ["o", "0"], | |
| "a" => ["a", "4"], "t" => ["t", "7"], "s" => ["s", "5", "$"], | |
| "c" => ["c", "("], "g" => ["g", "6"], "p" => ["p", "9"], | |
| "b" => ["b", "8"] | |
| } | |
| @arrays = @convert.values # Grab all arrays in the hash |
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
| #!/usr/bin/ruby | |
| # ███▄ █ ██▓ ███▄ █ ▄▄▄██▀▀▀▓█████ ▒██ ██▒ | |
| # ██ ▀█ █ ▓██▒ ██ ▀█ █ ▒██ ▓█ ▀ ▒▒ █ █ ▒░ | |
| # ▓██ ▀█ ██▒▒██▒▓██ ▀█ ██▒ ░██ ▒███ ░░ █ ░ | |
| # ▓██▒ ▐▌██▒░██░▓██▒ ▐▌██▒▓██▄██▓ ▒▓█ ▄ ░ █ █ ▒ | |
| # ▒██░ ▓██░░██░▒██░ ▓██░ ▓███▒ ░▒████▒▒██▒ ▒██▒ | |
| # ░ ▒░ ▒ ▒ ░▓ ░ ▒░ ▒ ▒ ▒▓▒▒░ ░░ ▒░ ░▒▒ ░ ░▓ ░ | |
| # ░ ░░ ░ ▒░ ▒ ░░ ░░ ░ ▒░ ▒ ░▒░ ░ ░ ░░░ ░▒ ░ | |
| # ░ ░ ░ ▒ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ | |
| # ░ ░ ░ ░ ░ ░ ░ ░ ░ |
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
| #!/usr/bin/ruby | |
| require 'mechanize' | |
| require 'io/console' | |
| def decrypt(str) | |
| final = [] | |
| for i in (0..str.length) | |
| i.odd? ? final << str[i-2] : final << str[i] | |
| 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
| #!/usr/bin/ruby | |
| WINS = { :computer => 0, :user => 0, :draws => 0 } | |
| HANDLER = { | |
| :rock => { :rock => :tie, :paper => :lose, :scissors => :win}, | |
| :paper => { :rock => :win, :paper => :tie, :scissors => :lose}, | |
| :scissors => { :rock => :lose, :paper => :win, :scissors => :tie }, | |
| } |
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
| ran_num = rand(0..1) | |
| if ran_num == 0 | |
| PLAYER = "X" | |
| COMPUTER = "O" | |
| @turn = :player | |
| else | |
| PLAYER = "O" | |
| COMPUTER = "X" | |
| @turn = :computer | |
| 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
| #!/usr/bin/ruby | |
| # Find users in the Employee hash by using their last name + first name (needs to be unique) | |
| class Employee | |
| attr_reader :f_name, :l_name, :email, :phone | |
| EMPLOYEE = {} | |
| AREA_CODE = 555 # This is just to generate number in a specific area code | |
| PROMPT = '> ' | |
| def initialize(f_name, l_name, email, phone) | |
| @f_name = f_name | |
| @l_name = l_name |
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
| // ==UserScript== | |
| // @name MDPass | |
| // @namespace * | |
| // @include https://*/* | |
| // @description View parital MD5 values of password fields for visual comparison. | |
| // @version 1 | |
| // @require http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js | |
| // @grant none | |
| // ==/UserScript== |
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
| current_url = window.location.href; | |
| if (window.addEventListener) { | |
| window.addEventListener("storage", handler, false); | |
| } else { | |
| window.attachEvent("onstorage", handler); | |
| }; | |
| function handler(e) { | |
| sids = JSON.parse(localStorage['sids']); |
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 base64 | |
| @data = params[:data] | |
| @choice = params[:choice] | |
| if !["encode", "decode"].include?(@choice) | |
| render :action => 'base64' | |
| 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
| // ==UserScript== | |
| // @name FANS Poller | |
| // @namespace https://fcswat-us.aka.amazon.com/workflow/init | |
| // @description manages the display tabs | |
| // @include https://fcswat-us.aka.amazon.com/workflow/init | |
| // @version 1 | |
| // @grant none | |
| // ==/UserScript== | |
| // workflow message |