Skip to content

Instantly share code, notes, and snippets.

@z3bbster
z3bbster / testDynamicCSSClass.html
Created April 27, 2017 12:36 — forked from shadybones/testDynamicCSSClass.html
Test a snippet of JS for dynamically creating CSS classes using JS
<html>
<head>
<style type="text/css">
.ccc{ background-color: blue; }
</style>
</head>
<body>
<script type="text/javascript">
function createClass(name,rules){
#!/usr/bin/env node
var program = require('commander');
var request = require('request');
var chalk = require('chalk');
program
.version('0.0.1')
.usage('[options] <keywords>')
.option('-o, --owner [name]', 'Filter by the repositories owner')
<!--
http://www.quotes.uk.com/web-design/meta-tags.php
Last updated: Wednesday, 22nd May 2013
-->
## Technical Formatting Meta Tags
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<meta http-equiv="content-language" content="en">
<meta http-equiv="content-language" content="en-gb">
@z3bbster
z3bbster / hovernav.css
Created July 24, 2016 07:14 — forked from SimonPadbury/hovernav.css
This is a simple supplement for Bootstrap 3 to transform the navbar so that the dropdown menu appears on hover instead of on click. No need to modify the Bootstrap 3 js or css at all – simply add this js and css below to your js and css files that are <head> linked *after* the Bootstrap 3 js and css files. Styles for both .navbar-default and .na…
/*
Navbar "hovernav" dropdown menu - this works only for screen sizes larger than phones.
The Bootstrap CSS is unchanged.
*/
@media (min-width: 768px) {
/* Use this if you wish to hide the caret
.navbar-nav .caret {
display: none;
}
*/
@z3bbster
z3bbster / miniEditor.html
Created July 17, 2016 22:22
Mini html editor
<body oninput='f.srcdoc=t0[v="value"]+"<script>"+t2[v]+"</script><style>"+t1[v]'onload='for(i=3;i--;)f.outerHTML+="<textarea id=t"+i+" rows=9>"'><iframe id=f>
var gulp = require('gulp');
var gutil = require('gulp-util');
var jshint = require('gulp-jshint');
// Command line option:
// --fatal=[warning|error|off]
var fatalLevel = require('yargs').argv.fatal;
var ERROR_LEVELS = ['error', 'warning'];
@z3bbster
z3bbster / _.md
Last active August 29, 2015 14:24 — forked from vitapluvia/_.md
@z3bbster
z3bbster / parseCss.js
Created March 20, 2015 23:47
parseCssMinimal CSS parser
/**
* Minimal CSS parser
* @param {string} content [css style for to be parse into current document]
* @return {cssRules} [description]
*/
function parseCss (content) {
var styleElement = document.createElement('style');
styleElement.textContent = content;
document.implenmentation.createHTMLDocument('')
.body.appendChild(styleElement);