Skip to content

Instantly share code, notes, and snippets.

View ammaaim's full-sized avatar

Alex Balan ammaaim

View GitHub Profile
@isqad
isqad / bootstrap.s
Last active September 16, 2021 16:01
Bootstrap for stm32f103
@ stm32f103 has 0x5000 (20K) SRAM
@ SRAM is starting from 0x20000000
@ so stack is eq 0x20000000 + 0x5000 = 0x20005000
@ flash starts from 0x08000000
.syntax unified
.thumb
.cpu cortex-m3
@ZhukV
ZhukV / ds18b20.c
Created January 29, 2014 19:22
Work with temperature sensor DS18B20
/**
ds18b20.c - work with temperature sensor DS18B20
Author: Vitaiy Zhuk
*/
#include <util/delay.h>
#include "ds18b20.h"
/**
@joegoggins
joegoggins / install and add gcc arm to PATH.sh
Last active December 12, 2022 06:59
How I installed GCC ARM on my Mac 10.9 Mac Book Pro
# Download the file manually from here https://launchpad.net/gcc-arm-embedded
# Note: `curl` command doesn't work
# I downloaded this one: "gcc-arm-none-eabi-4_7-2013q3-20130916-mac.tar.bz2"
# double click it to unzip it
# Make a place to install it to
mkdir /usr/local/gcc_arm
# Move the unzipped stuff there.
@egonSchiele
egonSchiele / reader.hs
Created June 10, 2013 20:51
Reader monad example
import Control.Monad.Reader
hello :: Reader String String
hello = do
name <- ask
return ("hello, " ++ name ++ "!")
bye :: Reader String String
bye = do
name <- ask
@st4lk
st4lk / vkcom_audio_download.py
Last active October 24, 2023 13:13
Python: vkontakte.ru (vk.com) audio music downloader
# -*- coding: utf-8 -*-
"""
Скрипт для скачивания музыки с сайта vkontakte.ru (vk.com)
Запуск:
python vkcom_audio_download.py
Принцип работы:
Скрипт проверяет сохраненный access_token. Если его нет или срок истек,
то открывается страница в браузере с запросом на доступ к аккаунту.