Skip to content

Instantly share code, notes, and snippets.

View nschonni's full-sized avatar
🛏️
PR'ing from bed

Nick Schonning nschonni

🛏️
PR'ing from bed
View GitHub Profile
@nschonni
nschonni / SassMeister-input.scss
Created February 28, 2014 17:18
Generated by SassMeister.com.
// ----
// libsass (v0.7.0)
// ----
$gray-light: #eee;
$active-blue: #ddd;
$accent-blue: #0F0;
$gray: #ccc;
@mixin btn-overrides {
@nschonni
nschonni / ie8-wet-boew2.min.js
Created March 5, 2014 01:25
IE8 js uglified with the "ansii_true" buetifier option so that the unicode characters aren't escaped
/*!
* Web Experience Toolkit (WET) / Boîte à outils de l'expérience Web (BOEW)
* wet-boew.github.io/wet-boew/License-en.html / wet-boew.github.io/wet-boew/Licence-fr.html
* v4.0.0-rc1-development - 2014-03-04
*
*/
!function(a,b){b.getData=function(b,c){var d,e=b.jquery?b[0]:b,f=e.getAttribute("data-"+c);if(f)try{d=JSON.parse(f)}catch(g){a.error("Bad JSON array in data-"+c+" attribute")}return a.data(e,c,d),d}}(jQuery,wb),function(a){"use strict";a.jqEscape=function(a){return a.replace(/([;&,\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1")},a.normalizeDiacritics=function(a){var b,c,d={"\u24b6":"A","\uff21":"A","\xc0":"A","\xc1":"A","\xc2":"A","\u1ea6":"A","\u1ea4":"A","\u1eaa":"A","\u1ea8":"A","\xc3":"A","\u0100":"A","\u0102":"A","\u1eb0":"A","\u1eae":"A","\u1eb4":"A","\u1eb2":"A","\u0226":"A","\u01e0":"A","\xc4":"A","\u01de":"A","\u1ea2":"A","\xc5":"A","\u01fa":"A","\u01cd":"A","\u0200":"A","\u0202":"A","\u1ea0":"A","\u1eac":"A","\u1eb6":"A","\u1e00":"A","\u0104":"A","\u023a":"A","\u2c6f":"A","\ua732":"AA","\
@nschonni
nschonni / ie8-wet-boew.min.css
Created March 6, 2014 22:24
Minified IE8 CSS splitting @ rules to separate lines
@charset "utf-8";/*!
* Web Experience Toolkit (WET) / Boîte à outils de l'expérience Web (BOEW)
* wet-boew.github.io/wet-boew/License-en.html / wet-boew.github.io/wet-boew/Licence-fr.html
* v4.0.0-rc1-development - 2014-03-06
*
*//*!
* GLYPHICONS Halflings for Twitter Bootstrap by GLYPHICONS.com | Licensed under http://www.apache.org/licenses/LICENSE-2.0
*//*!
* Bootstrap v3.1.1 (http://getbootstrap.com)
@nschonni
nschonni / nest_selector_spec.rb
Created April 21, 2014 05:41
Spec file for scss-lint NestSelector lint
require 'spec_helper'
describe SCSSLint::Linter::NestSelector do
context 'when single root' do
let(:css) { <<-CSS }
p {
}
CSS
it { should_not report_lint }
@nschonni
nschonni / SassMeister-input.scss
Created June 25, 2014 01:59
Generated by SassMeister.com.
// ----
// libsass (v2.0.0)
// ----
// Original
.cal-cnt-fluid.cal-cnt, .cal-cnt-fluid table.cal-cnt {
width: 100%;
}
// Nested
@nschonni
nschonni / SassMeister-input-HTML.html
Created August 14, 2014 04:16
Generated by SassMeister.com.
<!doctype html>
<head>
<title>Intro to Sass</title>
</head>
<body>
<h1 class="awesome">Look Ma</h1>
</body>
@nschonni
nschonni / SassMeister-input.scss
Created August 14, 2014 18:55
Generated by SassMeister.com.
// ----
// libsass (v2.0.0)
// ----
$grid-width: 40px;
$inner-width: 40px;
.foo {
@if $grid-width == $inner-width {
content: "We're equal";
@nschonni
nschonni / Basic Theories
Created August 3, 2012 02:04
Theory test for urls
public static IEnumerable<object[]> ValidHttpUrlsToTest
{
get
{
yield return new object[] { "HTTP, Closing no slash", "http://foo" };
yield return new object[] { "HTTP, Closing slash", "http://foo.com/" };
yield return new object[] { "HTTP, Closing", "http://foo.com/" };
yield return new object[] { "HTTP, no domain no slash", "http://foo" };
yield return new object[] { "HTTP, no domain no slash", "http://foo/" };
yield return new object[] { "HTTP, More than one parens", "http://foo.com/more_(than)_one_(parens)" };
@charset "UTF-8";
[id|="wb-body-sec"] #wb-core .grid-12 .span-1 {
width: 50px;
}
[id|="wb-body-sec"] #wb-core .grid-12 .offset-1 {
margin-left: 80px;
}
[id|="wb-body-sec"] #wb-core .grid-12 .span-2 {
width: 120px;
}
@nschonni
nschonni / menu-eng.html
Last active December 12, 2015 01:48
Categorized demo content for mega menu
<!DOCTYPE html>
<html lang="en">
<!-- Web Experience Toolkit (WET) / Boîte à outils de l'expérience Web (BOEW)
wet-boew.github.com/wet-boew/License-eng.txt / wet-boew.github.com/wet-boew/Licence-fra.txt -->
<!-- DataAjaxFragmentStart -->
<li><section><h3><a href="http://wet-boew.github.com/wet-boew/index-eng.html">WET project</a></h3><div class="mb-sm">
<div class="span-2">
<ul>
<li><a href="https://github.com/wet-boew/wet-boew/">Main project page</a></li>
<li><a href="http://wet-boew.github.com/wet-boew/demos/index-eng.html">Working examples</a></li>