Skip to content

Instantly share code, notes, and snippets.

View k7y6t5's full-sized avatar

John Manning k7y6t5

View GitHub Profile
@k7y6t5
k7y6t5 / beanstalk-glip-integration.php
Last active September 16, 2016 14:48
Beanstalk Modular Webhooks -> Glip Webhooks Integration
<?php
/**
* Example Beanstalk json formatting (Git Deployment)
* http://support.beanstalkapp.com/article/958-modular-webhooks-json-examples
*
* {
* "trigger": "deploy",
* "payload": {
* "type": "Deployment",
__DB___%Y-%m-%d_%H-%M-%S
@k7y6t5
k7y6t5 / yada.php
Last active December 4, 2015 17:08
All your intership are belong to us
<?php
function get_catchphrases() {
$catchphrases = array(
'progressive-enhancement',
'semantic-markup',
'mobile-first-development',
);
$catchphrases = implode(', ', $catchphrases);
$catchphrases = substr_replace($catchphrases, ", and ", strrpos($catchphrases, ", "), strlen(", "));
{
"color_scheme": "Packages/dracula-theme-master/Dracula.tmTheme",
"detect_indentation": false,
"font_face": "Source Code Pro",
"font_size": 14,
"highlight_line": true,
"ignored_packages":
[
"Markdown",
"Vintage"
@k7y6t5
k7y6t5 / _rhythm.scss
Last active August 29, 2015 14:11
Vertical Rythmn
/* Define your base font-size here; most elements will inherit this. */
$font-size-base: 16;
$line-height-base: 1.5;
$magic: $font-size-base * $line-height-base; /* 24px (This is now our magic number; all subsequent margin-bottoms and line-heights want to be a multiple of this number in order to maintain vertical rhythm.) */
@function strip-unit($num) {
@return $num / ($num * 0 + 1);
}
// By Karl Merkli (https://github.com/Itrulia)
@k7y6t5
k7y6t5 / fixed.css
Created October 20, 2014 15:52
Fixed Bar
.fix-me.is-fixed {
position: fixed;
top: 0;
z-index: 10;
}
@k7y6t5
k7y6t5 / equal-height-columns
Last active August 29, 2015 14:06
Equal height columns
/*-----------------------
@EQUAL HEIGHT BLOCKS
http://css-tricks.com/equal-height-blocks-in-rows/
------------------------*/
namespace.equal_height = (function(){
var settings = {
$targets: $(".equal-height-columns"),
};
@k7y6t5
k7y6t5 / tabs.css
Last active August 29, 2015 14:05
Show / hide tab content according to data attribute
.tabs-menu {
list-style: none;
margin: 0;
padding: 0;
}
.tabs-menu__item {
text-align: center;
}
@k7y6t5
k7y6t5 / states.sql
Last active August 29, 2015 14:01
States
# ************************************************************
# Thanks to http://statetable.com/
# ************************************************************
# ************************************************************
# Sequel Pro SQL dump
# Version 4096
#
# http://www.sequelpro.com/
# http://code.google.com/p/sequel-pro/
@k7y6t5
k7y6t5 / scrollto
Last active August 29, 2015 14:01
/*-----------------------
@SCROLLTO
required: http://demos.flesler.com/jquery/scrollTo/
optional: https://github.com/gdsmith/jquery.easing
------------------------*/
ww.scrollto = (function(){
var settings = {
$trigger: $(".btn--scroll"),
scroll_rate: 200,