Skip to content

Instantly share code, notes, and snippets.

View funkatron's full-sized avatar

Ed Finkler funkatron

View GitHub Profile
#!/bin/bash
usage()
{
cat << EOF
usage: $0 options
This script set ownership for all table, sequence and views for a given database
Credit: Based on http://stackoverflow.com/a/2686185/305019 by Alex Soto
body {
font-family: "Pet Me", monospace;
font-size: .9em;
}
.color_block {
float:left; width:100px; height:100px; padding:10px;
}
<!DOCTYPE html>
<html>
<head>
<title>hi</title>
<style type="text/css" media="screen">
#table {
height:300px;
width:200px;
overflow: auto;
border:1px solid #999;
pcregrep --color='auto' -n "[\x80-\xFF]" filename.html
function hrefs2links(text) {
// Uses Grubers regex with some extra camptures
var urire = /\b(?:[a-z][\w\-]+:(?:\/{1,3}|[a-z0-9%])|(www\d{0,3}[.]))((?:[^\s()<>]+|\([^\s()<>]+\))+(?:\([^\s()<>]+\)|[^`!()\[\]{};:'".,<>?«»“”‘’\s]))/g;
// replace URIs with HTML anchors
return text.replace(urire, '<a href="$&">$1$2</a>');
}
var text = hrefs2links("Check out http://example.com");