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
@tool | |
extends Node | |
# ****************************************************************************** | |
func check_extension(file, ext=null) -> bool: | |
if ext: | |
if ext is String: | |
if file.ends_with(ext): | |
return true |
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
{ | |
"id": 0, | |
"jsonrpc": "2.0", | |
"result": { | |
"capabilities": { | |
"codeActionProvider": false, | |
"colorProvider": false, | |
"completionProvider": { | |
"resolveProvider": true, | |
"triggerCharacters": [".", "$", "'", "\""] |
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
// update this section to reflect the pin numbers in the box | |
#define LED_GREEN_PIN 3 | |
#define LED_RED_PIN 2 | |
#define NUMBER_OF_PINS 4 | |
int cableA[NUMBER_OF_PINS] = {6, 7, 8, 9}; | |
int cableB[NUMBER_OF_PINS] = {15, 14, 16, 10}; |
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
# **************************************************************************** # | |
# General Make configuration | |
# This suppresses make's command echoing. This suppression produces a cleaner output. | |
# If you need to see the full commands being issued by make, comment this out. | |
MAKEFLAGS += -s | |
# **************************************************************************** # | |
APP_FOLDER = app |
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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
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
tool | |
extends Node | |
# ****************************************************************************** | |
func check_extension(file, ext=null) -> bool: | |
if ext: | |
if ext is String: | |
if file.ends_with(ext): | |
return true |
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
tool | |
extends TextEdit | |
# ****************************************************************************** | |
func _ready(): | |
connect('request_completion', self, 'request_completion') | |
func request_completion(): | |
print('request_completion') |
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
extends Control | |
# ****************************************************************************** | |
onready var MenuButton = find_node('MenuButton') | |
# ****************************************************************************** | |
func _ready(): | |
# Add an optional callback when you create a menu item |
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
#include "stdint.h" | |
/* ************************************************************************** */ | |
#define set_STROBE_PIN(state) LATXbits.LATXY = state // your register here | |
#define set_CLOCK_PIN(state) LATXbits.LATXY = state // your register here | |
#define set_DATA_PIN(state) LATXbits.LATXY = state // your register here | |
static void spi_bitbang_tx_word(uint16_t word) { |
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
static func get_dir_files(path: String) -> PoolStringArray: | |
var arr: PoolStringArray | |
var dir := Directory.new() | |
dir.open(path) | |
if dir.file_exists(path): | |
arr.append(path) | |
else: |
NewerOlder