Skip to content

Instantly share code, notes, and snippets.

@transparenceweb
transparenceweb / gtm-iframe-child.html
Last active November 13, 2018 02:29
Using Google Tag Manager to track a site and have a 3rd party element loading into an iframe. Need to track an event onclick within the iframe and have it push to the dataLayer on the parent page. Adding GTM snippet to child page not a possibility so using typical dataLayer.push({'event': 'event_name'}); will not work. Apply following workaround…
<!doctype html>
<html>
<head>
<title>Child page</title>
<!-- Stylesheet -->
<style type="text/css">
body
{
@anchetaWern
anchetaWern / php-webscraping.md
Created August 4, 2013 13:18
web scraping in php

Have you ever wanted to get a specific data from another website but there's no API available for it? That's where Web Scraping comes in, if the data is not made available by the website we can just scrape it from the website itself.

But before we dive in let us first define what web scraping is. According to Wikipedia:

{% blockquote %} Web scraping (web harvesting or web data extraction) is a computer software technique of extracting information from websites. Usually, such software programs simulate human exploration of the World Wide Web by either implementing low-level Hypertext Transfer Protocol (HTTP), or embedding a fully-fledged web browser, such as Internet Explorer or Mozilla Firefox. {% endblockquote %}

@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active September 26, 2026 04:51
A badass list of frontend development resources I collected over time.
@elidickinson
elidickinson / max_width_email.html
Created May 6, 2013 15:10
Email Template trick: max-width with outlook
<!--[if mso]>
<center>
<table><tr><td width="580">
<![endif]-->
<div style="max-width:580px; margin:0 auto;">
<p>This text will be centered and constrained to 580 pixels even on Outlook which does not support max-width CSS</p>
</div>
<!--[if mso]>
@alimd
alimd / Useful Htaccess Tricks and Tips.md
Last active October 9, 2024 00:38
Useful Htaccess Tricks and Tips for your websites (better performance, speed up, stability and more) Optimized for wordpress Tested in 1devs server with apache (not nginx)

Useful Htaccess Tricks and Tips for your websites (better performance, speed up, stability and more)

Apache configuration file (.htaccess) .htaccess files are an overhead, this logic should be in your Apache config if possible: httpd.apache.org/docs/2.2/howto/htaccess.html

Techniques in here adapted from all over, including: html5boilerplate: html5boilerplate.com Kroc Camen: camendesign.com/.htaccesss perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/ Useful htaccess tricks & tips: http://www.queness.com/post/5421/17-useful-htaccess-tricks-and-tips

@zenorocha
zenorocha / README.md
Last active March 11, 2026 14:24
A template for Github READMEs (Markdown) + Sublime Snippet

Project Name

TODO: Write a project description

Installation

TODO: Describe the installation process

Usage

@chrisvanpatten
chrisvanpatten / gitpushguide.md
Created May 13, 2012 00:39
Git push for website publication

This tutorial walks you through the process of setting up git so you can easily push to staging and production remotes.

Expectations

You should have a local development copy of your website (located anywhere) and staging and production websites in the same directory on your remove server; e.g. two directories named staging.website.com and website.com.

You can certainly locate them anywhere you want (just change the path to the remotes in step three) but I'm not planning for that in this guide.

Step one: initialization/setup