- Select the object(s) to export
- Open the document properties window (Ctrl+Shift+D)
- Select "Resize page to drawing or selection"
- File > Save As Copy...
- Select Optimized SVG as the format if you want to use it on the web
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# Copyright 2011, Jason Graham | |
# | |
# Uses python-markdown to convert a markdown document to the body | |
# of an HTML document to display with cgit (http://hjemli.net/git/cgit/). | |
# | |
# Install: | |
# | |
# 1- Install python-markdown ( sudo apt-get install python-markdown ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//get artist photo | |
function getArtistPhoto($artist, $size) { | |
$artist = urlencode($artist); | |
$xml = "http://ws.audioscrobbler.com/2.0/?method=artist.getinfo&artist={$artist}&api_key=YOUR_KEY"; | |
$xml = @file_get_contents($xml); | |
if(!$xml) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/usr/bin/env python | |
import socket, random, threading, re | |
from time import sleep | |
#Configs | |
network = 'IRC.SERVER.NET' | |
port = 6667 | |
groups = [{'nicks': [], 'password': ''}, {'nicks': [], 'password': ''}] | |
interval = 60 #interval in seconds between each nick change |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import weechat | |
from time import sleep | |
# -*- coding: utf8 -*- | |
weechat.register("masshighlight", "HarHar", "1.0", "GPL3", "fgt", "", "") | |
hook = weechat.hook_command('mhilight', 'Mass Highlight', "", "", "msg", "mh", "") | |
weechat.prnt("", "Mass highlighting lock and loaded") | |
def mh(data, buffer, args): | |
buffer = weechat.current_buffer() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# scrotshooter - screenshot taking and upload tool | |
# requires: curl, scrot | |
mydir="$HOME/Pictures/Screenshots" | |
shotfile=$(echo "screenshot-`date +'%Y-%m-%d_%H-%M-%S'`.png") | |
fileloc="$mydir/$shotfile" | |
while getopts ":d:" flags; do | |
case $flags in |