Skip to content

Instantly share code, notes, and snippets.

Harrison Brown Harrisonbro

Block or report user

Report or block Harrisonbro

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Harrisonbro
Harrisonbro / Fix for MAMP socket error.sh
Last active Aug 26, 2015
Fix for "SQLSTATE[HY000] [2002] No such file or directory" with MAMP
View Fix for MAMP socket error.sh
sudo ln -s /Applications/MAMP/tmp/mysql/mysql.sock /tmp/mysql.sock
@Harrisonbro
Harrisonbro / SassMeister-input.scss
Created Feb 19, 2015
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// libsass (v3.1.0)
// ----
@function strip-unit($num) {
@if type-of($num) == "number" {
@return $num / ($num * 0 + 1);
} @else {
@warn "Not a number value: #{num}";
@return $num;
@Harrisonbro
Harrisonbro / SassMeister-input.scss
Created Feb 19, 2015
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// libsass (v3.1.0)
// ----
@function strip-unit($num) {
@if type-of($num) == "number" {
@return $num / ($num * 0 + 1);
} @else {
@warn "Not a number value: #{num}";
@return $num;
@Harrisonbro
Harrisonbro / SassMeister-input.scss
Created Feb 19, 2015
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// libsass (v3.1.0)
// ----
@function strip-unit($num) {
@if type-of($num) == "number" {
@return $num / ($num * 0 + 1);
} @else {
@warn "Not a number value: #{num}";
@return $num;
@Harrisonbro
Harrisonbro / SassMeister-input.scss
Last active Aug 29, 2015
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// libsass (v3.1.0)
// ----
@function strip-unit($num) {
@if type-of($num) == "number" {
@return $num / ($num * 0 + 1);
} @else {
@warn "Not a number value: #{num}";
@return $num;
@Harrisonbro
Harrisonbro / SassMeister-input.scss
Last active Aug 29, 2015
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// libsass (v3.1.0)
// ----
@function strip-unit($num) {
@if type-of($num) == "number" {
@return $num / ($num * 0 + 1);
} @else {
@warn "Not a number value: #{num}";
@return $num;
@Harrisonbro
Harrisonbro / SassMeister-input.scss
Created Feb 19, 2015
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// libsass (v3.1.0)
// ----
@function strip-unit($num) {
@if type-of($num) == "number" {
@return $num / ($num * 0 + 1);
} @else {
@warn "Not a number value: #{num}";
@return $num;
@Harrisonbro
Harrisonbro / SassMeister-input.scss
Created Sep 24, 2014
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.4.4)
// Compass (v1.0.1)
// ----
@mixin fancy-underline-support {
.cssgradients.backgroundsize.textshadow {
@content;
}
}
@Harrisonbro
Harrisonbro / gist:2b10cf8723b6167e9a18
Created Aug 11, 2014
Get Salesforce reports from report folder
View gist:2b10cf8723b6167e9a18
public List<report> getDashboardReports()
{
// Get matching report folder ID
folder[] folders = [
SELECT
id,
name,
developername
FROM
folder
View Sass-parallax-example.markdown

Sass parallax example

By locking the perspective on the body element and transforming elements in 3D on top of that, you can easily create parallax scrolling effects that don’t require JavaScript and can be much more performant as a result. Mixins can be found here: http://codepen.io/scottkellum/pen/Jwudg

A Pen by Scott Kellum on CodePen.

License.

You can’t perform that action at this time.