- Das Array wird wiederholt von links nach rechts durchlaufen.
- Steht eine größere Zahl vor einer kleineren Zahl, so werden die beiden Zahlen miteinander vertauscht. Damit steht am Ende des 1.Durchlaufs das größte Element ganz rechts.
- Wiederhole solange Arraydurchläufe, bis das ganze Array sortiert ist.
This file contains hidden or 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
/** | |
* Copyright 2018 Jonas Blocher | |
* <p> | |
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files | |
* (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, | |
* merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is | |
* furnished to do so, subject to the following conditions: | |
* <p> | |
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
* <p> |
This file contains hidden or 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
{"lastUpload":"2021-11-18T10:25:29.496Z","extensionVersion":"v3.4.3"} |
This file contains hidden or 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 <Adafruit_NeoPixel.h> | |
#define RGB_DATA_PIN 2 //Digital Pin connected to the led stripes data line | |
#define BUTTON_PIN 12 //Digital Pin connected to a button for control of the circuit | |
#define PIXEL_COUNT 25 //Number of rgb leds connected to the board | |
#define TICK_RATE 20 //milliseconds between each loop (determines accuracy for button press detection) | |
#define CLICK_MAX_TIME 500 //How long a click of the button should take at max (in milliseconds) |
This file contains hidden or 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
{ | |
"device_layout" : 4, | |
"device_model" : "Logitech.Gaming.Keyboard.G810", | |
"device_name" : "G810", | |
"name" : "Flowing LOGI", | |
"transition_list" : | |
[ | |
{ | |
"color" : "#0069ff", | |
"curve" : 0, |
This file contains hidden or 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 | |
for root, dirs, files in os.walk("."): | |
for file in files: | |
if file.endswith(".ico"): | |
path = os.path.abspath(os.path.join(root, file)) | |
parent= os.path.dirname(path) | |
parentName = os.path.basename(parent) | |
if "." + parentName.lower() + ".ico" == file: | |
print("Updating icon of '%s'" % parentName) |
Botania Materials by nihiltres, licensed under MIT License
This file contains hidden or 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
package io.github.J0B10.JSR385Demo; | |
import com.intelligt.modbus.jlibmodbus.exception.ModbusIOException; | |
import com.intelligt.modbus.jlibmodbus.exception.ModbusNumberException; | |
import javax.measure.Quantity; | |
import javax.measure.Unit; | |
import javax.measure.quantity.Energy; | |
import javax.measure.quantity.Power; | |
import javax.measure.quantity.Time; |
This file contains hidden or 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
#! python version 2.7 | |
import os | |
import json | |
import re | |
# The MCEdit 1.0 filter name | |
displayName = "JER export" | |
# filter settings | |
inputs = ( |