Skip to content

Instantly share code, notes, and snippets.

📺
Making the web weird again

Jack McDade jackmcdade

📺
Making the web weird again
Block or report user

Report or block jackmcdade

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
@jackmcdade
jackmcdade / nginx.conf
Created Jan 10, 2020
Sample Statamic 2 Nginx Conf
View nginx.conf
server {
listen 80;
server_name example.com;
root /var/www/example.com/public/;
ssl_protocols TLSv1.2;
index index.html index.htm index.php;
charset utf-8;
@jackmcdade
jackmcdade / .gitignore
Created Aug 12, 2019
Statamic Default Gitignore
View .gitignore
.DS_Store
.env
node_modules/
bower_components/
local/cache/*
local/storage/*
local/temp/*
installer.php
@jackmcdade
jackmcdade / globals.yaml
Created Jul 3, 2019
Statamic Fieldset for Head and Footer Scripts
View globals.yaml
title: 'Site Settings'
hide: true
sections:
main:
fields:
head_scripts:
mode: table
fields:
description:
type: text
@jackmcdade
jackmcdade / utilities.less
Created Aug 22, 2018
My Tailwind Utilties
View utilities.less
/* Blend Modes
========================================================================== */
.mix-overlay { mix-blend-mode: overlay; }
.mix-multiply { mix-blend-mode: multiply; }
.mix-screen { mix-blend-mode: screen; }
.mix-lighten { mix-blend-mode: lighten; }
.mix-soft-light { mix-blend-mode: soft-light; }
.mix-difference { mix-blend-mode: difference; }
.mix-color { mix-blend-mode: color; }
View gist:ff8bf61fb57db5e74edd8a7b9b5a2b26
// Quick and dirty Instagram scraper
private function scrape($username)
{
$source = file_get_contents('http://instagram.com/' . $username);
$shards = explode('window._sharedData = ', $source);
$json_response = explode(';</script>', $shards[1]);
$response_array = json_decode($json_response[0], TRUE);
$nodes = array_get($response_array, 'entry_data:ProfilePage:0:user:media:nodes');
$data = array();
View keybase.md

Keybase proof

I hereby claim:

  • I am jackmcdade on github.
  • I am jackmcdade (https://keybase.io/jackmcdade) on keybase.
  • I have a public key ASAE1ElB7dMGW84pJKYaEsocav0Cen8ZFQVG085aOci6BAo

To claim this, I am signing this object:

@jackmcdade
jackmcdade / feed.html
Created May 8, 2017
Statamic RSS Feed
View feed.html
{{ xml_header }}
<rss version="2.0">
<channel>
{{ get_content from="/blog" }}
<title>{{ title | cdata }}</title>
<link>{{ site_url }}</link>
<description>{{ content | cdata }}</description>
{{ /get_content }}
<lastBuildDate>{{ collection:blog limit="1" }}{{ date format="r" }}{{ /collection:blog }}</lastBuildDate>
<language>en-us</language>
View nginx.conf
server {
listen 80;
server_name example.com;
root /var/www/example.com/public/;
ssl_protocols TLSv1.2;
index index.html index.htm index.php;
charset utf-8;
@jackmcdade
jackmcdade / Hydratable.vue
Created Aug 10, 2016
Vue/Laravel Server Side Preloading
View Hydratable.vue
<script>
export default {
props: {
endpoint: {
type: [String, Boolean],
default: false
},
preloaded: {
type: Boolean,
default: false
You can’t perform that action at this time.