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 SPI, MP3 and SD libraries | |
#include <SPI.h> | |
#include <Adafruit_VS1053.h> | |
#include <SD.h> | |
// These are the pins used for the breakout example | |
#define BREAKOUT_RESET 9 // VS1053 reset pin (output) | |
#define BREAKOUT_CS 10 // VS1053 chip select pin (output) | |
#define BREAKOUT_DCS 8 // VS1053 Data/command select pin (output) | |
// These are the pins used for the music maker shield |
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 SPI, MP3 and SD libraries | |
#include <SPI.h> | |
#include <Adafruit_VS1053.h> | |
#include <SD.h> | |
// These are the pins used for the breakout example | |
#define BREAKOUT_RESET 9 // VS1053 reset pin (output) | |
#define BREAKOUT_CS 10 // VS1053 chip select pin (output) | |
#define BREAKOUT_DCS 8 // VS1053 Data/command select pin (output) | |
// These are the pins used for the music maker shield |
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
#!/bin/bash | |
# In order to use Pyenv, you do need a few dependencies to get things going. | |
# Otherwise, building will not occur and/or your favorite (necessary) modules | |
# won't be built! | |
# Install the basics (gcc, g++, make, etc.) | |
sudo apt-get install build-essential | |
# Python 3.5.2 build dependencies | |
# (Source from: http://mirrors.bloomu.edu/debian/pool/main/p/python3.5/python3.5_3.5.2-6.dsc) |
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
#!/bin/bash | |
# reset_wifi - WiFi Reset Script | |
# Copyright (C) 2014 Albert Huang. | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, |
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
#!/bin/bash | |
# Environment Loading Script by alberthdev | |
# To use, run: | |
# source load_env.sh | |
APP="arm-eabi (32-bit) GCC Linaro" | |
CDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
grepstr() { printf "$2" | grep "$1" 2>&1 >/dev/null; return $?; } | |
patherr() { echo "ERROR: Duplicate $1 path detected."; echo "You may already have this path loaded."; exit 1; } |
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
/* TEST INPUT: | |
* .addinstr 0 0 0000000000000000000000000000 | |
* | |
* Save to crash.asm, and run (for extra fun): | |
* ./spasm crash.asm | |
* valgrind --leak-check=full ./spasm crash.asm | |
* | |
* This contains the bug fix - to remove it, search | |
* for "BUG FIX IS ON THE NEXT LINE", and comment out the | |
* following line. |
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 <stdio.h> | |
#include <string.h> | |
int main() { | |
char *null_ptr = NULL; | |
char *null_ptr_2 = NULL; | |
printf("Hi there! null_ptr is %p, null_ptr_2 is %p\n", (void *)null_ptr, (void *)null_ptr_2); | |
null_ptr_2 = strdup(null_ptr); |
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
#!/bin/bash | |
# CEmu libpng-apng Build Script | |
# | |
# Prerequisites: | |
# - BASH to run this script. (If you can run it, chances are that | |
# you have it!) | |
# - curl to download packages. | |
# - Basic UNIX utilities - sed, grep, sort, tar, rm | |
# - Clang/GCC + Make installed. For Mac OS X, you may get this | |
# installed via Xcode - see here: |
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
#!/bin/bash | |
# This script aims to build a bootstrap CMake + gRPC environment for | |
# your project! It tries and saves space for the build - shallow cloning | |
# by default. Post build it'll take 1.5 GBs total, 340 MBs for just the | |
# final binaries needed for your project. | |
# | |
# magical bash snip @ https://stackoverflow.com/a/246128 | |
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" | |
becho() { echo -e "\e[1m$@\e[0m"; } |
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
//------------------------------------------------ | |
//--- 010 Editor v11.0 Binary Template | |
// | |
// File: AR.bt | |
// Authors: SweetScape Software + Albert Huang (GitHub @alberthdev) | |
// Version: 1.1 | |
// Purpose: Parse ar archives used for .a, .lib, | |
// .ar and .deb files. | |
// Category: Archive | |
// File Mask: *.a,*.lib,*.ar,*.deb |
OlderNewer