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
def getWeatherIcon(code): | |
return { | |
# Thunder - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | |
# thunderstorm with light rain | |
200: "\uEB28", | |
# thunderstorm with rain | |
201: "\uEB29", |
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
$user = $env:USERNAME | |
$cmd = "net user /domain $($user)" | |
$cmdOutput = iex $cmd | |
$pwExpiryString = [regex]::Matches(($cmdOutput | select-string -Pattern 'Password expires'), '\d+\/\d+\/\d+ \d+:\d+:\d+').Value | |
$pwExpiry = [datetime]::ParseExact($pwExpiryString, 'dd/MM/yyyy HH:mm:ss', $null) | |
$now = Get-Date | |
$diff = (New-TimeSpan -Start $now -End $pwExpiry).Days | |
write-host "Password for $user valid for $diff days" |
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 <FastLED.h> | |
#define NUM_LEDS 50 | |
#define DATA_PIN 2 | |
#define CHIPSET WS2811 | |
#define COLOR_ORDER RGB | |
CRGB leds[NUM_LEDS]; | |
int colorMin = 20; | |
int colorMax = 55; |
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 <FastLED.h> | |
#define NUM_LEDS 50 | |
#define FADE_SPEED 5 | |
#define LIKELIHOOD 150 | |
#define DATA_PIN 2 | |
#define CHIPSET WS2811 | |
#define COLOR_ORDER RGB |
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 <FastLED.h> | |
#define NUM_EYES 10 // The number of PAIRS of eyes (total will be twice this) | |
#define FADE_SPEED 20 // How quick the eyes fade out (1-255) | |
#define EYE_LIKELIHOOD 20 // Higher number gives more eyes at one time (1-255) | |
#define DATA_PIN 2 | |
#define CHIPSET WS2811 | |
#define COLOR_ORDER RGB |
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
@echo off | |
(for %%i in (*.jpg) do @echo file '%%i') > mylist.txt | |
ffmpeg -f concat -i mylist.txt -c:v libx264 -b:v 1500k out.mp4 |