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
/* Explorer tree view patch */ | |
/* Adjust level indentation */ | |
:root { --tree-width: 16px; } | |
.explorer-folders-view .monaco-list-row { overflow: visible !important; } | |
.explorer-folders-view .monaco-list-row[aria-level= "1"] { padding-left: calc( 0 * var(--tree-width)) !important; } | |
.explorer-folders-view .monaco-list-row[aria-level= "2"] { padding-left: calc( 1 * var(--tree-width)) !important; } | |
.explorer-folders-view .monaco-list-row[aria-level= "3"] { padding-left: calc( 2 * var(--tree-width)) !important; } | |
.explorer-folders-view .monaco-list-row[aria-level= "4"] { padding-left: calc( 3 * var(--tree-width)) !important; } |
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 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 smbus | |
import time | |
bus = smbus.SMBus(1) | |
device = 0x1e | |
maxLen = 32 | |
len_reg = 0xFD | |
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
""" | |
PID-controller for simple aperiodic model. | |
Features: | |
- Parameter renormalization to different time step between solver iterations. | |
- Limits for control and target signals. | |
""" | |
import 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
# https://github.com/ros2-for-arm/ros2/blob/master/aarch64_toolchainfile.cmake | |
set(CMAKE_SYSTEM_NAME Linux) | |
set(CMAKE_SYSTEM_VERSION 1) | |
set(CMAKE_SYSTEM_PROCESSOR armhf) | |
# specify the cross compiler | |
set(CMAKE_C_COMPILER /usr/bin/arm-linux-gnueabihf-gcc) | |
set(CMAKE_CXX_COMPILER /usr/bin/arm-linux-gnueabihf-g++) | |
set(PYTHON_INCLUDE_DIR $ENV{TOOLCHAIN_PATH}/usr/include/python3.6) |
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
def deco(func): | |
def inner(x): | |
print("I multiply with " + str(x)) | |
return func(x) | |
return inner | |
@deco | |
def make_multiplier_of(n): | |
def multiply(x): | |
return x*n |
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
[yapf] | |
# https://github.com/google/yapf | |
based_on_style = pep8 | |
blank_lines_around_top_level_definition = 2 | |
blank_line_before_nested_class_or_def = True | |
coalesce_brackets = True | |
column_limit = 99 | |
continuation_indent_width = 4 | |
dedent_closing_brackets = False |
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
.vs/ | |
.vscode/ | |
Library/ | |
Logs/ | |
Temp/ | |
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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using Unity.Collections; | |
using System.IO; | |
using System.Xml.Serialization; | |
public class Serialization : MonoBehaviour | |
{ | |
private bool initialized = false; |
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
using System; | |
namespace bits | |
{ | |
public struct Output | |
{ | |
// since bool is not blittable | |
public byte _flags; | |
const byte GotResultFlag = 0b01; | |
const byte DiscardedFlag = 0b10; |
OlderNewer