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
| /* | |
| Basic blocks of code that will build a CSV file using repsonse data from API calls | |
| This is a "one-off" process, meaning you will | |
| 1. run Gatling script to generate CSV file using REST calls (usually POSTS, but GETS or datbase queries could work ) | |
| 2. copy the file into your project | |
| 3. compile and run Gatling | |
| */ | |
| class MySimulation extends Simulation { |
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
| /* | |
| Write a program that prints out the numbers 1 to 100 (inclusive). | |
| If the number is divisible by 3, print Crackle instead of the number. | |
| If it's divisible by 5, print Pop. If it's divisible by both 3 and 5, | |
| print CracklePop. You can use any language. | |
| */ | |
| /// any number x where x % y is divisible by that number. We'll use that fact to match boolean patterns in Scala. | |
| //// In Scala RePL, copy-paste the function first. Then use the function in a second call from the REPL. | |
| def listEval( number: Int ): String = (number % 3, number % 5 ) match { |
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
| package src.main.java; | |
| import java.util.Collections; | |
| import java.util.List; | |
| /** | |
| * Created by nwhit8 on 11/1/15. | |
| */ | |
| public class Day { |
CSV FILE DIFF SCRIPT
- Uses standard Python3 modules
- Finds diff between 2 CSV files & prints results to HTML
- Finds and prints list of items found in both files
- Does NOT find duplicates in same file
USAGE:
- Download script file and sample CSVs to a directory on your computer
- Run script with this command>>
python3 compare_csv_files.py
- Script will generate html report in same directory
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> | |
| <meta name="description" content="[add your bin description]" /> | |
| <meta charset=utf-8 /> | |
| <title>Decimalizer c.2013 - Nadine Whitfield</title> | |
| </head> | |
| <body> |
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
| package performance.simulations.scenarios | |
| import io.gatling.core.Predef._ | |
| import io.gatling.http.Predef._ | |
| import performance.simulations.lib.JenkinsParam._ | |
| import performance.simulations.lib.RandomFeeder._ | |
| import performance.simulations.lib.SharedHeaders._ | |
| /** | |
| * Created by nwhit8 on 9/21/15. |
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
| #!bin/bash | |
| yum install httpd -y | |
| yum update -y | |
| aws s3 cp s3://mywebbucket-cloudguru /var/www/html/ --recursive | |
| service httpd start | |
| chkconfig httpd on | |
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
| What is the difference between "express": "^4.13.3" and "express": "~4.13.3" ? | |
| What happens if I use `npm install <package> --save` instead of `npm install <package> --save-dev` ? |
NewerOlder
