Skip to content

Instantly share code, notes, and snippets.

View frecklebit's full-sized avatar

Adam Jenkins frecklebit

View GitHub Profile
@frecklebit
frecklebit / input.scss
Created March 14, 2024 18:31
Generated by SassMeister.com.
.some-class {
&__some-item {
&--active {
color: blue;
}
}
}
@frecklebit
frecklebit / input.scss
Created January 16, 2024 18:37
Generated by SassMeister.com.
// Demo artboard styles
html {
background: #f4f4f4;
font-size: 100%;
font-family: Roboto, Helvetica, sans-serif;
margin: 100px auto;
text-align: center;
-webkit-font-smoothing: antialiased;
}
<script lang="ts">
import { Vue, Prop, Component } from 'vue-property-decorator';
import { VCard, VImg } from 'vuetify/lib/components';
import type { HeroBanner, OverlayContent } from '../Hero.d';
import Overlay from '../components/HeroOverlay.ts.vue';
@Component({
components: {
#!/bin/sh
# Deploys current branch to Zoro team environment
# e.g. deploy-qa browse-d
deploy-qa() {
# Make sure current directory is clean
if [[ -n "$(git status --untracked-files=no --porcelain)" ]]; then
echo "Please commit your work before deploying to QA"
return 1
fi
@frecklebit
frecklebit / input.scss
Created October 20, 2020 19:38
Generated by SassMeister.com.
.menu {
color: red;
& > * {
color: blue;
}
}
.submenu {
color: green;
@frecklebit
frecklebit / input.scss
Created October 20, 2020 19:36
Generated by SassMeister.com.
.menu {
color: red;
& > li {
color: blue;
}
}
.submenu {
color: green;
@frecklebit
frecklebit / input.scss
Created October 20, 2020 19:36
Generated by SassMeister.com.
.menu {
color: red;
& > li {
color: blue;
}
}
.submenu {
color: green;
@frecklebit
frecklebit / rgb-to-gex.php
Last active March 18, 2024 20:34
PHP Convert RGB to Hex
<?php
/**
* Convert rgb colors to hex
*
* @since TimberPress 1.0.0
* @param string $hex Hex color code
* @return mixed rgb value
*/
if ( ! function_exists( 'timberpress_rgb_to_hex' ) ) :
function timberpress_rgb_to_hex( $color ) {
@frecklebit
frecklebit / hex-to-rgb.php
Last active May 5, 2017 18:57
PHP Convert Hex to RGB
<?php
/**
* Convert hex colors to rgb
*
* @since TimberPress 1.0.0
* @param string $hex Hex color code
* @return mixed rgb value
*/
if ( ! function_exists( 'timberpress_hex_to_rgb' ) ) :
function timberpress_hex_to_rgb( $color ) {
@frecklebit
frecklebit / foundation.gravity.js
Created March 22, 2017 14:00
Foundation Gravity
/**
* Foundation Gravity by Adam Jenkins
* Licensed under MIT Open Source
*/
'use strict';
!function ( $ ) {
/**