Skip to content

Instantly share code, notes, and snippets.

@absfarah
absfarah / gist:2929c72770c4d4ba806f9cdbbfbf94ff
Created September 20, 2022 11:37
How to Price Your Online Course (with Calculator)
<link rel="stylesheet" href="https://staticblog.payhip.com/calcs/css/style.css">
<link rel="stylesheet" href="https://staticblog.payhip.com/calcs/css/ion.rangeSlider.min.css">
<script src="https://code.jquery.com/jquery-1.12.4.js" integrity="sha256-Qw82+bXyGq6MydymqBxNPYTaUXXq7c8v3CwiYwLLNXU=" crossorigin="anonymous"></script><script src="https://staticblog.payhip.com/calcs/js/ion.rangeSlider.min.js"></script><script src="https://staticblog.payhip.com/calcs/js/script.js"></script>
<p>
<div class="pricing__calculator">
<div class="pricing__box--top">
<div class="pricing__field">
<h6>Course Income Goal</h6>
<div class="field__wrapper"><span class="currency">$</span>
<input class="format__input numeric formula__input" name="course__income--value" type="text" value="10,000" /></div>
<a href="https://payhip.com/b/oahG2" class="payhip-buy-button" data-theme="green" data-product="oahG2">Buy Now</a>
Array
(
[graphql] => Array
(
[hashtag] => Array
(
[name] => workoutprogram
[is_top_media_only] =>
[edge_hashtag_to_media] => Array
(
#!/bin/bash
SNAPID="SNAP"
BACKUPDBID="TEMPDB"
#config groups
SECURITYGROUP="Mysecgrup"
PARAMSGROUP="Myparamsgrup"
#rds verifying commands
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@absfarah
absfarah / Trustmark API Response
Last active August 29, 2015 14:09
Trustmark API Response example
{
address: "test@example.com",
format: "valid",
status: "valid",
account: "test",
domain: "example.com",
error_code: "",
error: "",
disposable: false,
duration: 0.82
{
"Error": true,
"Data": [
{
"arguments": null,
"message": "The value '1' is not valid."
}
],
"Id": "MCIGVr1im7G7r8y2WCrZEOcyVxcodK1a"
}
{
"Success": true,
"Data": [
{
"ShortCode": "sample string 1",
"Description": "sample string 2",
"Code": "sample string 3",
"RequiresStateProvince": true
}
],
{
"Success": true,
"Data": [
{
"PerformanceId": 1,
"ProductionSeasonId": 2,
"Title": "sample string 3",
"Date": "sample string 4",
"OnSale": true,
"OnSaleDate": "sample string 6",
@absfarah
absfarah / CSS_Specificity.php
Created May 23, 2012 09:09
A PHP function that determines the specificity of a CSS selector
<?php
function specificity($selector) {
// Pseudo classes
$classes = array(":link", ":visited", ":hover", ":active", ":focus", ":target", ":lang", ":enabled",
":disabled", ":checked", ":indeterminate", ":root", ":nth-child", ":nth-last-child",
":nth-of-type", ":nth-last-of-type", ":first-child", ":last-child", ":first-of-type",
":last-of-type", ":only-child", ":only-of-type", ":empty", ":contains", ":not");
// Pseudo elements