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
#include <iostream> | |
#include <vector> | |
#include <fstream> | |
#include <string> | |
#include <algorithm> | |
using namespace std; | |
int main() { | |
string line; |
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
for line in open('Kontaktliste.txt', 'r').readlines(): | |
fn, s, p, c, t, e = map(str.strip, line.split(',')) | |
a = f"{s}\\n{p} {c}" | |
v, n = fn.split(' ') | |
vcf=f""" | |
BEGIN:VCARD | |
VERSION:3.0 | |
N;CHARSET=UTF8:{n};{v};;; |
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 zsh | |
# | |
# | |
local PLANTUML_TOOL_FILE | |
local PLANTUML_DOWNLOAD_URL | |
PLANTUML_TOOL_FILE=~/.dotfiles/tools/plantuml.jar | |
PLANTUML_DOWNLOAD_URL=http://sourceforge.net/projects/plantuml/files/plantuml.jar/download | |
_plantuml_download_if_needed(){ | |
if [ ! -f ${PLANTUML_TOOL_FILE} ]; then |
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
function _resolv_ssh_hosts () { | |
local CURRENTFILE | |
eval CURRENTFILE=$1 | |
local selectedhosts=$(grep "Host " ${CURRENTFILE} | grep -v '*' | cut -b 6-) | |
local includes=$(grep "Include " ${CURRENTFILE} | cut -b 9-) | |
for inc in ${(@f)includes}; do | |
selectedhosts+=$(_resolv_ssh_hosts $inc) | |
done | |
echo $selectedhosts | |
} |
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
from module.plugins.internal.Addon import Addon | |
import httplib, urllib | |
class PyLoadiOSPush(Addon): | |
__name__ = "PyLoadiOSPush" | |
__type__ = "hook" | |
__version__ = "1.1" | |
__description__ = "Push for pyLoad for iOS App" | |
__config__ = [("deviceKey", "str", "Device Keys (comma seperated)", ""), |
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
''' This script allows you to copy a .py script to the iOS clipboard and then use Open In... | |
to have that script saved in Pythonista. This requires both the Workflow and Pythonista apps | |
and the workflow at https://workflow.is/workflows/8cdee57f79664205a6a565c9cbdb3d48 ''' | |
import clipboard | |
import console | |
import os | |
import sys | |
def save(filename, text, ext): |
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 photos | |
import clipboard | |
import webbrowser | |
img = photos.pick_image(include_metadata=True) | |
meta=img[1] | |
gps = meta.get('{GPS}') |
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
<? | |
$login = 'yourlogin'; | |
$apikey = 'yourapikey'; | |
$url = $_GET['URL4BITLY']; | |
/* make a URL small */ | |
function make_bitly_url($url,$login,$appkey,$format = 'xml',$version = '2.0.1') | |
{ |
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
<? | |
$url = $_GET['URL2GO']; | |
unset($_GET['URL2GO']); | |
$data = $_GET; | |
$options = array( | |
'http' => array( | |
'header' => "Content-type: application/x-www-form-urlencoded\r\n", | |
'method' => 'POST', | |
'content' => http_build_query($data), |
NewerOlder