Skip to content

Instantly share code, notes, and snippets.

View kyleknighted's full-sized avatar

Kyle Knight kyleknighted

View GitHub Profile
@kyleknighted
kyleknighted / SassMeister-input-HTML.html
Created May 21, 2014 20:21
Generated by SassMeister.com.
<div></div>
@kyleknighted
kyleknighted / SassMeister-input.scss
Created May 13, 2014 21:31
Generated by SassMeister.com.
// ----
// Sass (v3.3.7)
// Compass (v1.0.0.alpha.18)
// ----
$color1: #4d330e;
$color2: #0f3d7f;
div {
background-color: saturate(lighten(complement($color1), 10%), 10%);

Keybase proof

I hereby claim:

  • I am kyleknighted on github.
  • I am kyleknighted (https://keybase.io/kyleknighted) on keybase.
  • I have a public key whose fingerprint is 7B35 9014 1959 D48C B7A4 B745 F55D CF08 09B2 F999

To claim this, I am signing this object:

@kyleknighted
kyleknighted / supportsSockets.js
Last active December 15, 2015 23:19
A quick and easy function to see if the current browser has support for WebSocket or FlashSocket fallback.
/*!
* supportsSockets
* A quick and easy function to see if the current browser has support for WebSocket or FlashSocket fallback.
*
* @author Kyle Knight <kyle@theablefew.com>
* @copyright The Able Few 2013
* @license MIT <http://opensource.org/licenses/mit-license.php>
* @link https://gist.github.com/idpro/5339129
* @version 0.1.0
*
@kyleknighted
kyleknighted / put-it-back.coffee
Created February 25, 2013 17:34
Hubot - Put It Back script
# put back the table
#
# flip a table and the bot cleans up the rooms
module.exports = (robot) ->
robot.hear /(╯°□°)╯︵ ┻━┻|\(╯°□°)╯︵ ┻━┻|\(ノಠ益ಠ\)ノ彡┻━┻/i, (msg) ->
msg.send('┬──┬ ノ( ゜-゜ノ)')
@kyleknighted
kyleknighted / Attribute Watcher.js
Last active December 12, 2015 10:18
an all platform mutation observer that has never been tested - so use at your own risk `attrWatcher.watch(objArray, callbackFunction);`
var attrWatcher = (function() {
"use strict";
var isDOMAttrModifiedSupported, MutationObserver, attrchange, observer, disconnect;
isDOMAttrModifiedSupported = function() {
var p = document.createElement('p');
var flag = false;
if (p.addEventListener) p.addEventListener('DOMAttrModified', function() { flag = true }, false);
@mixin retina-image($img, $img-hires) {
background: url(/images/#{$img}) no-repeat center center !important;
@media
only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and ( min--moz-device-pixel-ratio: 2),
only screen and ( -moz-min-device-pixel-ratio: 2),
only screen and ( -o-min-device-pixel-ratio: 2/1),
only screen and ( min-device-pixel-ratio: 2),
only screen and ( min-resolution: 192dpi),
only screen and ( min-resolution: 2dppx) {
@kyleknighted
kyleknighted / gist:4487916
Created January 8, 2013 21:01
Current Settings for Sublime Text 2
{
"bold_folder_labels": true,
"color_scheme": "Packages/User/cobalt2.tmTheme",
"dictionary": "Packages/Language - English/en_GB.dic",
"fade_fold_buttons": false,
"font_face": "Menlo",
"font_size": 16.0,
"highlight_line": true,
"ignored_packages":
[
@kyleknighted
kyleknighted / gist:4066273
Created November 13, 2012 15:18
Purge Keys from Redis with Pattern
redis-cli KEYS "prefix:*" | xargs redis-cli DEL
<div class="span4">
<ul class="left-nav">
<li class="btn btn-large vendor-action" id="btn-news" data-action="news">Latest News</li>
<li class="btn btn-primary btn-large vendor-action" id="btn-redeem" data-action="redeem">Redeem Gift Certificate</li>
<li class="btn btn-primary btn-large vendor-action" id="btn-check" data-action="check">Check Balance</li>
<li class="btn btn-primary btn-large vendor-action" id="btn-outstanding" data-action="outstanding">Outstanding Balance</li>
</ul>
</div>
<div class="span8">
<div id="news">