Skip to content

Instantly share code, notes, and snippets.

@roine
roine / bumpversion.sh
Created June 6, 2016 14:48 — forked from pete-otaqui/bumpversion.sh
Bump a software project's VERSION, add the CHANGES, and tag with GIT
#!/bin/bash
# works with a file called VERSION in the current directory,
# the contents of which should be a semantic version number
# such as "1.2.3"
# this script will display the current version, automatically
# suggest a "minor" version update, and ask for input to use
# the suggestion, or a newly entered value.
@roine
roine / README.md
Last active August 29, 2015 14:27 — forked from JoelBesada/README.md
Backtick - Angular: count watchers

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.
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
</body>
</html>
@roine
roine / dabblet.css
Created April 19, 2013 06:20 — forked from LeaVerou/dabblet.css
Scrolling shadows by @kizmarh and @LeaVerou
/**
* Scrolling shadows by @kizmarh and @leaverou
* Only works in browsers supporting background-attachment: local; & CSS gradients
* Degrades gracefully
*/
html {
background: white;
font: 120% sans-serif;
}
@roine
roine / dabblet.css
Created March 22, 2013 03:21 — forked from LeaVerou/dabblet.css
MathML with CSS fallback
/**
* MathML with CSS fallback
*/
math {
font-family: 'Cambria Math', Cambria, MathJax_Main,
STIXGeneral, DejaVu Serif, DejaVu Sans,
Times, Lucida Sans Unicode, OpenSymbol,
Standard Symbols L, serif;
}
@roine
roine / dabblet.css
Created March 18, 2013 01:31 — forked from LeaVerou/dabblet.css
iOS 6 style switch checkboxes
/**
* iOS 6 style switch checkboxes
* by Lea Verou http://lea.verou.me
*/
:root input[type="checkbox"] { /* :root here acting as a filter for older browsers */
position: absolute;
opacity: 0;
}