This file contains hidden or 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 contextlib | |
import textwrap | |
import traceback | |
import streamlit as st | |
from streamlit import source_util | |
@contextlib.contextmanager | |
def maybe_echo(): |
This file contains hidden or 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
#!/usr/bin/env python3 | |
""" | |
Rearranges the source files in a Unity project folder for asmdef creation. | |
This script will create two directories within the target directory, "Runtime" and "Editor". | |
All files that live within an existing "Editor" folder will be moved to this new top-level | |
"Editor" folder, but with the rest of their folder hierarchy maintained. All other files | |
will be moved into the new top-level "Runtime" folder, also with their existing folder hierarchy | |
maintained. |
This file contains hidden or 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
""" | |
Edit `streamlit/lib/Server.py`, and add "static_path" to `TORNADO_SETTINGS`. | |
You'll also need to import the `os` package. | |
See https://www.tornadoweb.org/en/branch5.1/guide/running.html#static-files-and-aggressive-file-caching | |
for more details. | |
""" | |
import os |
This file contains hidden or 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
using System.Collections.Generic; | |
using UnityEngine; | |
namespace TheHunt.Util { | |
/// <summary> | |
/// Extend this abstract base class to receive enter/exit events | |
/// from dynamic triggers. | |
/// </summary> | |
public abstract class DynamicTriggerListener : MonoBehaviour { |
This file contains hidden or 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
// | |
// aciv | |
package aciv.text { | |
public class StyleRun { | |
public var length :uint; | |
public var color :uint; | |
} |
This file contains hidden or 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
# | |
# ProtobufTable | |
import re | |
import os | |
import logging | |
import pickle | |
from threading import RLock | |
This file contains hidden or 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 csv | |
class Grid(object): | |
'''Parses a csv file into a grid. Each cell in the grid is a list of strings, corresponding to | |
the string that was in the corresponding cell in the spreadsheet split by the given | |
'cell_item_separator', which defaults to a comma''' | |
def __init__(self, csv_text, width=0, height=0, cell_item_separator=','): | |
lines = list(csv.reader(csv_text.splitlines())) | |
self.height = height if height > 0 else len(lines) |
This file contains hidden or 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
// | |
// aciv-core | |
package aciv.util { | |
import aspire.util.F; | |
import react.Future; | |
import react.Promise; |
This file contains hidden or 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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
PATH=/usr/local/bin:~/bin:/export/assemblage/tools/bin:${PATH} | |
FIGNORE=".class:.svn:.cache" | |
export EDITOR="vi" | |
# don't put duplicate lines in the history. See bash(1) for more options |
This file contains hidden or 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
// Settings in here override those in "Default/Preferences.sublime-settings", and | |
// are overridden in turn by file type specific settings. | |
{ | |
// Sets the colors used within the text area | |
"color_scheme": "Packages/Color Scheme - Default/Resesif.tmTheme", | |
// Note that the font_face and font_size are overriden in the platform | |
// specific settings file, for example, "Preferences (Linux).sublime-settings". | |
// Because of this, setting them here will have no effect: you must set them | |
// in your User File Preferences. |