Skip to content

Instantly share code, notes, and snippets.

View 14droplets's full-sized avatar

14 droplets upon laser beam 14droplets

View GitHub Profile
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"
@14droplets
14droplets / blinky.c
Created November 5, 2021 12:36
blinky.c
#include <stm32f4xx_hal.h>
int app_main()
{
__GPIOA_FORCE_RESET();
__GPIOA_RELEASE_RESET();
__GPIOA_CLK_ENABLE();
@14droplets
14droplets / blinky.s
Created November 5, 2021 10:43 — forked from BobBurns/blinky.s
blink led on stm32 L1 Discovery with ARM assembly
@ 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
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>&copy; Copyright (c) 2020 STMicroelectronics.
* All rights reserved.</center></h2>
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()
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")
/*
* spi.h
*
* Created on: 19 марта 2016 г.
* Author: developer
*/
#ifndef SPI_H_
#define SPI_H_
package test;
import java.nio.ByteBuffer;
public class Main {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
/*
* 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;
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