Skip to content

Instantly share code, notes, and snippets.

View infomaven's full-sized avatar

Nadine Whitfield infomaven

  • Independent Software Developer
  • USA
View GitHub Profile
@infomaven
infomaven / gist:b68be75d6634bb91c6bc26c0f766bb26
Created December 19, 2016 20:02
HowTo: convert Maven to Gradle && Gradle to Maven
/* MAVEN TO GRADLE */
- Navigate to directory where the POM is located
- Run gradle init
> this will convert the Maven build to Gradle build (new settings.gradle & one or more build.gradle files)
/* GRADLE TO MAVEN */
- Add Maven plugin to build.gradle file
ex.
apply plugin: 'java'
@infomaven
infomaven / gist:783c39cbddaf65c5a4c261d9c9ab9ae0
Created December 20, 2016 18:58
String array manipulations
/*
Take note of length - it is used as a String[] property > strings.length AND as a method for a String
array element > strings[i].length().
*/
public Map<String, String> pairs(String[] strings) {
Map<String,String> map = new HashMap<String,String>();
for (int i = 0; i < strings.length; i++ ) {
if (strings[i].length() == 1 ) {
Character first = strings[i].charAt(0);
@infomaven
infomaven / JS-questions.txt
Last active March 19, 2017 05:02
Technical questions
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` ?
@infomaven
infomaven / gatlingGeneratedFeeder.scala
Last active January 29, 2023 17:57
Create a Gatling feeder file using REST calls
/*
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 {
@infomaven
infomaven / aws_launch_init.sh
Last active June 18, 2017 23:19
aws_healthcheck.html
#!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
@infomaven
infomaven / README.md
Last active January 25, 2021 05:51
Find difference between 2 CSV files & identify shared items. Diff report is printed to HTML.

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:

  1. Download script file and sample CSVs to a directory on your computer
  2. Run script with this command>> python3 compare_csv_files.py
  • Script will generate html report in same directory
@infomaven
infomaven / RAILS_CHEATSHEET.md
Created January 28, 2022 03:11 — forked from mdang/RAILS_CHEATSHEET.md
Ruby on Rails Cheatsheet

Ruby on Rails Cheatsheet

Architecture

Create a new application

Install the Rails gem if you haven't done so before