Skip to content

Instantly share code, notes, and snippets.

@alyoshenka
alyoshenka / launch.json
Last active February 11, 2020 20:50
default vscode c++ setup
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Attach",
"type": "cppdbg",
"request": "attach",
@alyoshenka
alyoshenka / .bashrc
Last active January 29, 2020 02:22
my Raspberry Pi startup config
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@alyoshenka
alyoshenka / .gitignore
Last active January 24, 2021 03:44
send me a text of the weather at a scheduled time
*.txt
*.pyc
@alyoshenka
alyoshenka / .gitignore
Last active February 11, 2020 10:05
music player
*.mp3
*.pyc
@alyoshenka
alyoshenka / main.cpp
Created April 2, 2020 19:15
Call Python from C++
#include <stdio.h>
#include <conio.h>
#include "pyhelper.hpp"
// https://www.codeproject.com/Articles/820116/Embedding-Python-program-in-a-C-Cplusplus-code
int main()
{
CppPyInstance pyInstance;
{
"configurations": [
{
"name": "Win32",
"includePath": [
"C:/raylib/src/**",
"${workspaceFolder}/**"
],
"defines": [
"_DEBUG",
@alyoshenka
alyoshenka / .gitignore
Last active October 19, 2020 00:54
pipe output to/from Hubble process
commandCenter
parent_example
child_example
lPipe
rPipe
@alyoshenka
alyoshenka / .gitignore
Last active January 19, 2021 05:03
Query Google Sheets API to update time tracker via Twilio text messaging
credentials/
.vscode/
token.pickle
log.txt
__pycache__/
@alyoshenka
alyoshenka / TerminalNotes.md
Last active January 24, 2021 04:54
Useful commands

Useful terminal commands

  • ps aux | grep "name": find process by name
  • sudo dkpg -i "package.deb": install package
  • source ~/.bashrc: reload .bashrc
@alyoshenka
alyoshenka / .gitignore
Last active October 21, 2021 23:19
Stock Ticker
*.pyc
robin_stocks/
__pycache__/