Skip to content

Instantly share code, notes, and snippets.

🛏️
PR'ing from bed

Nick Schonning nschonni

🛏️
PR'ing from bed
Block or report user

Report or block nschonni

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@nschonni
nschonni / SassMeister-input.scss
Created Feb 28, 2014
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// 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 Mar 5, 2014
IE8 js uglified with the "ansii_true" buetifier option so that the unicode characters aren't escaped
View ie8-wet-boew2.min.js
/*!
* 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 Mar 6, 2014
Minified IE8 CSS splitting @ rules to separate lines
View ie8-wet-boew.min.css
@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 Apr 21, 2014
Spec file for scss-lint NestSelector lint
View nest_selector_spec.rb
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 Jun 25, 2014
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// 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 Aug 14, 2014
Generated by SassMeister.com.
View SassMeister-input-HTML.html
<!doctype html>
<head>
<title>Intro to Sass</title>
</head>
<body>
<h1 class="awesome">Look Ma</h1>
</body>
@nschonni
nschonni / SassMeister-input.scss
Created Aug 14, 2014
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// 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 Aug 3, 2012
Theory test for urls
View Basic Theories
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)" };
View grid.css
@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 Dec 12, 2015
Categorized demo content for mega menu
View menu-eng.html
<!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>
You can’t perform that action at this time.