Skip to content

Instantly share code, notes, and snippets.

@examinedliving
examinedliving / flat-ui-sp.less
Created February 14, 2018 17:44
FlatUI Colors palette from FlatuiColors.com - Spanish Palette
@AlamedaOchre:rgb(204, 142, 53);
@CPurple:rgb(112, 111, 211);
@CelestialGreen:rgb(51, 217, 178);
@ChileanFire:rgb(205, 97, 51);
@CrocodileTooth:rgb(209, 204, 192);
@Desert:rgb(204, 174, 98);
@DevilBlue:rgb(34, 112, 147);
@EyeOfNewt:rgb(179, 57, 57);
@FluorescentRed:rgb(255, 82, 82);
@GreyPorcelain:rgb(132, 129, 122);
@examinedliving
examinedliving / flat-ui-nl.less
Created February 14, 2018 17:39
Dutch Flat Ui from FlatUIColors.com as Less Variables
@AndroidGreen:rgb(163, 203, 56);
@BaraRed:rgb(237, 76, 103);
@BlueMartina:rgb(18, 203, 196);
@CircumorbitalRing:rgb(87, 88, 187);
@Energos:rgb(196, 229, 56);
@ForgottenPurple:rgb(153, 128, 250);
@Hollyhock:rgb(131, 52, 113);
@LavenderRose:rgb(253, 167, 223);
@LavenderTea:rgb(217, 128, 250);
@LeaguesUndertheSea:rgb(27, 20, 100);
@examinedliving
examinedliving / Pretty-colors.md
Created February 8, 2018 00:03
Earnestly won colors parsed out of a css ruleset for some reason
rgb(217, 92, 92)
rgb(239, 188, 114)
rgb(230, 187, 72)
rgb(221, 201, 40)
rgb(180, 217, 92)
rgb(102, 218, 129)
rgb(217, 92, 92)
rgb(33, 186, 69)
rgb(242, 192, 55)

rgb(219, 40, 40)

@examinedliving
examinedliving / example.js
Created January 5, 2018 18:42 — forked from colingourlay/example.js
Lodash / Underscore sort object keys. Like _.sortBy(), but on keys instead of values, returning an object, not an array. Defaults to alphanumeric sort.
var obj = {b: 3, c: 2, a: 1};
_.sortKeysBy(obj);
// {a: 1, b: 3, c: 2}
_.sortKeysBy(obj, function (value, key) {
return value;
});
// {a: 1, c: 2, b: 3}
@examinedliving
examinedliving / respond.less
Created December 21, 2017 19:02
Shorthand for media queries. Use inside selectors
//==Respond
//
//## Define any rules at appropriate size. Used inside selector
.respond(@_size;@_rules){
@media @_size {
@_rules();
}
}
@examinedliving
examinedliving / media.less
Created December 21, 2017 19:01
Media variables - I use this with Bootstrap and my respond.less mixin
// media.less
// #== Media Query Custom and overrides
// standins for bootstrap media query variables
// Extra Small / phone
@screen-xs-min: 300px;
// Small screen / tablet
@screen-sm-min: 768px;
// Medium screen / desktop
@examinedliving
examinedliving / sync-gists.rb
Created December 9, 2017 00:39 — forked from mikehale/sync-gists.rb
Sync all your gists to local disk
#!/usr/bin/env ruby
require 'excon'
require 'json'
module EnumerableEnumerator
def self.included(base)
base.extend ClassMethods
@examinedliving
examinedliving / 00globals.jsx
Last active December 2, 2017 19:28 — forked from hilukasz/00globals.jsx
The file to customize which allows for customization of ESTK. This is a customized verion made by someone, who I do not have written down anywhere.
/**************************************************************************
*
* @@@BUILDINFO@@@ 00globals-2.jsx 3.5.0.43 20-November-2009
* ADOBE SYSTEMS INCORPORATED
* Copyright 2010 Adobe Systems Incorporated
* All Rights Reserved.
*
* NOTICE: Adobe permits you to use, modify, and distribute this file in
* accordance with the terms of the Adobe license agreement accompanying it.
* If you have received this file from a source other than Adobe, then your
@examinedliving
examinedliving / ten-pin-bowling.js
Created June 10, 2017 13:46
Work in progress. Codewars kata for bowling pins.
//https://www.codewars.com/kata/5531abe4855bcc8d1f00004c/train/javascript
function scoreAt(frame, total, wasStrike, wasSpare) {
var strike = frame[0] === "X";
var spare = !strike && frame[1] === "/";
if (wasSpare) {
if (spare) {
return [total + (10 + frame[0]) + frame[0], false, true];
} else if (strike) {
return [total + (10 + 10 + 10), true, false];