Skip to content

Instantly share code, notes, and snippets.

Ole Bjørn Michelsen omichelsen

Block or report user

Report or block omichelsen

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
GregPK / Regex-Crossword-helper.js
Last active Dec 20, 2015
A helper for It helps identify which patterns are not met in a non-boolean fashion. It's a spoiler, so use sparringly. Also, please note that not all situations are accounted for (empty spaces, greedy vs non-greedy matching).
View Regex-Crossword-helper.js
window.CrossCrutch = {}
window.CrossCrutch.check = function() {
var messages = [];
$(".puzzle table tbody tr").each(function (i,e) {
var $row = $(e);
var $cols = $row.find("th,td");
var $rowHeader = $cols.filter("th");
var $other = $cols.filter("td");
spion / screenshot.js
Last active Oct 24, 2018
Take website screenshots of any resolution using phantomjs
View screenshot.js
// Usage: phantomjs screenshot.js 1920x1080
// outputs to
// dont add http to the URL
// If the page didnt render in time add a delay argument
// e.g. 3000 for 3 seconds
var page = require('webpage').create();
var args = require('system').args;
var wh = args[1].split('x');
You can’t perform that action at this time.