Skip to content

Instantly share code, notes, and snippets.

View boogheta's full-sized avatar

Benjamin Ooghe-Tabanou boogheta

View GitHub Profile
@ericclemmons
ericclemmons / example.md
Last active September 20, 2024 12:46
HTML5 <details> in GitHub

Using <details> in GitHub

Suppose you're opening an issue and there's a lot noisey logs that may be useful.

Rather than wrecking readability, wrap it in a <details> tag!

<details>
 Summary Goes Here

Interactive Machine Learning

Taught by Brad Knox at the MIT Media Lab in 2014. Course website. Lecture and visiting speaker notes.

@steadystatic
steadystatic / amazon-only-imgs.js
Last active April 14, 2016 16:28
Quick Little Amazon Picker (hides everything but product images)
//Paste into your URL bar in Chrome, remove this comment line (make sure you keep the "javascript:" bit, it might get stripped):
javascript: var imgList = document.querySelectorAll('.s-access-image'); document.querySelector('body').innerHTML = ''; for (i=0; i < imgList.length; i++) {document.querySelector('body').innerHTML += imgList[i].outerHTML.replace('src', 'onclick="this.parentNode.removeChild(this)" src');}
@cobyism
cobyism / gh-pages-deploy.md
Last active July 1, 2025 06:35
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](http://yeoman.io).

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).

@piscisaureus
piscisaureus / pr.md
Created August 13, 2012 16:12
Checkout github pull requests locally

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 = [email protected]: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: