To set this up you'll need to set your desktop background to slideshow mode. Create a directory in your pictures folder called APOD
The script will put pictures in the directory. Set up a windows service to run the script once a day. profit!
The script also creates a file on your desktop named description.txt
it contains the pictures descript in a nice readable format if you're curious.
Be careful when changing the APOD_DIRECTORY
! This directory is removed and recreated very often so don't set it to something important like your
Pictures directory.
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<style> | |
body { | |
max-width: 800px; | |
margin: 0 auto; | |
} |
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
# ICS file filter | |
BEGIN { | |
FS = ":" | |
buffer = "" | |
notevent = 0 | |
} | |
($1~/^BEGIN/ && $2~/VEVENT/) { | |
keep = 1; | |
} |
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
// ==UserScript== | |
// @name Stalker Directory | |
// @version 1.0 | |
// @description Adds images to the PCC student (stalker) directory. | |
// @author Andrew | |
// @match https://eaglesnest.pcci.edu/studentservices/studentdirectory/ | |
// @icon https://www.google.com/s2/favicons?domain=pcci.edu | |
// @grant none | |
// ==/UserScript== |
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
FULLEXPRESSION -> [ EXPRESSION ] | |
EXPRESSION -> "(" EXPRESSION ")" || VALUE [ OPERATOPERATOR EXPRESSION ] || UNARYOP SMALLEXPRESSION | |
SMALLEXPRESSION -> "(" EXPRESSION ")" || VALUE || UNARYOPERATOR [ SMALLEXPRESSION ] | |
CONSTANTEXPRESSION -> CONSTANT || "(" CONSTANTEXPRESSION ")" || CONSTANT [ CONSTANTOPERATOR CONSTANTEXPRESSION ] || CONSTANTUNARYOPERATOR SMALLCONSTANTEXPRESSION || STRING | |
SMALLCONSTANTEXPRESSION -> "(" CONSTANTEXPRESSION ")" || CONSTANT || CONSTANTUNARYOPERATOR [ SMALLCONSTANTEXPRESSION ] | |
CONSTANT -> NUMBER || "PI" "(" ")" || "#RED" etc. | |
UNARYOPERATOR -> "-" || "NOT" || "!" | |
OPERATOR -> "+" || "-" || etc. |
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
echo off | |
echo ; set +v # > NUL | |
echo ; function GOTO { true; } # > NUL | |
GOTO WIN | |
# bash part, replace it to suit your needs | |
exit 0 | |
:WIN | |
REM win part, replace it to suit your needs |
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
if is host | |
while waiting for all clients. | |
send an accept packet to client. | |
send start packet to all clients. | |
while gameloop running | |
while not all data packets recieved | |
collect data packets from client. | |
send all packets to each client excluding sender. | |
update game state. | |
if is client |
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
#include <stdio.h> | |
#include <stdlib.h> | |
typedef struct node_t{ | |
int x; | |
struct node_t *next; | |
} node_t; | |
node_t *list_create(int x,node_t *next) { | |
node_t *new_node = (node_t *)malloc(sizeof(node_t)); |
NewerOlder