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
diff --git luabind-0.9.1/luabind/detail/call_function.hpp luabind-0.9.1-fixed/luabind/detail/call_function.hpp | |
index 1b45ec1..8f5afff 100644 | |
--- luabind-0.9.1/luabind/detail/call_function.hpp | |
+++ luabind-0.9.1-fixed/luabind/detail/call_function.hpp | |
@@ -323,7 +323,8 @@ namespace luabind | |
#endif // LUABIND_CALL_FUNCTION_HPP_INCLUDED | |
-#elif BOOST_PP_ITERATION_FLAGS() == 1 | |
+#else |
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
.WARMST equ $FF7C | |
.INCHAR equ $FFcD | |
EOT equ $04 | |
CR equ $0d | |
TCTL1 equ $20 | |
TOC2 equ $18 | |
TOC1 equ $16 | |
TFLG1 equ $23 | |
OC1M equ $0C |
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
CREATE OR REPLACE TRIGGER check_artist | |
BEFORE INSERT ON genre_artist | |
FOR EACH ROW | |
DECLARE | |
artist_id INTEGER; | |
new_id INTEGER; | |
BEGIN | |
SELECT id INTO artist_id FROM jobs WHERE name = 'Artist'; | |
SELECT job INTO new_id FROM persons WHERE id = :new.artist; | |
IF (artist_id != new_id) 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
target remote localhost:2331 | |
monitor reset | |
monitor flash device = STM32F100C8 | |
monitor flash download = 1 | |
monitor flash breakpoints = 1 | |
monitor clrbp | |
monitor endian little | |
monitor speed 400 | |
load |
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
diff -Naur ChibiOS-svn/os/hal/ports/STM32/LLD/OTGv1/stm32_otg.h ChibiOS-iso/os/hal/ports/STM32/LLD/OTGv1/stm32_otg.h | |
--- ChibiOS-svn/os/hal/ports/STM32/LLD/OTGv1/stm32_otg.h 2015-07-15 20:18:40.000000000 +0600 | |
+++ ChibiOS-iso/os/hal/ports/STM32/LLD/OTGv1/stm32_otg.h 2015-07-31 16:08:43.768582531 +0600 | |
@@ -671,6 +671,8 @@ | |
SOF mask. */ | |
#define DSTS_FNSOF(n) ((n)<<8) /**< Frame number of the received | |
SOF value. */ | |
+#define DSTS_FNSOF_ODD (1U<<8) /**< Frame parity of the received | |
+ SOF value. */ | |
#define DSTS_EERR (1U<<3) /**< Erratic error. */ |
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
diff -Naur ChibiOS-iso/testhal/STM32/STM32F4xx/USB_AUDIO/chconf.h ChibiOS-iso-demo/testhal/STM32/STM32F4xx/USB_AUDIO/chconf.h | |
--- ChibiOS-iso/testhal/STM32/STM32F4xx/USB_AUDIO/chconf.h 1970-01-01 07:00:00.000000000 +0700 | |
+++ ChibiOS-iso-demo/testhal/STM32/STM32F4xx/USB_AUDIO/chconf.h 2015-07-15 20:18:40.000000000 +0600 | |
@@ -0,0 +1,499 @@ | |
+/* | |
+ ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio | |
+ | |
+ Licensed under the Apache License, Version 2.0 (the "License"); | |
+ you may not use this file except in compliance with the License. | |
+ You may obtain a copy of the License at |
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
#!/usr/bin/python3 | |
# To use this script, | |
# - remove all lines except data lines for small ores and save it as .csv with ";" separator (e.g. small.csv) | |
# - remove all lines except data lines for mix ores and save it as .csv with ";" separator (e.g. mix.csv) | |
# - ./gen-cfg.py small.csv mix.csv | |
# - Script should create 4 files: small.cfg mix.cfg small_dim.cfg mix_dim.cfg | |
# - Copy small.cfg into worldgen { ore { small { custom { } } } } and rename id from 1 to 9 (1 -> 01 2 -> 02) (I'm so lazy...) | |
# - Copy small_dim.cfg into worldgen { dimensions { ore { small { custom { } } } } } and rename id from 1 to 9 (1 -> 01 2 -> 02) | |
# - Copy mix.cfg into worldgen { ore { mix { custom { } } } } and rename id from 1 to 9 (1 -> 01 2 -> 02) (I'm so lazy...) |
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
# Configuration file | |
galacticgreg { | |
I:AsteroidMaxSize_400=400 | |
I:AsteroidMinSize_100=100 | |
I:AsteroidProbability_50=50 | |
I:EndAsteroidMaxSize_200=200 | |
I:EndAsteroidMinSize_50=50 | |
I:EndAsteroidProbability_300=300 | |
B:GenerateAsteroidsInEnd_true=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
// WorldGenerator.java | |
// Ok, we have sList of veins and sWeight calculated for all dimensions | |
if (Worldgen_GT_Ore_Layer.sWeight > 0 && Worldgen_GT_Ore_Layer.sList.size() > 0) { | |
boolean temp = T; | |
for (int i = 0; i < 128 && temp; i++) { | |
int tRandomWeight = aRandom.nextInt(Worldgen_GT_Ore_Layer.sWeight); | |
for (Worldgen_GT_Ore_Layer tWorldGen : Worldgen_GT_Ore_Layer.sList) { | |
tRandomWeight -= tWorldGen.mWeight; | |
if (tRandomWeight <= 0) { | |
// Got some random ore, trying to place it |
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
diff --git a/drivers/gdisp/SSD1306/SSD1306.h b/drivers/gdisp/SSD1306/SSD1306.h | |
index 7d7010e..8ec8b3a 100644 | |
--- a/drivers/gdisp/SSD1306/SSD1306.h | |
+++ b/drivers/gdisp/SSD1306/SSD1306.h | |
@@ -44,6 +44,9 @@ | |
#define SSD1306_EXTERNALVCC 0x1 | |
#define SSD1306_SWITCHCAPVCC 0x2 | |
+#define SSD1306_SETLOWCOLUMN 0x00 | |
+#define SSD1306_SETHIGHCOLUMN 0x10 |
OlderNewer