Skip to content

Instantly share code, notes, and snippets.

View Greyvy's full-sized avatar
🤡
Living large

Grey Vaisius Greyvy

🤡
Living large
View GitHub Profile
" Vim syntax file
" Language: C
" Maintainer: Bram Moolenaar <Bram@vim.org>
" Last Change: 2018 Sep 21
" Quit when a (custom) syntax file was already loaded
if exists("b:current_syntax")
finish
endif
@Greyvy
Greyvy / copy.lua
Created March 8, 2019 06:48 — forked from tylerneylon/copy.lua
How to deep copy Lua values.
-- copy.lua
--
-- Functions of varying complexity levels to achieve
-- a deep copy in Lua.
--
-- 1. The Problem.
--
-- Here's an example to see why deep copies are useful.
.Header {
padding: 5em 1.35em 0;
display: block;
background-color: $black;
background-color: $rgba-0-0-0-80;
color: $white;
opacity: 1;
transition: opacity 0.5s;
}
@Greyvy
Greyvy / gist:8872903
Created February 7, 2014 22:03
Arbitrary data in liquid Jekyll partials
<!-- partial.html -->
<div class="Tile">
{% if include.title %}
<h1>{{ include.title }}</h1>
{% else %}
<h1>no content!</h1>
{% endif %}
</div><!-- .Tile -->
<!-- in any template, partial, layout or content file -->
<?php
add_action( 'wp_enqueue_scripts', 'wps_enqueue_jquery' );
/**
* Enqueue jQuery from Google CDN with fallback to local WordPress
*
* @link http://codex.wordpress.org/Function_Reference/wp_enqueue_script
* @link http://codex.wordpress.org/Function_Reference/wp_register_script
* @link http://codex.wordpress.org/Function_Reference/wp_deregister_script
* @link http://codex.wordpress.org/Function_Reference/get_bloginfo
* @link http://codex.wordpress.org/Function_Reference/is_wp_error

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.

Template Components

Used to provide structural templates.

Pattern

t-template-name
t-template-name--modifier-name
t-template-name__subcomponent-name--subcomponent-modifier-name