def delta_transform_point(matrix, point):
dx = point['x'] * matrix['a'] + point['y'] * matrix['c'] + 0
dy = point['x'] * matrix['b'] + point['y'] * matrix['d'] + 0
return {'x': dx, 'y': dy}
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
[global_config] | |
window_state = fullscreen | |
borderless = True | |
extra_styling = False | |
title_transmit_fg_color = "#729fcf" | |
title_transmit_bg_color = "#002b36" | |
title_receive_fg_color = "#eeeeec" | |
title_inactive_bg_color = "#002b36" | |
[keybindings] | |
[profiles] |
Visit my blog or connect with me on Twitter
git init
or
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
#!/bin/bash | |
IPT="/sbin/iptables" | |
# Server IP | |
SERVER_IP="$(ip addr show eth0 | grep 'inet ' | cut -f2 | awk '{ print $2}')" | |
# Your DNS servers you use: cat /etc/resolv.conf | |
DNS_SERVER="8.8.4.4 8.8.8.8" | |
# Allow connections to this package servers |
First you need to download it from here. Then you must extract it.
tar zxvf 349.tgz
cd ssh
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 python3 | |
# -*- coding: utf-8 -*- | |
import requests | |
from lxml import html | |
def load_doc(): | |
doc= requests.get('http://www.spiegel.de/kultur/literatur/spiegel-bestseller-taschenbuecher-a-1025518.html') |