Skip to content

Instantly share code, notes, and snippets.

View christophervigliotti's full-sized avatar
🎯
Hi

Christopher Vigliotti christophervigliotti

🎯
Hi
View GitHub Profile
@christophervigliotti
christophervigliotti / working_with_popups.rb
Created April 20, 2018 13:54
AFT Working With Popups
a_popup_window = window_opened_by do
# click_button 'Open Login Window', which opens a popup
the_xpath = "//a[@id='open_popup_link']"
find(:xpath, the_xpath).click
end
within_window(a_popup_window) do
# are we focused on the popup?
expect(page).to have_selector(:xpath, "//h1[contains(text(), 'Text that appears in the H1 Tag')]")
popup_page_instance = PopupPageObj.new
#Run all tests for this project
bundle exec rspec
#run single test
bundle exec rspec path/to/spec/file/thingie_spec.rb
#Useful switches
bundle exec rspec --format documentation (more output context)
bundle exec rspec --order random (tests should be able to pass in any order)
bundle exec rspec --profile (shows you slowest tests)
<cfscript>
key = 'yer mom';
secret = 'smells';
encrypted=encrypt(secret, key, "CFMX_COMPAT", "hex");
decrypted=decrypt(encrypted, key, "CFMX_COMPAT", "hex");
WriteDump([
'key: #key#',
'secret: #secret#',
'encrypted: #encrypted#',
'decrypted: #decrypted#',
@christophervigliotti
christophervigliotti / handle_steps.cfm
Last active December 15, 2021 16:03
break a big process into separate steps
<cfscript>
// declare & set vars
var batch = getBatches(
filterStruct = {
only_get_next_incomplete_batch_for_this_week = true
}
);
Currently Learning
* Angular
* CompTIA A+ (my stepson is studying so I figured that I'd study with him)

⚠️ I am putting this effort on-hold to focus on learning another technology in support of an amazing customer.

Angular Complete Guide 💻📐

I like to keep things organized, so here is a catalog of the repositories that I'm using for this most excellent course.

Repositories Used

Section 1 - Getting Started

None

@christophervigliotti
christophervigliotti / check_mail_now.MD
Last active January 27, 2022 13:33
Refresh POP Accounts in GMail using Keyboard Maestro

Refresh POP Accounts in GMail using Keyboard Maestro

Ahoy Mac fans! One really great tool for automating repetitive tasks on my computer is Keyboard Mastro. I normally use it to automate inputting text (things like email signatures and addresses) but today I dug a bit deeper and in an effort to automate the tedious task of clicking on a series of links that I have to click each time that I want to fetch new POP email from my external accounts.

Before you dive in note that this will only work if you configure Safari to allow remote automation.

1. Action: Select Safari Tab

Set value Select tab to 1

@christophervigliotti
christophervigliotti / bootstrap_5.MD
Last active January 28, 2022 17:31
Bootstrap 5

Bootstrap 5

Notes

This is very incomplete.

Alerts

  • add class="fade" to alert components to give them a sleek fade effect while dismissing the alert box
@christophervigliotti
christophervigliotti / a_component.cfc
Last active March 1, 2022 16:30
A ColdFusion Component using nothing but cfscript
component {
// properties
variables.a_property = '';
// init
public any function init(
String an_argument
){
variables.a_property = arguments.an_argument;
return this;

Thomas Learns Python (and Git)

Hey Thomas, click here to jump to the current lesson

Goals

  1. Configure your Development Environment
  2. Learn Git + setup a Github.com account (you will be checking in all of your Python code to Github so that you can share it with me (so I can help). Learning Git is a fundamental skill for the modern software developer!
  3. Begin the 100 Days of Code for Python. You will complete one lesson for each weekend day, checking in your code to Github as you complete assignments.