You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
The <1 kb state machine hook for React: See the user-facing docs at: usestatemachine.js.org Batteries Included: Despite the tiny size, useStateMachine is feature complete (Entry/exit callbacks, Guarded transitions & Extended State - Context) Amazing TypeScript experience: Focus on automatic type inference (auto completion for both TypeScript & JavaScript users without having to manually define the
マークダウンをhtmlにコンバートする方法を探していた。pipで入れられるmarkdownがよさそうなので少し試してみる。 pyenvで入れた環境 $ python --version Python 3.6.5 $ pip --version pip 19.1.1 from /Users/ito_masakuni/.pyenv/versions/3.6.5/lib/python3.6/site-packages/pip (python 3.6) $ pip install markdown Collecting markdown Downloading https://files.pythonhosted.org/packages/c0/4e/fd492e91abdc2d2fcb70ef453064d980688762079397f779758e055f6575/Markdown-3.1.
概要 C++ で作成した処理を Python から使用するには以下を始めとした複数の方法があります。 Python.h SWIG Boost.Python Shiboken pybind11 どの方法を使用するかは状況によって変わりますが Boost.Python では C++ 内から Python を呼び出せる(今回の例とは逆)という利点があります。Python と C++ の間で相互に呼び出しを行えるので、C++ で作成されたアプリケーションにマクロ言語として Python を組み込む相互に呼び出しを行うといったことができるようになります。 ここでは Linux(Ubuntu 18.04)上で Boost.Python を使用して Python (Python 3)用ライブラリーを作成する方法について説明します。 Boost.Python のビルド まず以下のコマンドで必要なパッケージ
動画教材紹介私(清水 義孝)が作成したコース「Pythonによるビジネスに役立つWebスクレイピング」(Udemyへのリンク)が発売中! 発売数9,000本突破を記念して、今だけ期間限定で87%オフの大セール中!!! Pythonにおけるモジュール、パッケージ、ライブラリとはモジュールとは、Pythonのファイル(.py)の事です。 Pythonである程度の長いプログラムを書く場合などは、Jupitor Notebookやコマンドラインではなく.pyファイルに実行したい内容を保存します。 そしてその保存された.pyファイルは、他のPythonのプログラムからimportで呼び出して使うことも出来ます。これをモジュールと呼びます。通常、このモジュールの中には、いくつかのクラスや関数が含まれています。 そのモジュールをいくつか集めてまとめたものがパッケージと呼ばれています。 ライブラリとは、い
当記事ではPowerShellでモジュールを取り扱う方法を解説します。 1. モジュールとは 当記事で言うモジュールとは、自作した変数・関数・クラスを様々なスクリプトで再利用できるようにする仕組み、および当該の仕組みで参照されるファイル、とでも緩やかに定義しておきます。まぁ、何となく言わんとすることは分かってもらえるかと思います。 PowerShellでモジュールを利用する方法は、いくつかありますので順を追って紹介していきます。 2. スクリプトファイルで区切る 最も単純明快な方法と言えるのは、使いまわしたい処理をスクリプトファイルに格納し、当該スクリプトファイルを呼び出すという方法です。 2-1. 取扱い方 エントリポイントなるファイルをIndex.ps1とし、モジュールとして呼び出したいファイルをModule.ps1とします。それらを以下のように配置します。一応言っておきますが、これは
ctx := v8.NewContext() // creates a new V8 context with a new Isolate aka VM ctx.RunScript("const add = (a, b) => a + b", "math.js") // executes a script on the global context ctx.RunScript("const result = add(3, 4)", "main.js") // any functions previously added to the context can be called val, _ := ctx.RunScript("result", "value.js") // return a value in JavaScript back to Go fmt.Printf("additio
WebDataset format files are tar files, with two conventions: within each tar file, files that belong together and make up a training sample share the same basename when stripped of all filename extensions the shards of a tar file are numbered like something-000000.tar to something-012345.tar, usually specified using brace notation something-{000000..012345}.tar You can find a longer, more detailed
Please refer to the tenacity documentation for a better experience. Tenacity is an Apache 2.0 licensed general-purpose retrying library, written in Python, to simplify the task of adding retry behavior to just about anything. It originates from a fork of retrying which is sadly no longer maintained. Tenacity isn't api compatible with retrying but adds significant new functionality and fixes a numb
Well I wanted a UI library for MII -- something without tons of dependencies, and I didn't want the typical 'game like' style with "Arrow Keys + Return + Escape" sort of menus. I started with Nuklear immediate mode UI, but it both look super ugly, AND is very limited as soon as you want to do something 'custom', and I didn't see myself hacking into that codebase. One thing I particularly dislike i
COLUMN 組み込みエンジニアの戸惑い PythonからC言語を呼び出してみる①(Python/C APIを使った場合) # Python # エンジニア # 組み込みエンジニアの戸惑いシリーズ Python編 # 言語 2019-07-26 FSI Embedded 組み込みソフトウェアエンジニアがPythonを始めてみました。そして、第5の戸惑い、今回は組み込みとは切っても切り離せない「C言語」に関しての話題です。 Pythonを扱っていて課題となり得る、処理速度の改善や過去資産の流用など、そんなときに役立つかもしれない、PythonからC言語を呼び出す方法についてのご紹介です。 PythonからC言語、またはC++を呼び出す方法には様々なものがあります。以前の記事でもPython/C API (Python.h)やSWIG、boost.pythonなどを使うことで実現可能とご紹介し
A modular framework for vision & language multimodal research from Facebook AI Research (FAIR). Less BoilerplateMMF is designed from ground up to let you focus on what matters -- your model -- by providing boilerplate code for distributed training, common datasets and state-of-the-art pretrained baselines out-of-the-box. Powered by PyTorchMMF is built on top of PyTorch that brings all of its power
Million.js: Virtual DOM into the future. Million.js is a lightweight 1kb Virtual DOM and is a drop-in replacement for React! Million.js has now its own domain: https://millionjs.org Special thanks to folks from js.org domain who provide a great service for the JavaScript community by maintaining the js.org domain. Visit millionjs.org Redirect me next time
// Import decorators from library import { JsonObject, JsonProperty } from 'typescript-json-serializer'; // Enums export enum Gender { Female, Male, Other } export enum Status { Alive = 'Alive', Sick = 'Sick', DeadAndAlive = 'Dead and alive', Dead = 'Dead' } // Create a JsonObject class: LivingBeing // JsonObject decorator @JsonObject() export class LivingBeing { /** The living being id (PK) */ @J
This Month's Best Find out which releases are hitting the top charts this month
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く