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;
}
*/
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
/**
* Invoke a CSS animation on `this` angular.element instance.
* @param className classname of animation to invoke on `this` element
* @param delay delay before animation is invoked
* @param done callback
*/
angular.element.prototype.doAnim = function(className, delay, done, doneDelay) {
done = (typeof delay === 'function') ? delay : done;
$timeout(function() {
this.removeClass(className);

AngularJS Directive Attribute Binding Explanation

When using directives, you often need to pass parameters to the directive. This can be done in several ways. The first 3 can be used whether scope is true or false. This is still a WIP, so validate for yourself.

  1. Raw Attribute Strings

    <div my-directive="some string" another-param="another string"></div>
@z3bbster
z3bbster / spread.sass
Last active August 29, 2015 14:13 — forked from averyvery/spread.sass
// strip-units required by spread mixin
// http://stackoverflow.com/questions/12328259/how-do-you-strip-the-unit-from-any-number-in-sass
@function strip-units($number)
@return $number / ($number * 0 + 1)
// pow and sqrt required by ease function
// adapted from https://github.com/at-import/Sassy-math/blob/master/sass/math.scss
@function pow($base, $exponent)
$value: $base
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Jed Schmidt <http://jed.is>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE