Skip to content

Instantly share code, notes, and snippets.

@KittyGiraudel
KittyGiraudel / SassMeister-input.scss
Last active August 29, 2015 13:57
Generated by SassMeister.com.
// ----
// Sass (v3.4.7)
// Compass (v1.0.1)
// ----
/// Deep set function to set a value in nested maps
/// @param {Map} $map - map
/// @param {List} $keys - list of keys to reach
/// @param {Literal} $value - value to assign
/// @return {Map}
@chriseppstein
chriseppstein / generalized_memoizer.scss
Last active August 29, 2015 13:57
Memoization in Sass
// This approach lets you generically memoize any function by changing the call site:
@function something-slow-to-compute($arg-1, $arg-2) {
@return ... slow calculation ... ;
}
$cached-values: ();
@function cached($function-name, $args...) {
$cached-value: map-get($cached-values, ($function-name, $args));
@if $cached-value {
@KittyGiraudel
KittyGiraudel / SassMeister-input.scss
Created April 2, 2014 09:59
Generated by SassMeister.com.
// ----
// Sass (v3.3.4)
// Compass (v1.0.0.alpha.18)
// ----
// [Helper]
// Cast a stringified number to an actual number
// ---
// @param [string] $input: stringified number to cast
// ---

http://filippo.io/Heartbleed/ is a great service to the community.

I wouldn’t recommend testing hosts againt an online tool. All you do is create a log for a security savvy person with vulnerable hosts. While not quite the same, this is similar to uploading private keys or passwords to a service to check if they are secure.

Luckily it is easy to run the software locally, as the author was so kind to provide the source. I don’t read go very well, but a cursory glance suggests that the software does what it says on the tin, so we don’t worry about it phoning home.

This is the first time I’m building a go project, so I have to install go first. brew install go is easily done. You can get binary distributions for your OS from the go homepage: https://code.google.com/p/go/downloads/list

@KittyGiraudel
KittyGiraudel / SassMeister-input.scss
Created April 14, 2014 07:51
Generated by SassMeister.com.
// ----
// Sass (v3.3.4)
// Compass (v1.0.0.alpha.18)
// ----
// Overengineering mixin output
// By caching values and on-the-fly generating placeholders
// Clever and crazy. I like it so far.
// ---
@KittyGiraudel
KittyGiraudel / SassMeister-input.scss
Last active August 29, 2015 14:11
Generated by SassMeister.com.
// ----
// Sass (v3.4.9)
// Compass (v1.0.1)
// ----
/// Constant maps
/// Should not be dynamically updated.
/// @access private
/// @prop {List} TIME - List of `<time>` units
/// @prop {List} FREQUENCY - List of `<frequency>` units
anonymous
anonymous / index.html
Created December 19, 2014 18:01
French Line // source http://jsbin.com/pigakarota
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>French Line</title>
<style id="jsbin-css">
body {
display: flex;
flex-direction: column;
flex-wrap: wrap;
@MoOx
MoOx / index.md
Last active August 29, 2015 14:17
OS X IRC apps
//** Vertical Rhythm **//
// By Chris Eppstein, with adjustments by Eric Meyer
// The IE font ratio is a fact of life. Deal with it.
!ie_font_ratio = 16px / 100%
// The base line height is the basic unit of line hightness.
!base_line_height ||= 18px
@jacine
jacine / template.php
Created May 19, 2011 03:19
HTML5 Drupal 7 Tweaks
<?php
/**
* Implements hook_html_head_alter().
* - Simplify the meta charset element.
*/
function THEMENAME_html_head_alter(&$head_elements) {
$head_elements['system_meta_content_type']['#attributes'] = array(
'charset' => 'utf-8',
);