Skip to content

Instantly share code, notes, and snippets.

View tiesont's full-sized avatar

Tieson Trowbridge tiesont

View GitHub Profile
/*! @preserve
* bootbox.js
* version: 5.5.0
* author: Nick Payne <nick@kurai.co.uk>
* license: MIT
* http://bootboxjs.com/
*/
(function (root, factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
@tiesont
tiesont / bootbox-events-pr.js
Last active November 21, 2019 02:03
WIP for updating bootbox to add function hooks for Bootstrap's modal events
/*! @preserve
* bootbox.js
* version: 5.3.4
* author: Nick Payne <nick@kurai.co.uk>
* license: MIT
* http://bootboxjs.com/
*/
(function (root, factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
@tiesont
tiesont / bootstrap-datetimepicker.js
Created November 8, 2018 04:49
Quick "fix" for datetimepicker plugin - makes disabledTimeIntervals function use the inclusive version of moment's isBetween function
/*! version : 4.17.47
=========================================================
bootstrap-datetimejs
https://github.com/Eonasdan/bootstrap-datetimepicker
Copyright (c) 2015 Jonathan Peterson
=========================================================
*/
/*
The MIT License (MIT)
// Adjust the paths below depending on where this file is with respect to your Bootstrap Sass files
@import "../bootstrap/_functions.scss";
@import '../bootstrap/_variables.scss';
//
// Switches for Bootstrap 4.
// https://www.abeautifulsite.net/bootstrap-4-switches
//
// - Fully customizable with Sass variables
// - No JavaScript required
@tiesont
tiesont / bootstrap-switch.scss
Created October 22, 2018 02:29
Bootstrap 4 Switches - no JavaScript required. See https://www.abeautifulsite.net/bootstrap-4-switches
// Adjust the paths below depending on where this file is with respect to your Bootstrap Sass files
@import "../bootstrap/_functions.scss";
@import '../bootstrap/_variables.scss';
//
// Switches for Bootstrap 4.
// https://www.abeautifulsite.net/bootstrap-4-switches
//
// - Fully customizable with Sass variables
// - No JavaScript required
@tiesont
tiesont / documentation.xsl
Created August 24, 2018 03:09
XSL for transforming the output of .NET's XML documentation into HTML. From https://www.codeproject.com/Articles/9698/Simple-XSLT-stylesheet-for-Visual-Studio-NET-XML-d
<?xml version="1.0" encoding="utf-8"?>
<!-- ================================================================================ -->
<!-- Amend, distribute, spindle and mutilate as desired, but don't remove this header -->
<!-- A simple XML Documentation to basic HTML transformation stylesheet -->
<!-- (c)2005 by Emma Burrows -->
<!-- ================================================================================ -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- DOCUMENT TEMPLATE -->
<!-- Format the whole document as a valid HTML document -->
@tiesont
tiesont / bootstrap-switch.scss
Last active August 12, 2018 23:21
Bootstrap Switch (https://www.abeautifulsite.net/bootstrap-4-switches) with calc() replaced by calculated values - using 14px as base font size. This allows the styles to work with IE9+ (which has a rendering bug related to flex and calc()).
//
// Switches for Bootstrap 4.
// https://www.abeautifulsite.net/bootstrap-4-switches
//
// - Fully customizable with Sass variables
// - No JavaScript required
// - Fully accessible
//
// IMPORTANT: These Sass variables are defined in Bootstrap's variables.scss. You should import that file first, then remove these.
@tiesont
tiesont / VisualStudioSolutionSLNstyler.xml
Created July 3, 2018 22:48 — forked from CADbloke/VisualStudioSolutionSLNstyler.xml
Notepad++ Syntax Highlighting for visual Studio .sln Solution files. Exported from NP++ 6.3.2To use, save this gist as an XML file, NP++ Language menu ==> Define your Language ==> click Import in the window that just popped up...then change the colo(u)rs in the pop-up window dialogues to something that offends you less.
<NotepadPlus>
<UserLang name="SLN" ext="sln" udlVersion="2.1">
<Settings>
<Global caseIgnored="no" allowFoldOfComments="no" foldCompact="no" forcePureLC="0" decimalSeparator="0" />
<Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments">03 04 00# 01 02</Keywords>
<Keywords name="Numbers, prefix1"></Keywords>
<Keywords name="Numbers, prefix2"></Keywords>
@tiesont
tiesont / index-with-amd.html
Created May 30, 2018 01:25 — forked from bernos/index-with-amd.html
A javascript module template which supports an AMD loader (like requirejs) when available, but fails over to adding the module to a specified root context when an AMD loader is not available.
<!doctype html>
<html lang="en">
<head>
<title></title>
</head>
<body>
<script data-main="main-with-amd" src="requirejs-1.0.4.min.js"></script>
</body>
</html>
@tiesont
tiesont / nav-wizard.bootstrap.css
Last active February 20, 2018 14:32 — forked from bjcull/nav-wizard.bootstrap.css
Wizard style navigation tabs for bootstrap, updated for Bootstrap 4. Demo: https://jsfiddle.net/dss1mjqf/
.nav-pills.nav-wizard > li
{
position: relative;
overflow: visible;
border-right: 15px solid transparent;
border-left: 15px solid transparent;
}
.nav-pills.nav-wizard > li + li
{