Skip to content

Instantly share code, notes, and snippets.

View tregusti's full-sized avatar

Glenn Jorde tregusti

View GitHub Profile
@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 }
@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 / 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 / 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 / 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 / pr.md
Created June 15, 2014 20:28 — forked from piscisaureus/pr.md

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

#!/usr/bin/env bash
# Removes ALL(!!!) tags on the remote origin. Run this when the tags are as they should locally.
# Then push all tags with `git push --tags`
git fetch --tags
git for-each-ref --shell --format="name=%(refname);" 'refs/tags' | \
while read entry
do
@tregusti
tregusti / gyp-error
Created August 4, 2014 12:44
Install error for osx-tag module on node 0.11.13
> osx-tag@0.1.0 install /Users/glenn/code/abcdefgh/node_modules/osx-tag
> node-gyp rebuild
CXX(target) Release/obj.target/osx_tag/osx_tag.o
../osx_tag.mm:19:18: error: unknown type name 'uv_work_t'
void workGetTags(uv_work_t* req)
^
../osx_tag.mm:39:18: error: unknown type name 'uv_work_t'
void workSetTags(uv_work_t* req)
^
@tregusti
tregusti / polymer-polytechnics.md
Last active October 28, 2015 09:48
Malmö Polymer Polytechnics
@tregusti
tregusti / pr.md
Created July 2, 2015 09:00 — forked from piscisaureus/pr.md

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	url = git@github.com:joyent/node.git
	fetch = +refs/heads/*:refs/remotes/origin/*

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: