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
| @ECHO OFF | |
| exit 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
| void TIM3_IRQHandler(void) | |
| { | |
| if (TIM_GetITStatus(TIM3, TIM_IT_Update)) { | |
| TIM_ClearITPendingBit(TIM3, TIM_IT_Update); | |
| // И т.д. что ты собирался делать внутри прерывания | |
| } | |
| } |
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
| /** @brief Write a buffer of data to a selected endpoint. | |
| * | |
| * @param[in] bEpAddr | |
| * The address of the non control endpoint. | |
| * | |
| * @param[in] pBufferPointer | |
| * The pointer to the buffer of data to be written to the endpoint. | |
| * | |
| * @param[in] wBufferSize | |
| * Number of data to be written (in bytes). |
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
| class JodaTimeTest { | |
| @Test | |
| void somethingTest() { | |
| //2013-09-15T10:00:00+04:00 | |
| def dt = new DateTime(2013, 9, 15, 10, 0) | |
| DateTimeFormatter fmt = ISODateTimeFormat.dateTimeNoMillis() | |
| assert fmt.print(dt), '2013-09-15T10:00:00+04:00' | |
| assert fmt.parseDateTime('2013-09-15T10:00:00+04:00'), dt | |
| } | |
| } |
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
| /*---------------------------------------------------------------------------- | |
| Программа, которая измеряет напряжение и по DMA помещает данные в массив | |
| АЦП запускается от таймера Т2 с частотой 1кГц. Размер массива -2000 слов. | |
| Сначала генерируется прерывание обработчика первого полумассива, затем второго. | |
| *---------------------------------------------------------------------------*/ | |
| #include <stm32f10x_adc.h> | |
| #include <stm32f10x_dma.h> |
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
| void MakeCmdX(); | |
| void MakeCmdP(uint16_t code); | |
| uint16_t code; | |
| char cmd = 0; | |
| uint8_t c = 0; | |
| /* Команды | |
| x - Стоп | |
| p - Установить NMR Period, 2 байта данных |
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
| private static void resizeTable() { | |
| //mainTable.getColumnModel().getColumn(0).setPreferredWidth(15); // здесь ошибка | |
| for (int i = 0; i < mainTable.getColumnModel().getColumnCount(); i++) { | |
| mainTable.getColumnModel().getColumn(i).setPreferredWidth(15); // а здесь ее нет | |
| System.out.println(i); | |
| System.out.println(mainTable.getColumnModel().getColumnCount()); | |
| } | |
| } |
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
| for (Integer id: tmpHM.keySet()) { | |
| TypePos typePos = tmpHM.get(id); | |
| hm.put(id, | |
| checkCell( | |
| shtB.getRow(typePos.getPosX() - 1).getCell(typePos.getPosY() - 1) | |
| ) | |
| ); | |
| } |
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 myPack; | |
| import java.io.FileNotFoundException; | |
| import java.io.IOException; | |
| import java.io.FileInputStream; | |
| import java.math.BigDecimal; | |
| import java.util.HashMap; | |
| import java.util.Map; | |
| import java.util.Set; |
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 com.samples; | |
| import java.io.FileInputStream; | |
| import java.io.FileNotFoundException; | |
| import java.io.IOException; | |
| import java.io.ObjectInputStream; | |
| import com.thoughtworks.xstream.*; | |
| import com.thoughtworks.xstream.io.xml.DomDriver; |