Skip to content

Instantly share code, notes, and snippets.

View simbasounds's full-sized avatar

Simon Barnett simbasounds

View GitHub Profile
@serdaraglamis
serdaraglamis / vuesnippets-components.js
Last active November 25, 2019 23:26
VueJS Snippets for some key concepts
<div id="app">
<contact-us></contact-us>
</div>
Vue.component('contact-us', {
data: function() {
return {
email: 'info@mycompany.com'
};
@davebonds
davebonds / global-settings.php
Last active August 14, 2017 23:44
Filter default Beaver Builder global settings and add our own
<?php
/*
* Filter default global settings and add our own
*/
add_filter( 'fl_builder_register_settings_form', 'tk_designer_register_global_settings_form', 10, 2 );
function tk_designer_register_global_settings_form($form, $id) {
if ( 'global' == $id ) {
$newform =
@simbasounds
simbasounds / Very Simple FlexBox override for WordPress Galleries.css
Last active September 18, 2016 18:05
This code will remove the borders around WordPress gallery images and change the layout model to CSS flexbox.
.gallery {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
}
@cyberrob-zz
cyberrob-zz / cropAndStraightenBatch.jsx
Created May 20, 2014 03:37
An photoshop batch script for crop & straighten photo from Jeffrey Tranberry
// cropAndStraightenBatch.jsx
// Copyright 2006-2008
// Written by Jeffrey Tranberry
// Photoshop for Geeks Version 2.0
/*
Description:
This script demonstates how to batch process
a folder of images using the crop and straighten command
*/
@forgeandsmith
forgeandsmith / Gravity Forms Reset Styles
Last active June 22, 2021 07:33
Gravity Forms SCSS reset styles for easy style editing and management
///////////////////////////////////////////////
////// GRAVITY FORMS RESET STYLES //////
///////////////////////////////////////////////
// These styles are made in mind to be used with SCSS or LESS
// If you use these styles, you must go to the Gravity Forms settings in the WordPress back end and set Output CSS to No.
////----- Core Containers
.gform_heading,
.gform_body,
add_action( 'wp_enqueue_scripts', 'custom_enqueue_scripts' );
/**
* Enqueue an external Custom Javascript file to Dynamik Website Builder
*/
function custom_enqueue_scripts()
{
wp_enqueue_script( 'my-scripts', dynamik_get_stylesheet_location( 'url' ) . 'my-scripts.js', array( 'jquery' ), CHILD_THEME_VERSION, true );
}
@jasjukaitis
jasjukaitis / instapaper2chrome.py
Created October 31, 2011 15:31
Converts an Instapaper CSV export file to a Google Chrome bookmark import file.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# (c) 2011 Raphael Jasjukaitis <webmaster@raphaa.de>
import csv
import os
import sys
from optparse import OptionParser