Skip to content

Instantly share code, notes, and snippets.

@wordyallen
wordyallen / c_cpp_properties.json
Last active May 23, 2018 23:23
c setting for arm
{
"configurations": [
{
"name": "STM32",
"browse": {
"path": [
"${workspaceFolder}",
"/Users/joe/STM32Cube/Repository/STM32Cube_FW_F4_V1.21.0/Drivers/STM32F4xx_HAL_Driver/Inc",
"/Users/joe/STM32Cube/Repository/STM32Cube_FW_F4_V1.21.0/Drivers/CMSIS/Device/ST/STM32F4xx/Include",
"/Users/joe/STM32Cube/Repository/STM32Cube_FW_F4_V1.21.0/Drivers/CMSIS/Include",
@wordyallen
wordyallen / c_cpp_properties.json
Created May 23, 2018 21:29
c setting for arm
{
"configurations": [
{
"name": "STM32",
"browse": {
"path": [
"${workspaceFolder}",
"/Users/joe/STM32Cube/Repository/STM32Cube_FW_F4_V1.21.0/Drivers/STM32F4xx_HAL_Driver/Inc",
"/Users/joe/STM32Cube/Repository/STM32Cube_FW_F4_V1.21.0/Drivers/CMSIS/Device/ST/STM32F4xx/Include",
"/Users/joe/STM32Cube/Repository/STM32Cube_FW_F4_V1.21.0/Drivers/CMSIS/Include",
@wordyallen
wordyallen / plan.md
Last active May 20, 2018 15:28
Embedded Bootcamp

Modern Embedded Boot Camp


Objective: To develop STM32 systems for AWS IoT platform using all the modern tooling commonly available to open source developers:

  • Continuous Integration: CircleCI/qemu ?
  • Unit Testing: googletest
  • Linting/StyleGuide: google/styleguide
  • Documentation: Moxygen
@wordyallen
wordyallen / notes.md
Created December 18, 2017 17:26
android module notes
  1. edit the following in build.gradle
buildscript {
    ext.kotlin_version = '1.2.10'
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.2.3'
 classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
@wordyallen
wordyallen / agenda.md
Last active December 15, 2017 18:35
meeting with laura

meeting with laura

  • add more gmail accounts
  • logging in: adm1n.ebwu@gmail.com and admin@ebwu.io
  • adding a business bank account
    • account number and routing number
  • basic bookkeeping
  • adding me as employee
    • 1099 or w9 form
  • personal routing and account number
package com.multimeleon.welcome.peter_john.nfcapp
import android.content.Intent
import android.nfc.NfcAdapter
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import kotlinx.android.synthetic.main.activity_main.*
import org.jetbrains.anko.toast
class MainActivity : AppCompatActivity() {
@wordyallen
wordyallen / AlarmBroadcastReceiver.kt
Last active December 13, 2017 05:27
Alarm Manager
package com.github.okwrtdsh.alarmtest
import android.app.Notification
import android.app.NotificationManager
import android.app.PendingIntent
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
class AlarmBroadcastReceiver : BroadcastReceiver() {
import React, {Component} from 'react'
import {View, StyleSheet, Text, AsyncStorage, ActivityIndicator} from 'react-native'
import {Bed, RadioGroup, AlarmSettings, ScrollLock} from '../components'
const {layout:{row}}= require('../styles')
export default class extends Component{
state={daysOfWeek:[], mode:'', side:'', time:'6:00AM', volume:'', tone:''}
@wordyallen
wordyallen / BedSettings.js
Last active November 17, 2017 19:11
Bed Raps
import React, {Component} from 'react'
import {View, StyleSheet, TouchableOpacity, ScrollView} from 'react-native'
import Svg, {Path, Defs, Use, G} from 'react-native-svg'
import {Text, Bed, AlarmCard} from '../components'
import d from '../path-descriptions/bed-settings.json'
const {layout:{row}} = require('../styles')
const User = ({ebwuOn, ...props}) => <TouchableOpacity {...props}>
<Svg width="46" height="46" viewBox="0 0 46 46" >
<Defs>
// import React from "react"
// import {View} from 'react-native'
// import Svg, { Path, G, Text } from "react-native-svg";
// const {palette:{blue, sunshine, navy}} = require('../styles')
//
// const SideA = ()=> <G x='10' y='10'>
// <Path fill={navy} d="M 0 20C 0 8.9543 8.9543 0 20 0L 112 0L 112 297L 20 297C 8.9543 297 0 288.046 0 277L 0 20Z"/>
// <Path fill='#E0E0E0' d="M 112 0L 113 0L 113 -1L 112 -1L 112 0ZM 112 297L 112 298L 113 298L 113 297L 112 297ZM 20 1L 112 1L 112 -1L 20 -1L 20 1ZM 111 0L 111 297L 113 297L 113 0L 111 0ZM 112 296L 20 296L 20 298L 112 298L 112 296ZM 1 277L 1 20L -1 20L -1 277L 1 277ZM 20 -1C 8.40202 -1 -1 8.40202 -1 20L 1 20C 1 9.50659 9.50659 1 20 1L 20 -1ZM 20 296C 9.50659 296 1 287.493 1 277L -1 277C -1 288.598 8.40202 298 20 298L 20 296Z"/>
// <Text x='40' y='120' fontSize={40} fontWeight='bold' fill={'white'} >A</Text>
// </G>