Skip to content

Instantly share code, notes, and snippets.

View joshparkerj's full-sized avatar
🥰

Josh Parker joshparkerj

🥰
View GitHub Profile
/* CSS HEX */
--dark-violet: #9424ccff;
--persian-indigo: #3d197bff;
--bronze: #cd7f0aff;
--electric-purple: #ad3fe4ff;
--fuchsia: #ff24f0ff;
--maya-blue: #82c1edff;
--chefchaouen-blue: #4487e4ff;
/* CSS HSL */

Can Understanding Sales Tactics Make Me Become Immune to Them?

Let's make this concrete by considering what I believe to be the most common sales tactic, and certainly the one which I personally am most interested in beating:

Sales Tactic #1: Refuse to Disclose the Price.

The purpose of this sales tactic is to thwart comparison shoppers, and thus avoid the inconvenience of competitive market pricing. A salesman may attempt to disguise this tactic from unsavvy individuals by:

  1. giving a fake price
  2. claiming repeatedly that "I'll have that price right out to you; just ten more minutes..."
  3. claiming that they cannot access the price Of course, if I am a savvy person I will see right through these blatant attempts at deception (and others like them), but I still won't have the price. So, how can I beat the tactic? Well, this first tactic has one huge glaring weakness: the salesman has to disclose the price before closing a sale. Unfortunately, I now run up against the second sales tactic:

Sales Tacti

@joshparkerj
joshparkerj / scrapage.json
Last active August 25, 2024 06:33
most recent archmage leaderboard scrapage
[
{
"start": "2024-03-03T07:00:00.000Z",
"name": "A Sproson (@asproson)",
"level": 105,
"lessonsSolved": 1212,
"certificates": [
"Learn Shells and Terminals",
"Learn Python",
"Learn Object Oriented Programming",
@joshparkerj
joshparkerj / quick-flowchart.md
Last active August 11, 2024 06:03
quick-flowchart.md
flowchart TD
A[choose shape];
B{Is the shape valid?};
C[call the function for that shape];
D[Display shape not valid];
A ----> B;
B --Yes--> C;
B --No--> D;
D ----> A;
@joshparkerj
joshparkerj / graphs.md
Created June 17, 2024 11:55
graphs from silly-internet-repo

Okay, here's what I've got for a very basic diagram, just showing what calls which (when rendered visually, it's quite the rat's nest hahahahaha):

text effect dependency graph

flowchart TD
 A --> K[General Element]
 A --> L[Element Effect Handler]
 B[Binary] --> H[General Text]
 H --> K
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Danfo&family=Jacquard+12&family=Poetsen+One&display=swap"
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Danfo&family=Jacquard+12&family=Poetsen+One&display=swap"
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>S W A V E</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Danfo&family=Jacquard+12&family=Poetsen+One&display=swap"
<!DOCTYPE html>
<html>
<head>
<title>S W A V E</title>
<style>
body {
overflow: hidden;
margin: 0;
}
function calculateSpecificity(selector) {
// Remove :is(), :not(), and :has() pseudo-classes and retain their parameters
const cleanedSelector = selector.replace(/:(is|not|has)\(([^)]*)\)/g, ' $2 ');
const attributeRegExp = /\[[^\]]*\]/g;
const attributeCount = cleanedSelector.match(attributeRegExp)?.length || 0;
const noAttributes = cleanedSelector.replace(attributeRegExp, '');
const pseudoElementRegExp = /::[^.:#>~+\s]+/g;
const pseudoElementCount = noAttributes.match(pseudoElementRegExp)?.length || 0;