Skip to content

Instantly share code, notes, and snippets.

module Gollum
class Macro
class ListTree < Gollum::Macro
def render(tree_expr, heading_level = 3)
re = Regexp.new("^(" + tree_expr + ")\/");
subtree = {}
result = ''
if @wiki.pages.size > 0
#!/usr/bin/env python3
import sys
import re
import json
import urllib.request
import pychromecast
from pychromecast.controllers.youtube import YouTubeController
# Your Chromecast device name here
@n13i
n13i / AndroidManifest.xml
Created November 22, 2020 06:26
Just connect to BT-PAN NAP and die
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="net.m2hq.pannacotta">
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"