Skip to content

Instantly share code, notes, and snippets.

View jmd's full-sized avatar

Jean-Marc Dressler jmd

  • Objectik
  • France
View GitHub Profile
@zrzka
zrzka / security.py
Last active June 2, 2021 13:34
iOS Keychain for Pythonista (WIP)
#!python3
from ctypes import c_int, c_void_p, POINTER, byref, c_ulong
from objc_util import (
load_framework, c, ns, ObjCInstance, nsdata_to_bytes, NSString, NSData, NSNumber,
ObjCClass, NSArray, NSDictionary
)
from enum import Enum, IntFlag
from typing import Union
import datetime
@charlieman
charlieman / WindowStateSaveHelper.cs
Created May 10, 2014 21:24
Save and restore a Window's Position, Size and State
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
namespace WindowStateSave
{
/// <summary>
/// Helper class that saves the window's state to a User Settings string