Skip to content

Instantly share code, notes, and snippets.

@mcky
mcky / style.css
Created April 8, 2014 16:51
Centering
body {
background: #900;
}
div {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
<h1>RWD List to Table</h1>
<table class="rwd-table">
<tr>
<th>Movie Title</th>
<th>Genre</th>
<th>Year</th>
<th>Gross</th>
</tr>
<tr>
<td data-th="Movie Title">Star Wars</td>
event = {
touches: [{
X: 100,
Y: 200
}, {
X: 300,
Y: 500
}]
};
*** Installing Pow 0.4.1...
*** Installing local configuration files...
*** Starting the Pow server...
*** Performing self-test...
*** Installed
For troubleshooting instructions, please see the Pow wiki:
https://github.com/37signals/pow/wiki/Troubleshooting
To uninstall Pow, `curl get.pow.cx/uninstall.sh | sh`
@mcky
mcky / README.md
Created February 24, 2014 22:30 — forked from JoelBesada/README.md

This is an example command for Backtick. A Backtick command consists of some executable JavaScript and a bit of metadata in JSON.

Here are the required steps to create a command:

  1. Create a new Gist with a command.js and command.json file, or simply fork this one.

  2. Write your JavaScript in command.js. This will be injected into and executed on the page the user is currently on when they run it.

  3. Add some metadata to the command.json file:

  • name: The name of the command.
@mcky
mcky / index.html
Created December 11, 2013 03:53
Scroll progress
<div class="bar"></div>​
@mcky
mcky / New Project
Last active December 23, 2015 02:48
Creates a new github project
newproject() {
# $1 = Directory name
# $2 = Repo Name
# $3 = Readme contents
# $4 = Commit message
if [ -z "$*" ]; then
echo 'No arguments'
else
mkdir /Projects/$1;