Skip to content

Instantly share code, notes, and snippets.

@ebetancourt
ebetancourt / wp-disable-plugin-update.php
Last active June 6, 2024 09:57 — forked from rniswonger/wp-disable-plugin-update.php
WordPress - Disable specific plugin update check
<?php
// have to add that opening tag to get syntax highlighting... ¯\_(ツ)_/¯
/**
* Prevent update notification for plugin
* http://www.thecreativedev.com/disable-updates-for-specific-plugin-in-wordpress/
* Place in theme functions.php or at bottom of wp-config.php
*/
function disable_plugin_updates( $value ) {
@ArtyomLazyan
ArtyomLazyan / cookie.php
Created June 26, 2017 10:02
Work With Cookies
@jacurtis
jacurtis / 1) Main.blade.php
Created February 16, 2017 16:37
Laravel 5.4 Components & Slots
<!-- This is the main Blade file that you want your components to show up in -->
<!DOCTYPE html>
<html lang="{{ config('app.locale') }}">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Laravel</title>
@derekmorash
derekmorash / gulpfile.js
Last active February 13, 2023 08:04
Gulp task to compile Shopify Liquid tags in SASS with Autoprefixer
var gulp = require('gulp');
var sass = require('gulp-sass');
var replace = require('gulp-replace');
var autoprefixer = require('gulp-autoprefixer');
var concat = require('gulp-concat');
gulp.task('compilesass', function() {
// root SASS file (contains all your includes)
return gulp.src('./sass/style.scss')
// compile SASS to CSS
@pedroagabreu
pedroagabreu / gist:1908892061fcb2b2f3c6
Last active February 10, 2023 14:44
Salesforce web to lead via php-curl.
$sfurl = 'https://webto.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8';
$sffields = array(
'oid' => 'someoid',
'lead_source' => 'my website',
'last_name' => urlencode($_POST['name']),
'company' => urlencode($_POST['organization']),
'email' => urlencode($_POST['email']),
'phone' => urlencode($_POST['phone']),
);
foreach($sffields as $key=>$value) { $fieldstring .= $key.'='.$value.'&'; }
@julien731
julien731 / class-salesforce.php
Last active January 14, 2018 23:49
class-salesforce.php
<?php
/**
* Salesforce Web-To-Lead cURL PHP Wrapper.
*
* This class is a helper for Salesforce web-to-lead
* feature.
*
* @package Salesforce_WTL
* @version 0.1.1
* @author Julien Liabeuf <web@n2clic.com>
@Zodiac1978
Zodiac1978 / .htaccess
Last active June 10, 2024 18:57
Make your Website faster - a safe htaccess way
#
# Sources:
# http://stackoverflow.com/questions/7704624/how-can-i-use-gzip-compression-for-css-and-js-files-on-my-websites
# http://codex.wordpress.org/Output_Compression
# http://www.perun.net/2009/06/06/wordpress-websites-beschleuinigen-4-ein-zwischenergebnis/#comment-61086
# http://www.smashingmagazine.com/smashing-book-1/performance-optimization-for-websites-part-2-of-2/
# http://gtmetrix.com/configure-entity-tags-etags.html
# http://de.slideshare.net/walterebert/die-htaccessrichtignutzenwchh2014
# http://de.slideshare.net/walterebert/mehr-performance-fr-wordpress
# https://andreashecht-blog.de/4183/