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 <string.h> | |
int main(void) { | |
puts("Reading File"); | |
FILE *fp; // file pointer to data file | |
fp = fopen ("data.txt", "r"); | |
FILE *stream; |
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
<HTML> | |
<HEAD> | |
<META NAME="GENERATOR" CONTENT="Adobe PageMill 3.0 Win"> | |
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252"> | |
<TITLE>Land O'Pines School, MIR Space Station, SAREX Page</TITLE> | |
<META NAME="Template" CONTENT="C:\Program Files\Microsoft Office\Office\html.dot"> | |
<META NAME="keywords" CONTENT="howell, land, pines, school, SAREX, mir, mir space station, amsat, nasa, arrl, amateur, radio, amateur radio, school, howell, nj, andy thomas, astronaut, cosmonaut, space, shuttle"> | |
</HEAD> | |
<BODY LINK="#800080" BACKGROUND="mirback.jpg"> |
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
# | |
<center>![Land O'Pines School, Mir Space Station Mission Control](mcontrol.jpg)</center> | |
<embed src="aboard.wav" autostart="true" hidden="true" loop="false" width="100" height="100" align="BOTTOM"> | |
<center>[![SAREX](sarex.gif)](http://www.gsfc.nasa.gov/sarex)</center> | |
<center>**The <u>S</u>pace <u>A</u>mateur <u>R</u>adio <u>EX</u>periment is sponsored by**</center> |
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
def date_from_day_of_week(isoweekday): | |
base = datetime.datetime.today() | |
return [d for d in [base - datetime.timedelta(days=x) for x in range(0, 7)] if d.isoweekday()==isoweekday][0] |
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
const AWS = require('aws-sdk'); | |
const fs = require('fs'); | |
const mime = require('mime-types') | |
const path = require("path"); | |
// Base AWS config. | |
// AWS Reference: Make sure the profile exists in ~/.aws/credentials | |
// See managing access keys: | |
// https://docs.aws.amazon.com/general/latest/gr/managing-aws-access-keys.html | |
// https://docs.aws.amazon.com/IAM/latest/UserGuide/id_users_create.html#id_users_create_console |
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
const AWS = require('aws-sdk'); | |
const fs = require('fs'); | |
const mime = require('mime-types') | |
const path = require("path"); | |
// Base AWS config. | |
// AWS Reference: Make sure the profile exists in ~/.aws/credentials | |
// See managing access keys: | |
// https://docs.aws.amazon.com/general/latest/gr/managing-aws-access-keys.html | |
// https://docs.aws.amazon.com/IAM/latest/UserGuide/id_users_create.html#id_users_create_console |
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
body { | |
font-family: Helvetica, arial, sans-serif; | |
font-size: 14px; | |
line-height: 1.6; | |
padding-top: 10px; | |
padding-bottom: 10px; | |
background-color: white; | |
padding: 30px; } | |
body > *:first-child { |
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
class Singleton(object): | |
''' singleton class only allows for one instantiation per python interpreter ''' | |
_instance = None | |
def __new__(class_, *args, **kwargs): | |
''' override __new__ behavior to only return new instance if not previously instantiated ''' | |
if not isinstance(class_._instance, class_): | |
class_._instance = object.__new__(class_, *args, **kwargs) | |
return class_._instance | |
class PrintLogger(Singleton): |
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 | |
CMD="$(basename $0)" | |
usage() { | |
echo "usage: $CMD [-f file | -n name ] [ -i | -u | -s | -r ] [-v] | [-h]" | |
echo '' | |
echo 'systemd service installer' | |
echo 'optional arguments: | |
-h, --help show this help message and exit |
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/env python3 | |
from datetime import datetime, timedelta | |
current_time = datetime.now() | |
start_time = current_time.replace(microsecond=0,second=0,minute=0,hour=0)-timedelta(days=1) | |
end_time = current_time.replace(microsecond=0,second=0,minute=0,hour=0)-timedelta(seconds=1) | |
print("Getting All Data from Day Prior") | |
print("Time of invocation:", current_time) | |
print("Start Time Window :", start_time) |
OlderNewer