Skip to content

Instantly share code, notes, and snippets.

View nneonneo's full-sized avatar
🔥
hacking at maximum warp

Robert Xiao nneonneo

🔥
hacking at maximum warp
View GitHub Profile
from __future__ import annotations
from collections import defaultdict
from os import path
from typing import DefaultDict, List, NamedTuple, Optional, Sequence, Set, Tuple, cast
import requests
import re
from copy import copy
from pyrsistent import m, s, v, PMap, PSet, PVector
@samjoch
samjoch / AVCaptureDevice-playground.swift
Created November 4, 2016 12:00
Playground to capture ios video input stream into a window
import Cocoa
import AVFoundation
import CoreMediaIO
import XCPlayground
var currentDevice: AVCaptureDevice!
var currentName: String!
var currentUUID: String!
var window = NSWindow(contentRect: NSRect(x: 30, y: 30, width: 375, height: 667),
@davidnunez
davidnunez / gist:1404789
Created November 29, 2011 13:20
list all installed packages in android adb shell
pm list packages -f