This file contains 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
// | |
// Created by tully on 10/2/15. | |
// | |
#ifndef HEXPANEL_PLAYLIST_H | |
#define HEXPANEL_PLAYLIST_H | |
#include "FastLED.h" | |
#include <lib8tion.h> |
This file contains 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
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
using FluentAssertions; | |
using Xunit; | |
namespace MultiDimensional.Tests | |
{ | |
public enum Dimension |
This file contains 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
var items = (await process.InitializeAsync()).ToList(); | |
var runningTasks = new List<Task<Result>>(); | |
foreach (var item in items) | |
{ | |
// Start this item on the thread pool, and hold onto its task | |
runningTasks.Add(Task.Run(async () => await process.ProcessAsync(item))); | |
// If we are at our concurrency limit, await a single task |
This file contains 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/pwsh | |
param( | |
# Specifies a path to an assembly file, or directory of assembly files. | |
[Parameter( Mandatory = $false, | |
Position = 0, | |
ValueFromPipeline = $true, | |
ValueFromPipelineByPropertyName = $true, | |
HelpMessage = "Path to the assemblies to load")] | |
[Alias("AsmPath")] |
This file contains 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 | |
DEVICE=$1 | |
FILE=$2 | |
# Save image to file | |
echo "Pulling data from SD card..." | |
cat $DEVICE > $FILE |
This file contains 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
[tully@localhost Slic3r]$ perl Build.PL --gui | |
App::cpanminus is up to date. (1.7043) | |
Class::Accessor is up to date. (0.34) | |
Growl::GNTP is up to date. (0.21) | |
--> Working on LWP::UserAgent | |
Fetching http://www.cpan.org/authors/id/O/OA/OALDERS/libwww-perl-6.26.tar.gz ... OK | |
Configuring libwww-perl-6.26 ... OK | |
==> Found dependencies: Test::RequiresInternet, HTTP::Daemon | |
--> Working on Test::RequiresInternet | |
Fetching http://www.cpan.org/authors/id/M/MA/MALLEN/Test-RequiresInternet-0.05.tar.gz ... OK |
This file contains 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
[tully@localhost ~]$ sudo cpan | |
[sudo] password for tully: | |
Loading internal null logger. Install Log::Log4perl for logging messages | |
CPAN.pm requires configuration, but most of it can be done automatically. | |
If you answer 'no' below, you will enter an interactive dialog for each | |
configuration option instead. | |
Would you like to configure as much as possible automatically? [yes] |
This file contains 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
[tully@localhost ~]$ sudo dnf install git curl gcc-c++ boost-devel perl-Wx \ | |
> perl-Module-Build perl-App-cpanminus perl-Moo \ | |
> perl-Math-PlanePath perl-Boost-Geometry-Utils \ | |
> perl-Math-ConvexHull perl-Math-Geometry-Voronoi perl-parent \ | |
> perl-Growl-GNTP perl-Class-XSAccessor perl-XML-SAX-ExpatXS \ | |
> perl-Math-ConvexHull-MonotoneChain perl-ExtUtils-XSpp \ | |
> perl-ExtUtils-CppGuess perl-ExtUtils-Typemaps-Default \ | |
> perl-Capture-Tiny perl-Test-Base perl-Test-Differences \ | |
> perl-Text-Diff perl-Module-Build-WithXSpp /usr/bin/cpan |
This file contains 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
Adafruit_MPR121 _cap; | |
uint16_t _currButtonState; | |
uint16_t _lastButtonState; | |
bool isPressed(int button) { | |
uint16_t bitmask = 1 << button; | |
return !(_lastButtonState & bitmask) && (_currButtonState & bitmask); | |
} |
This file contains 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
/* | |
* Pattern.h | |
* | |
* Created on: 7 Jan 2015 | |
* Author: tully | |
*/ | |
#ifndef PATTERN_PATTERN_H_ | |
#define PATTERN_PATTERN_H_ |
NewerOlder