Skip to content

Instantly share code, notes, and snippets.


Sean Wood WoodyWoodsta

View GitHub Profile
WoodyWoodsta / LEDBlinkSTM32F051C6.c
Created Jul 14, 2015
LED Blink example using register accessing
View LEDBlinkSTM32F051C6.c
// Paste this at the top of your main file
#define EVER ;;
#define RCC_PERHIPHBASE 0x40021000
#define GPIOB_PERIPHBASE 0x48000400
View OpenOCD.txt
STM32F0x -> STLinkv2:
sudo openocd -f interface/stlink-v2.cfg -f target/stm32f0x_stlink.cfg
WoodyWoodsta / includeGuard.h
Last active Oct 27, 2015
Multiple inclusion guard tactic for C explained
View includeGuard.h
/** To prevent your code having multiply included header files,
* and hence possibly multiply declared functions and variables,
* the following tactic is used in the file to be included which will
* prevent the code from being compiled more than once.
// The "ifndef" combined with the matching "endif" directives serve as a pre-processor
// "if not defined" statement, where the code between these two directives will only
// Be compiled if, in this case, the symbol "NAME_OF_HEADER_FILE_H" has not been defined.

#local-npm setup To install service for local-npm using forever-service:

$ sudo rm /usr/bin/node

$ sudo ln -s "$(which node)" /usr/bin/node

$ sudo forever-service install local-npm-service --script /home/<user>/.nvm/versions/node/<node-version>/lib/node_modules/local-npm/bin.js -o " -d /home/<user>/.local-npm" -p /home/<user>/.nvm/versions/node/<node-version>/bin --start
View redshift.conf
; Global settings for redshift
; Set the day and night screen temperatures
; Enable/Disable a smooth transition between day and night
; 0 will cause a direct change from day to night screen temperature.
; 1 will gradually increase or decrease the screen temperature.
WoodyWoodsta / .babel.json
Last active Sep 27, 2016
Elementary OS setup stuff
View .babel.json
"{\"filename\":\"/mnt/Data/ITDev/gitsub/experimental/v-engine/src/__tests__/index.es6\",\"env\":{},\"retainLines\":false,\"highlightCode\":true,\"suppressDeprecationMessages\":false,\"presets\":[],\"plugins\":[[[],null],[[],null],[[],null],[[],null],[[],null],[[],null],[[],null],[[],null]],\"ignore\":[],\"code\":true,\"metadata\":true,\"ast\":true,\"comments\":true,\"compact\":\"auto\",\"minified\":false,\"babelrc\":true,\"sourceType\":\"module\",\"moduleIds\":false,\"passPerPreset\":false}:6.10.4": {
"metadata": {
"usedHelpers": [
"marked": [],
"modules": {
"imports": [
# Your init script
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
# An example hack to log to the console when each text editor is saved.
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
WoodyWoodsta / output-panel.txt
Last active Jan 9, 2018
Microsoft/vscode Issue #40725
View output-panel.txt
[Info - 15:44:19] Using tsserver from: /Applications/Visual Studio Code -
[Info - 15:44:19] TSServer log file: /Users/sean/Library/Application Support/Code - Insiders/logs/20180109T090501/vscode.typescript/tsserver-log-ac1Nhr/tsserver.log
[Info - 15:44:19] Forking TSServer
PATH: /Users/sean/.nvm/versions/node/v8.9.4/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/sean/.config/yarn/global/node_modules/.bin/
[Info - 15:44:19] Started TSServer
[Error - 15:44:30] 'occurrences' request failed with error.
Error processing request. Could not find file: '/Users/sean/ITDev/projects/draw-group/OW-enercity-ed4-integration-layer/ed4-front-end-integration-layer/common/models/subscription.js'.
Error: Could not find file: '/Users/sean/ITDev/projects/draw-group/OW-enercity-ed4-integration-layer/ed4-front-end-integration-layer/common/models/subscription.js'.
at getValidSourceFile (/Applications/Visual Studio Code -
You can’t perform that action at this time.