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 cp2110 | |
cp2110.cp2110 = cp2110 | |
class CP2110Serial: | |
def __init__(self, baud): | |
self.device = cp2110.CP2110Device() | |
self.device.set_uart_config(cp2110.UARTConfig( | |
baud=baud, |
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 argparse | |
import dataclasses | |
__all__ = ('Arg', 'Int', 'Float', 'Str', 'Choice', 'parse_to') | |
class Arg: | |
def __init__(self, **kwargs): | |
super().__init__() |
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
{ | |
"global": { | |
"check_for_updates_on_startup": true, | |
"show_in_menu_bar": true, | |
"show_profile_name_in_menu_bar": false | |
}, | |
"profiles": [ | |
{ | |
"complex_modifications": { | |
"parameters": { |
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 * as p from "core/properties" | |
import {Widget, WidgetView} from "models/widgets/widget" | |
export class AudioPlayerView extends WidgetView | |
initialize: (options) -> | |
super(options) | |
@get_data() | |
@connect(@model.data_source.change, () => @get_data()) | |
get_data: () -> |
This file has been truncated, but you can view the full file.
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
var x = "//OAxAAAAAAAAAAAAFhpbmcAAAAPAAB63AA8PmgAAwUICg0PEhQYGhwfISQmKSsvMTQ2ODs9QEJFR0tNT1JUV1lcXmFkZ2lrbnBzdXl7foCChYeKjJCSlZeanJ6ho6aorK6xs7W4ur2/wsXIys3P0dTW2dvf4eTm6Ovt8PL19/v9AAAAOUxBTUUzLjk4cgJpAAAAACwKAAAUKCQCQEIAACgAPD5oODGzDQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/zEMQAAVAF/AAAxgABs479o5VUvv+Q64xp//NAxAcX6qYwVMjELPMIwHGQd2gbiMAQAAERHkAAAA6i270AznOdGPOc5+c5QM84cX6no2f+QDP/4QAESUIoGLf5CTn/kY8/1Sx0JOHA3OjdXVjvoQnnAw53/1hZ/1Bhvw/TxP9KSSn/85DEAjYLfjh+09Mcb7dYgKEDUtDnpwEndRPpWNrT9N1gSdpc6mNNKJXlbr3qW5Yt52L3LsrpiFE09o5MSliSNt5G9zYErFNxTxFEyItTuTxSMyoiaZ54Z+PyEPiUTVRRWIUNwukZELtyxijx/HU6iwpXM/3OVEny2J60SkBseK6vwem8vIktmpPFpMc7QtnRFfKVRyG+pVIm2FwhwD4WGkTJRM2gJuMkEBsnKIhQmwRvZWHxQ1POooGF1GP//4ilBMmb3NXbpfPD1Fdz/WQ/8thjUZ4k4udFmYOsIANxDalehVUNSSW3b7b76lcO4BEuc0guh1vtONuywd1mMqmyqLGI4iT/82DEISjLVopeYNJ2Q6k1cnoYvmn1Z9tZA96w0shZQmUbVxn4oWp9DppGps2uvBaNyuEdVKbLwLtzipfjj45pWaKbmmShi5KHFUnpCRdhDE1rm6Xn4WnL0lnzz375xcksxKEVy0Cea9xR7BQ+asiQikwwdNI1kDf+qynzrOZFVM+LgieAsKhYGALBbWQu9ioFayy0YCCZRsBjJCP/81DEDCA |
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 mimir | |
import time | |
from visdom_handler import VisdomHandler | |
def main(): | |
logger = mimir.Logger() | |
visdom_handler = VisdomHandler(['train', 'valid'], 'ce', | |
dict(title='Train/valid cross-entropy', | |
xlabel='iteration', |
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
class Mode(object): | |
"""Setup mode train or test. | |
It is meant to be used in a context created by `train` or `test`. | |
Crashes if used outside of context. | |
An intended use is to create a brick with conditional apply method | |
which checks mode inside. A brick should store the mode object in | |
a field. Several bricks can use the same mode object. |
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 tinydb | |
from tornado import gen | |
from functools import partial | |
from bokeh.models import ColumnDataSource | |
from bokeh.plotting import curdoc, figure | |
# this must only be modified from a Bokeh session allback |
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 base64 | |
import json | |
import numpy as np | |
import cPickle | |
import pandas | |
class NumpyEncoder(json.JSONEncoder): | |
def default(self, obj): |
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
\documentclass{article} | |
\usepackage[utf8]{inputenc} | |
\begin{document} | |
\section{Le tête} | |
Bonjour. Je voudrais vous presenter une histoire de 2012. | |
\section{Le lieu} |