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 / 1. Setting up the build.md
Last active December 22, 2015 08:19
Instructions for building WET 4.0 while the build is still in flux

Setup instructions before first build

  1. Install NodeJS
  2. Open command prompt into the project's root directory
  3. Run script/setup (or script\setup in the Windows commandline) to install the global depenencies

Running the build:

  1. Run grunt

You can find a full list of tasks and their descriptions by running grunt --help

/*
* Web Experience Toolkit (WET) / Boîte à outils de l'expérience Web (BOEW)
* wet-boew.github.io/wet-boew/License-eng.html / wet-boew.github.io/wet-boew/Licence-fra.html
*/
/*
* Session Timeout plugin
*/
/*global jQuery: false, wet_boew_sessiontimeout:false, alert:false, confirm:false */
(function ($) {
"use strict";
@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 / report.html
Created April 13, 2017 19:14
Ran the translate pytest --cov=. --html=report.html -r EfsxX
This file has been truncated, but you can view the full file.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Test Report</title>
<link href="assets/style.css" rel="stylesheet" type="text/css"/></head>
<body onLoad="init()">
<script>/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */