Skip to content

Instantly share code, notes, and snippets.

<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: "[email protected]",
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
@absfarah
absfarah / specificity.php
Created May 19, 2012 13:40 — forked from hakre/specificity.php
CSS sepcificty
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
$elements = array(":before", ":after", ":first-line", ":first-letter", ":selection");
// HTML tags