Skip to content

Instantly share code, notes, and snippets.

View sdvg's full-sized avatar
🐦

Stefan Dietz sdvg

🐦
View GitHub Profile
@sdvg
sdvg / client.py
Created February 7, 2012 18:59
uhuc uptime
#!/usr/bin/env python
# TCP client
"""
This file is part of utime_serve.
utime_serve is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
span.lh
{
vertical-align: sub;
line-height:0
header{
height: 150px;
width: 100%;
background:#575757;
border-radius: 15px;
-moz-border-radius: 15px;
box-shadow: 0 0 5px 2px #181818;
-moz-box-shadow: 0 0 2px 1px #181818;
-webkit-transform: rotate(-1deg);
-moz-transform: rotate(-1deg);
-o-transform: rotate(-1deg);
@sdvg
sdvg / Default (OSX).sublime-keymap
Last active October 1, 2015 15:08
sublime settings
[
{ "keys": ["cmd+v"], "command": "paste_and_indent" },
{ "keys": ["cmd+tab"], "command": "next_view" },
{ "keys": ["cmd+shift+tab"], "command": "prev_view" },
{ "keys": ["super+#"], "command": "toggle_comment", "args": { "block": false } }
]
@sdvg
sdvg / dabblet.html
Created March 24, 2012 09:54
Untitled
<div></div>
# ----------------------------------------------------------------------
# Better website experience for IE users
# ----------------------------------------------------------------------
# Force the latest IE version, in various cases when it may fall back to IE7 mode
# github.com/rails/rails/commit/123eb25#commitcomment-118920
# Use ChromeFrame if it's installed for a better experience for the poor IE folk
<IfModule mod_headers.c>
Header set X-UA-Compatible "IE=Edge,chrome=1"
@sdvg
sdvg / gist:2345533
Created April 9, 2012 18:58
jquery extension structure
(function($){
$.fn.extend({
extensionName: function(options) {
//Settings list and the default values
var defaults = {
};
var options = $.extend(defaults, options);
@sdvg
sdvg / gist:2365645
Created April 12, 2012 08:39
twitter test-mentions generator
var $in = $('.twitter-anywhere-tweet-box-editor');
var $btn = $('.tweet-button');
var inter = setInterval(function() {
$in.focus();
$in.val(new Date().getTime()+Math.floor(Math.random()*22)+' @MYTWITTERACCOUNT .... mentionTEST');
$btn.removeClass('disabled');
$btn.click();
}, 1000);
@sdvg
sdvg / dabblet.html
Created June 29, 2012 09:21
Untitled
<div>
<table>
<tr>
<td>xyz:<td>
<td>
431121251AB/431121251K/431121251L/431121251R/431121251T/443121253A/443121253B/443121251P/443121251J/443121251D/443121251D/443121251N/443121251EP/
<td>
</tr>
</table>