A "Best of the Best Practices" (BOBP) guide to developing in Python.
- "Build tools for others that you want to be built for you." - Kenneth Reitz
- "Simplicity is alway better than functionality." - Pieter Hintjens
// | |
// Regular Expression for URL validation | |
// | |
// Author: Diego Perini | |
// Created: 2010/12/05 | |
// Updated: 2018/09/12 | |
// License: MIT | |
// | |
// Copyright (c) 2010-2018 Diego Perini (http://www.iport.it) | |
// |
#!/bin/bash | |
# WebSocket shell, start & browse to http://<Host>:6655/ | |
# Requires bash 4.x, openssl. | |
# Author: [email protected] (which isn't me, apk) | |
coproc d { nc -l -p 6656 -q 0; } | |
nc -l -p 6655 -q 1 > /dev/null <<-ENDOFPAGE | |
HTTP/1.1 200 OK | |
<html><head><script language="javascript"> | |
var url = location.hostname + ':' + (parseInt(location.port) + 1); |
# Zoresvit (c) 2012 <[email protected]> | |
# Solarized colorscheme for pidgin. This file seats in | |
# ~/.purple/gtkrc-2.0 | |
style "pidgin-solarized" { | |
font_name = "Sans 11" | |
base[NORMAL] = "#002B36" | |
text[NORMAL] = "#839496" | |
# Change the color of hyperlinks. | |
GtkIMHtml::hyperlink-color = "#268BD2" |
#!/bin/bash | |
#!/usr/bin/env vim | |
#! This is a bash script that executes itself as a vimscript to do its work | |
#! vim:ft=vim:ts=2:sts=2:sw=2 | |
: if 0 | |
tmpfile=$(mktemp -t vimcat.XXXXXXXX) | |
exec 9<>"$tmpfile" | |
rm "$tmpfile" |
<?xml version="1.0"?> | |
<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
<fontconfig> | |
<!-- | |
Documented at | |
http://linux.die.net/man/5/fonts-conf | |
To check font mapping run the command at terminal | |
$ fc-match 'helvetica Neue' |
from sqlalchemy import (create_engine, event, | |
Column, Integer, | |
ForeignKey) | |
from sqlalchemy import event | |
from sqlalchemy.orm import sessionmaker, scoped_session | |
from sqlalchemy.orm import relationship | |
from sqlalchemy.ext.declarative import declarative_base, declared_attr | |
from sqlalchemy.exc import DBAPIError | |
import sqlite3 |
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS
REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
#!/bin/bash | |
save=$(bind -p; bind -X) | |
function clean-up { | |
bind -r '\C-i' | |
bind -f /dev/stdin <<< "$save" | |
} | |
trap 'clean-up' RETURN | |
function write-options { |