Skip to content

Instantly share code, notes, and snippets.

View gmcz's full-sized avatar
👷‍♂️
Let's Build This!

Greg Colker gmcz

👷‍♂️
Let's Build This!
  • ~nimnum-wisdev
View GitHub Profile
@jackmcdade
jackmcdade / utilities.less
Created August 22, 2018 19:48
My Tailwind Utilties
/* 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; }
@codyspring
codyspring / gulpfile.js
Created December 4, 2017 21:22
Statamic & Laravel Mix with Bootstrap/FontAwesome
const elixir = require('laravel-elixir')
const config = require('./package.json')
elixir(mix => {
mix.sass('./assets/styles/main.scss', `./css/${config.name}.css`)
mix.webpack('./assets/scripts/main.js', `./js/${config.name}.js`)
mix.copy('node_modules/font-awesome/fonts', 'fonts')
mix.browserSync({
proxy: `${config.name}.dev`,
@beckysoll
beckysoll / template.html
Created November 15, 2017 19:23
using infinite scroll in a statamic collection/entries loop
{{ entries limit='6' paginate='true' as='articles' }}
<div class="items-wrap">
{{ if show_title=='true' }}
<h2 class="group-title"><a href="{{ url }}">{{ title }}</a></h2>
{{ /if }}
<div class="items">
{{ articles }}
@jasonvarga
jasonvarga / protect.md
Created September 23, 2016 16:48
Statamic 2 Content Protection

Protecting Content {#protecting-content}

You may protect your content from unwanted visitors with the protect variable. By setting this variable you can allow or deny people in various ways. There are a number of schemes used for protecting content:

The protect variable can be placed in a number of places:

<?php
class Hooks_kollide_password_protect extends Hooks
{
public $meta = array(
'name' => 'Kollide - Password Protect',
'version' => '1.0.0',
'author' => 'Sean Washington',
'author_url' => 'http://octopuscreative.com'
);
@mylesjao
mylesjao / nginx.conf
Created March 9, 2015 06:50
nginx force download
# attachment directory
location /attachment/ {
alias /tmp/attachment/;
types { }
default_type application/octet-stream;
if ($request_filename ~ "^.*/(.+\.png|jpg|gif)$"){
set $fname $1;
add_header Content-Disposition 'attachment; filename="$fname"';
@than
than / userstyles.css
Last active July 31, 2016 12:58
Fluid userstyles for Overcast.fm
/**
* Userstyles for Overcast.fm Fluid app
* than.land
* Updated: 8/13/14
*/
/* Custom scroll bar */
html {
overflow: auto;
}

Contract Killer 3

Revised date: 07/11/2012

Between us [company name] and you [customer name]

Summary:

We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.