This project has moved to https://github.com/justbuchanan/i3scripts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This is a simple program for the MBED intended to determine what happens if a signal for a thread is | |
set before the corresponding wait is called. It behaves as expected, so the bug I'm tracking down is somewhere else... | |
*/ | |
#include <mbed.h> | |
#include <rtos.h> | |
#include <cmsis_os.h> | |
void thread(const void* arg) { |
I hereby claim:
- I am justbuchanan on github.
- I am justbuchanan (https://keybase.io/justbuchanan) on keybase.
- I have a public key ASD1L3Wi4J_PeKhF5_YV_X1V1B9Em2Sepm6HRtob8TqFRwo
To claim this, I am signing this object:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
# | |
# This script builds a ball-placement SSL Referee message for the yellow team | |
# and repeatedly broadcasts it. Usage: | |
# ./send_ssl_placement_cmd.py <x coord> <y coord> | |
# | |
# Install protobuf: | |
# pip2 install protobuf | |
# | |
# Compile protobuf files (this creates referee_pb2.py): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <vector> | |
#include <memory> | |
using namespace std; | |
struct MyObject { | |
std::vector<char> v; | |
char addr; | |
char port; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
main | |
cpp-channel |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Modified version of the "cudnn" PKGBUILD on the AUR | |
# Original Author: Benjamin Chrétien <chretien dot b +aur at gmail dot com> | |
# Modified by Justin Buchanan <justbuchanan at gmail dot com> on 10/15/2016 to use latest version from nvidia | |
pkgname=cudnn | |
pkgver=5.1.5 | |
pkgrel=1 | |
pkgdesc="NVIDIA CUDA Deep Neural Network library" | |
arch=('x86_64') | |
url="https://developer.nvidia.com/cuDNN" | |
license=('proprietary') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/third_party/gpus/crosstool/CROSSTOOL.tpl b/third_party/gpus/crosstool/CROSSTOOL.tpl | |
index a367aa8..02cac9e 100644 | |
--- a/third_party/gpus/crosstool/CROSSTOOL.tpl | |
+++ b/third_party/gpus/crosstool/CROSSTOOL.tpl | |
@@ -54,6 +54,9 @@ toolchain { | |
# Use "-std=c++11" for nvcc. For consistency, force both the host compiler | |
# and the device compiler to use "-std=c++11". | |
cxx_flag: "-std=c++11" | |
+ cxx_flag: "-D_MWAITXINTRIN_H_INCLUDED" | |
+ cxx_flag: "-D_FORCE_INLINES" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import yaml | |
import sys | |
from collections import OrderedDict | |
""" | |
This script converts i3-style themes into xresources format. | |
i3-style can be found here: https://github.com/acrisci/i3-style. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
## Volume script for i3blocks | |
# | |
# This script uses playerctl to update whenever the current song changes, rather | |
# than polling at a fixed interval. | |
# | |
# Dependencies: | |
# * python-gobject - system package | |
# * playerctl - system package |