Skip to content

Instantly share code, notes, and snippets.

View tregusti's full-sized avatar

Glenn Jorde tregusti

View GitHub Profile
@tregusti
tregusti / except.js
Created August 22, 2013 15:07
Allow easy modification to key/value objects.
function With( key, value ) {
this[key] = value;
return this;
};
function Except( key ) {
delete this[key];
return this;
};
exports.augment = function() {
@tregusti
tregusti / qv-testCase.snippet
Last active December 15, 2015 10:29
Snippets for qv.testCase testing
<CodeSnippet Format="1.1.0" xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<Header>
<Title>qv.testCase</Title>
<Author>Glenn Jorde</Author>
<Shortcut>qvt</Shortcut>
<Description>Snippet for a qv.testCase</Description>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
</Header>
@tregusti
tregusti / dots.html
Created February 11, 2013 23:27
A CSS animation solution of the dots animating when installing MSVS2012.
<style>
body, html {
height: 100%;
margin: 0;
padding: 0;
background: #333;
}
#container {
position: relative;
margin: 100px auto;
@tregusti
tregusti / webkit-pseudo-elements.md
Created November 10, 2012 22:55 — forked from leostratus/webkit-pseudo-elements.md
Webkit Pseudo-Element Selectors (Shadow DOM Elements)

An ongoing project to catalogue all of these sneaky, hidden, bleeding edge selectors as I prepare my JSConf EU 2012 talk.

Everything is broken up by tag, but within each the selectors aren't particularly ordered.

I have not tested/verified all of these. Have I missed some or got it wrong? Let me know. - A

A friendly reminder that you may need to set this property on your target/selected element to get the styling results you want:

-webkit-appearance:none;

@tregusti
tregusti / userContent.css
Created September 14, 2012 19:25
Custom stylesheet for browsers to hide and style stuff.
/**
Usage:
Google Chrome: Add to ~/Library/Application Support/Google/Chrome/Default/User Stylesheets/Custom.css
**/
/* Remove facebook friend finder, game tips and other crap to the right */
#facebook #pagelet_ego_pane_w { display: none; }
#facebook #pagelet_ego_pane { display: none }