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 sys | |
from enum import Enum | |
from requests import request | |
class OrderBy(Enum): | |
LIKES = "likes_count" | |
VIEWS = "views_count" | |
NEW = "newest" | |
OLD = "oldest" | |
POPULAR = "newest_popular" |
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 <stm32f4xx_hal.h> | |
int app_main() | |
{ | |
__GPIOA_FORCE_RESET(); | |
__GPIOA_RELEASE_RESET(); | |
__GPIOA_CLK_ENABLE(); |
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
@ lets try to blink an LED on the discovery stm32 L1 board | |
@ uses LED on PB7 | |
@ how to compile and flash: | |
@ arm-none-eabi-as -mcpu=cortex-m3 blinky.s -o blinky.o | |
@ arm-none-eabi-ld -v -T stm32.ld -nostartfiles -o blinky.elf blinky.o | |
@ arm-none-eabi-objcopy -O binary blinky.elf blinky.bin | |
@ then from st-link (https://github.com/texane/stlink) | |
@ ./st-flash write ../first_arm/blinky.bin 0x08000000 | |
.thumb |
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
/* USER CODE BEGIN Header */ | |
/** | |
****************************************************************************** | |
* @file : main.c | |
* @brief : Main program body | |
****************************************************************************** | |
* @attention | |
* | |
* <h2><center>© Copyright (c) 2020 STMicroelectronics. | |
* All rights reserved.</center></h2> |
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
from sqlalchemy import create_engine | |
from sqlalchemy.orm import sessionmaker, relationship, aliased | |
from sqlalchemy.ext.declarative import declarative_base | |
from sqlalchemy import Column, Integer, String, ForeignKey | |
from sqlalchemy import and_ | |
Base = declarative_base() | |
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
from sqlalchemy import create_engine | |
from sqlalchemy.ext.declarative import declarative_base | |
from sqlalchemy.orm import sessionmaker, relation | |
from sqlalchemy.schema import Column, MetaData, ForeignKey | |
from sqlalchemy.types import Integer, String, Boolean | |
import factory | |
from factory.alchemy import SQLAlchemyModelFactory as Factory | |
engine = create_engine("sqlite:////db.db") |
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
/* | |
* spi.h | |
* | |
* Created on: 19 марта 2016 г. | |
* Author: developer | |
*/ | |
#ifndef SPI_H_ | |
#define SPI_H_ |
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
package test; | |
import java.nio.ByteBuffer; | |
public class Main { | |
/** | |
* @param args the command line arguments | |
*/ | |
public static void main(String[] args) { |
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
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package test; | |
import java.util.ArrayList; | |
import java.util.Collections; |
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
Processor Information: | |
Vendor: GenuineIntel | |
CPU Family: 0x6 | |
CPU Model: 0x2a | |
CPU Stepping: 0x7 | |
CPU Type: 0x0 | |
Speed: 3700 Mhz | |
4 logical processors | |
4 physical processors | |
HyperThreading: Unsupported |
NewerOlder