Skip to content

Instantly share code, notes, and snippets.

View klebba's full-sized avatar

Casey klebba

View GitHub Profile
@eyecatchup
eyecatchup / git-commit-log-stats.md
Last active April 11, 2025 08:16
Some commands to get git commit log statistics for a repository on the command line.

git commit stats

Commands to get commit statistics for a Git repository from the command line -
using git log, git shortlog and friends.




@jonathantneal
jonathantneal / README.js
Last active February 22, 2018 03:59
Document `interactive` and `complete` promises
function onstate(readyStates, resolve) {
function handler() {
if (readyStates.includes(document.readyState)) {
document.removeEventListener('readystatechange', handler);
resolve();
}
}
document.addEventListener('readystatechange', handler);
@p3t3r67x0
p3t3r67x0 / pseudo_elements.md
Last active February 25, 2025 22:27
A CSS pseudo-element is used to style specified parts of an element. In some cases you can style native HTML controls with vendor specific pseudo-elements. Here you will find an list of cross browser specific pseudo-element selectors.

Styling native elements

Native HTML controls are a challenge to style. You can style any element in the web platform that uses Shadow DOM with a pseudo element ::pseudo-element or the /deep/ path selector.

video::webkit-media-controls-timeline {
  background-color: lime;
}

video /deep/ input[type=range] {
@benhoIIand
benhoIIand / CSSLint - All Settings.js
Last active December 11, 2015 10:49
A list of all CSSLint settings with descriptions
{
// Don't use adjoining classes (.foo.bar)
"adjoining-classes": "warning",
// Don't use width or height when using padding or border.
"box-model": true,
// box-sizing doesn't work in IE6 and IE7.
"box-sizing": "warning",
@font-face {
font-family: 'EntypoRegular';
src: url('font/entypo.eot');
src: url('font/entypo.eot?#iefix') format('embedded-opentype'),
url('font/entypo.woff') format('woff'),
url('font/entypo.ttf') format('truetype'),
url('font/entypo.svg#EntypoRegular') format('svg');
font-weight: normal;
font-style: normal;
}
@furf
furf / 0-angular-tree.js
Last active July 21, 2016 06:36
A minimal recursive tree directive for Angular.js. Demo: http://jsfiddle.net/furf/EJGHX/
var app = angular.module('app', []);
app.directive('yaTree', function () {
return {
restrict: 'A',
transclude: 'element',
priority: 1000,
terminal: true,
compile: function (tElement, tAttrs, transclude) {
@connor
connor / .jshintrc.js
Created January 11, 2012 22:20
jshintrc example
// NOTE: I added the .js extension to this gist so it would have syntax highlighting. This file should have NO file extension
{
// Settings
"passfail" : false, // Stop on first error.
"maxerr" : 100, // Maximum error before stopping.
// Predefined globals whom JSHint will ignore.
"browser" : true, // Standard browser globals e.g. `window`, `document`.