Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pyaudibletags import aafile | |
import Image, sys | |
import io | |
import binascii | |
def main(file): | |
f = aafile(file) | |
print 'Title: {}'.format(f.get_parent_title()) | |
print 'Author: {}'.format(f.get_author()) | |
print 'Date: {}'.format(f.get_pubdate()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from kivy.app import App | |
from kivy.lang import Builder | |
from kivy.properties import ObjectProperty | |
from kivy.graphics.texture import Texture | |
from kivy.core.window import Window | |
from noise import pnoise2, snoise2 | |
kv=''' | |
#:import math math |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# from gevent import monkey, sleep, getcurrent, spawn | |
# from gevent.queue import Queue | |
# monkey.patch_all() | |
from eventlet import monkey_patch, sleep, spawn | |
from eventlet.queue import Queue | |
monkey_patch() | |
import re | |
import subprocess as sp | |
import time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import inspect | |
import types | |
@types.coroutine | |
def _yield_(value): | |
return (yield value) | |
async def yield_(value): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!python | |
import os | |
import subprocess as sp | |
__build = \ | |
''' | |
// include Fake lib | |
#r @"tools/FAKE/tools/FakeLib.dll" | |
open Fake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by Brian Parma on 2/10/16. | |
* | |
* This is basically just the lazy delegate copy and pasted, then modified so that it can be | |
* reset by setting it equal to null | |
*/ | |
/** | |
* Represents a value with lazy initialization. | |
* | |
* To create an instance of [Cached] use the [cached] function. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.my.app | |
import android.app.PendingIntent | |
import android.content.BroadcastReceiver | |
import android.content.Context | |
import android.content.Intent | |
import android.content.IntentFilter | |
import android.hardware.usb.UsbDevice | |
import android.hardware.usb.UsbManager | |
import kotlinx.coroutines.experimental.CompletableDeferred |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coconut/default.nix | |
{ stdenv | |
, python3 | |
, name ? "nixpkgs" | |
, packages ? p: [] | |
, pkgs | |
, pkg ? "coconut" | |
}: | |
let |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
internal object DelegateAccess { | |
internal val delegate = ThreadLocal<Any?>() | |
internal val delegateRequested = ThreadLocal<Boolean>().apply { set(false) } | |
} | |
internal val <T> KProperty0<T>.delegate: Any? | |
get() { | |
try { | |
DelegateAccess.delegateRequested.set(true) | |
this.get() |