Skip to content

Instantly share code, notes, and snippets.

targi

Block or report user

Report or block targi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@targi
targi / gistcheck.py
Created Mar 15, 2017 — forked from spencerogden/gistcheck.py
Script for use with Pythonista to allow Github Gists for script storage and retrieval. Copy script in full into a new script in Pythonista called "gitcheck". Run the script and it will create 4 scripts starting with "Gist". These can be added to the action menu. See comments for more details.
View gistcheck.py
# Source: https://gist.github.com/4702275
#
# All-purpose gist tool for Pythonista.
#
# When run directly, this script sets up four other scripts that call various
# functions within this file. Each of these sub-scripts are meant for use as
# action menu items. They are:
#
# Set Gist ID.py - Set the gist id that the current file should be
# associated with.
@targi
targi / snake.py
Last active Mar 5, 2017
snake.py – a quick-and-dirty Pythonista 3 snake game
View snake.py
#
# Snake
# a quick and dirty Pythonista 3 game
#
# Oleg Frantsuzov, 2017
#
# consider this code public domain
from scene import *
from random import randrange
View slack2html.php
<?
/////////////////////
// slack2html
// by @levelsio
/////////////////////
//
/////////////////////
// WHAT DOES THIS DO?
/////////////////////
//
@targi
targi / pointer
Created Mar 16, 2014
Пример работы с указателем на что угодно (Turbo Pascal).
View pointer
program PointerTest;
type
IntPtr = ^integer;
var
src, dst : integer;
intp : IntPtr;
p : Pointer;
begin
src := 42;
dst := 0;
@targi
targi / TransmissionClient
Created Mar 15, 2014
An Open In handler for Pythonista that uploads the file which name was passed to the configured server via SFTP, then runs the configured command on that server (e.g., transmission add).
View TransmissionClient
import console
import paramiko
import keychain
import traceback
from os.path import basename
# TransmissionClient
#
# An Open In handler that uploads the file which name was passed
You can’t perform that action at this time.