Skip to content

Instantly share code, notes, and snippets.

View bjarkirafn's full-sized avatar

Bjarki Rafn Gudmundsson bjarkirafn

View GitHub Profile
@bjarkirafn
bjarkirafn / HuddledTricks.psm1
Created July 4, 2019 14:53 — forked from Jaykul/HuddledTricks.psm1
Stupid PowerShell Tricks
#Requires -version 2.0
## Stupid PowerShell Tricks
###################################################################################################
add-type @"
using System;
using System.Runtime.InteropServices;
public class Tricks {
[DllImport("user32.dll")]
private static extern bool ShowWindowAsync(IntPtr hWnd, int nCmdShow);
@bjarkirafn
bjarkirafn / pycurses.py
Created April 9, 2019 19:08 — forked from claymcleod/pycurses.py
Python curses example
import sys,os
import curses
def draw_menu(stdscr):
k = 0
cursor_x = 0
cursor_y = 0
# Clear and refresh the screen for a blank canvas
stdscr.clear()