See https://codesandbox.io/s/mobx-undo-redo-v2-ofty1 for example.
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 os | |
import socket | |
import traceback | |
def send(cmd, port): | |
host = '127.0.0.1' | |
# we expect a result no matter if it errors, so we keep trying until we |
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
#!/bin/bash | |
# Arguments can include a quoted string to define the test string to be repeated | |
# If an argument is numbers only, it changes the rate at which to speak (words per minute, default 200) | |
play_all_voices() { | |
local voice | |
local rate=200 | |
local test_string="How are you?" | |
for arg in $@; do | |
if [[ $arg =~ ^[0-9]+$ ]]; then |
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
brew install Qt4 | |
brew install openssl | |
brew install cmake | |
git clone https://github.com/PySide/pyside-setup.git --recurse-submodules | |
cd pyside-setup | |
# The following must be executed in a bash shell | |
python setup.py bdist_wheel --ignore-git --qmake=/usr/local/Cellar/qt/4.8.7_2/bin/qmake --openssl=/usr/local/Cellar/openssl/1.0.2h_1/bin/openssl --cmake=/usr/local/Cellar/cmake/3.5.2/bin/cmake |
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
# This is a sample Python script. | |
# Press ⌃R to execute it or replace it with your code. | |
# Press Double ⇧ to search everywhere for classes, files, tool windows, actions, and settings. | |
import aiohttp | |
event_loop = None | |
import asyncio | |
from pprint import pprint |
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
# Based on https://devtalk.blender.org/t/plugin-hot-reload-by-cleaning-sys-modules/20040 | |
def cleanse_modules(): | |
"""search for your plugin modules in blender python sys.modules and remove them""" | |
for module_name in list(sys.modules.keys()): | |
if module_name.startswith(__name__): | |
del sys.modules[module_name] | |
# example usage |
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 nimline | |
import os | |
static: | |
let | |
halideDist = getenv("HALIDE_DIST") | |
assert halideDist != "" , "HALIDE_DIST environment variables not set!" | |
when defined windows: |
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
# -*- coding: utf-8 -*- | |
# ##### BEGIN GPL LICENSE BLOCK ##### | |
# | |
# This program is free software; you can redistribute it and/or | |
# modify it under the terms of the GNU General Public License | |
# as published by the Free Software Foundation; either version 2 | |
# of the License, or (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, |
- Verify the Microsoft account.
- Uninstall unused apps like OneDrive.
- Install Unity Hub.
- Enable WSL2 and install Ubuntu.
wsl --install
- Open Terminal and copy-paste the custom profile.
sudo apt update && sudo apt upgrade
.- Sign in to GitHub and add a new SSH key.
ssh-keygen -t rsa -b 4096 -C "keijiro@gmail.com"
- Clone dotfiles and run
setup
.
OlderNewer