Skip to content

Instantly share code, notes, and snippets.

View ScarletMcLearn's full-sized avatar
💭
Party time.

Scarlet McLearn ScarletMcLearn

💭
Party time.
View GitHub Profile
# ruff.toml (or .ruff.toml)
target-version = "py311"
line-length = 100
src = ["src", "scripts"]
# ⬇️ this must be TOP-LEVEL, not inside [lint]
unsafe-fixes = false
[lint]
@ScarletMcLearn
ScarletMcLearn / Commands.txt
Created May 22, 2020 15:24
Commands for Testing Cucumber Autodesk Repo on Saucelab/Jenkin
Id CommandLine
-- -----------
1 cd Z:/
2 cd '.\Work\QA Automation\AEM\'
3 ls
4 cd .\repo\
5 ls
6 cd 2
7 ls
8 cd .\Cucumber\
@ScarletMcLearn
ScarletMcLearn / LSS
Last active December 18, 2019 18:58
LSS Automation Issues
https://selfschedule-qa.aiminspect.com/
Zooming in removes the About AIM and Language buttons on top right corner.
http://homepage.aiminspections.com/about-us/#
Zooming in shows Accouts button, which is unclickable.
// C++ program for activity selection problem
// when input activities may not be sorted.
#include <bits/stdc++.h>
using namespace std;
// A job has a start time, finish time and profit.
struct Activitiy
{
int start, finish;
};
@ScarletMcLearn
ScarletMcLearn / DieNap.cpp
Last active April 12, 2019 01:13
Knapsack - Algo Project
// A Dynamic Programming based solution for 0-1 Knapsack problem
#include<stdio.h>
// A utility function that returns maximum of two integers
int max(int a, int b) { return (a > b)? a : b; }
// Returns the maximum value that can be put in a knapsack of capacity W
int knapSack(int W, int wt[], int val[], int n)
{
int i, w;
@ScarletMcLearn
ScarletMcLearn / Knapsack.cpp
Created April 2, 2019 15:21
Knapsack - Algo Project
// A Dynamic Programming based solution for 0-1 Knapsack problem
#include <iostream>
using namespace std;
// A utility function that returns maximum of two integers
int max(int a, int b)
{
return (a > b) ? a : b;
}
Prim's Algorithm(modified).cpp
#include<iostream>
#include<cstdlib>
#define WHITE 0 //not visited
#define BLACK 1 //visited
#define INF -1
using namespace std;
void create_nodes(int nodes, int** &edges, int* &parents, int* &colors){
Prim's Algorithm(modified).cpp
#include<iostream>
#include<cstdlib>
#define WHITE 0 //not visited
#define BLACK 1 //visited
#define INF -1
using namespace std;
void create_nodes(int nodes, int** &edges, int* &parents, int* &colors){
@ScarletMcLearn
ScarletMcLearn / Web Mental Scripts
Last active December 31, 2018 14:59
Web Mental Scripts
# Django Docs
import django
from django.conf import settings
from myapp import myapp_defaults
settings.configure(default_settings=myapp_defaults, DEBUG=True)
django.setup()
# Now this script or any imported module can use any part of Django it needs.