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
/* --------------------------------------------------------------------------------------------------------------------------------- | |
* Configuration for OnStepX | |
* | |
* For more information on setting OnStep up see http://www.stellarjourney.com/index.php?r=site/equipment_onstep | |
* and join the OnStep Groups.io at https://groups.io/g/onstep | |
* | |
* *** Read the compiler warnings and errors, they are there to help guard against invalid configurations *** | |
* | |
* --------------------------------------------------------------------------------------------------------------------------------- | |
* ADJUST THE FOLLOWING TO CONFIGURE YOUR CONTROLLER FEATURES ---------------------------------------------------------------------- |
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<iostream> | |
#include<fstream> | |
using namespace std; | |
int printhex(char c){ | |
if(int(c) < 0) { | |
printf("%02x",int(c^0xffffff00)); | |
}else{ | |
printf("%02x",int(c)); |
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"> | |
<title>แข่งขันพิมพ์เร็วครั้งที่ 1</title> | |
<link href="static/img/favicon.png" rel="icon" type="image/png"> |
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> | |
int main () | |
{ | |
int N=5; | |
int i=1; | |
int sum=0; | |
while( ___ <= ___ ){ | |
sum=sum+___ ; | |
___++; |
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> | |
int main () | |
{ | |
int i=0; | |
for(i=0;i<5;i++) { | |
printf("Hello\n"); | |
} | |
return(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
#include<stdio.h> | |
int main () | |
{ | |
int i=0; | |
do { | |
printf("Hello\n"); | |
i++; | |
}while(i<5); | |
return(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
#include<stdio.h> | |
int main () | |
{ | |
int i=0; | |
while(i<5) { | |
printf("Hello\n"); | |
i++; | |
} | |
return(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
#!/usr/bin/env python3 | |
from socket import * | |
serverName='127.0.0.1' | |
serverPort=12002 | |
clisock=socket(AF_INET,SOCK_DGRAM) | |
mesg=input('Input lowercase sentence:') | |
clisock.sendto(mesg.encode(),(serverName, serverPort)) | |
modifiedMessage, serverAddress = clisock.recvfrom(2048) | |
print(modifiedMessage.decode()) |
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 socket import * | |
serverPort = 12002 | |
serverSocket = socket(AF_INET, SOCK_DGRAM) | |
serverSocket.bind(('', serverPort)) | |
print ("The server is ready to receive") | |
while True: | |
message, clientAddress = serverSocket.recvfrom(2048) | |
modifiedMessage = message.decode().upper() | |
serverSocket.sendto(modifiedMessage.encode(), clientAddress) |
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
# Building CubicSDR for Linux | |
# This script will successfully build CubicSDR under Debian Jessie on the Raspberry Pi3. | |
# Adapted from https://github.com/cjcliffe/CubicSDR/wiki/Build-Linux | |
# Larry Dighera June 7, 2016 | |
# [email protected] | |
# songritk Mar 24,2018 | |
sudo apt-get install -y git build-essential automake cmake | |
sudo apt-get install -y libpulse-dev libgtk-3-dev |
NewerOlder