Skip to content

Instantly share code, notes, and snippets.

View vrusua's full-sized avatar
🇺🇦

Ruslan Voroshchuk vrusua

🇺🇦
View GitHub Profile
@vrusua
vrusua / template.html
Created December 1, 2013 03:30 — forked from tinabeans/template.html
#template single-column responsive email
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Single-Column Responsive Email Template</title>
<style>
@media only screen and (min-device-width: 541px) {
.content {
@vrusua
vrusua / config.php
Last active August 29, 2015 14:16 — forked from BenParizek/config.php
<?php
/**************************************************
Custom configuration bootstrap file for ExpressionEngine
1) Place config.php above site root
2) Require this bootstrap file at the bottom of the config and database files:
system/expressionengine/config/config.php
Example: require(realpath(dirname(__FILE__) . '/../../../config.php'));
@vrusua
vrusua / #dev_snippets.md
Last active August 29, 2015 14:21
some useful snippets
                        ### SNIPPETS ###

#patterns More-or-Less Mixins

LESS mixins + + + + + + + site source

@vrusua
vrusua / #dev_effects.md
Last active February 16, 2022 10:37
some useful CSS/JS effects
                            ### EFFECTS ###

animate sliding onscroll / hierarchy

Lateral On-Scroll Sliding with jQuery

@vrusua
vrusua / #dev_optimisation.md
Created May 17, 2015 09:24
some site optimisation tweaks
                            ### OPTIMISATION ###

##IMAGES preload

How to set up Gulp with an ExpressionEngine project

I freaking love working with technologies like Grunt and Gulp, and wanted to share how to get my current EE front-end workflow set up. With a few tweaks, this can also be used with virtually any other sites (I've used it with Laravel, static sites, Craft, etc).

Install Node.js

  • If Node is not yet installed on the machine, it will need to be installed

Install Gulp (if needed)

#!/bin/bash
# File: exp_permissions.sh
# Description: Sets permssions on a ExpressionEngine 2 install
#
# Copyright 2010 George Ornbo (Shape Shed)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
@vrusua
vrusua / #dev_xhr-iframe.md
Last active October 25, 2021 14:20
Cross domain messaging and dynamic iframe height
@vrusua
vrusua / low-search-ajax.js
Last active August 29, 2015 14:27 — forked from low/low-search-ajax.js
Using Low Search for ExpressionEngine with Ajax. Change any of the three variables on top to suit your needs. Tested with jQuery 1.9.0.
(function($){
$(function(){
var $form = $('#search'), // Search form
$target = $('#results'), // Results container
rp = 'search/ajax-results'; // Template for results only
// Function to execute on success
var success = function(data, status, xhr) {
$target.html(data);
};