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 </home/peanutwolf/Документы/myKIPP/RingBuffer.h> | |
void buf_push_char(char data){ | |
if(buf_pointer<=90){ | |
RING_BUFFER[buf_pointer] = data; | |
buf_pointer++; | |
} | |
else{ | |
return; | |
} |
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 <iostream> | |
using namespace std; | |
struct Rational | |
{ | |
Rational(int numerator = 0, int denominator = 1) | |
:numerator_(numerator), denominator_(denominator){}; | |
void add(Rational rational){ |
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
/** | |
* | |
* I grub it from linux kernel source code and fix it for user space | |
* program. Of course, this is a GPL licensed header file. | |
* | |
* Here is a recipe to cook list.h for user space program | |
* | |
* 1. copy list.h from linux/include/list.h | |
* 2. remove | |
* - #ifdef __KERNE__ and its #endif |
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
void ValToAmount(char pdPriceStr[14], unsigned long int pdPrice) { | |
unsigned char iLen = 0; | |
char amountFormat[14] = { '0', '0', '.', '0', '0', '0', '.', '0', '0', '0', ',', '0', '0', '\0'}; | |
unsigned char pdPricePrime = 0; | |
memset(pdPriceStr, 0, NUMBER_OF_ITEMS(amountFormat)); | |
iLen = strlen(amountFormat); | |
pdPricePrime = pdPrice % 10; | |
pdPrice /= 10; | |
while ((pdPrice != 0 || pdPricePrime > 0) && iLen > 0){ | |
if (amountFormat[iLen - 1] == ',' || amountFormat[iLen - 1] == '.'){ |
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
#!/bin/sh | |
# | |
# Script name: setup_codesourcery.sh | |
# Version: 2.2 - 2012-07-19 | |
# | |
# Copyright (C) 2009-2012 Matthias "Maddes" Buecher | |
# | |
# |
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 "sdk30.h" | |
#include "ip_.h" | |
int logSockData(char* data, int Size, struct sockaddr_in *from); | |
int isMoreLogSize(int size); | |
int openLogFile(void); | |
static struct sockaddr_in server, socaddr_tmp; | |
static struct sockaddr_in client_cash; |
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 "sdk30.h" | |
#include "ip_.h" | |
#include "timer.h" | |
#define UDP 0 | |
int logSockData(char* data, int Size, struct sockaddr_in *from); | |
int isMoreLogSize(int size); | |
int openLogFile(void); | |
void setMyEthParams(char eth_str[32]); |
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
import java.util.Properties; | |
import javax.mail.*; | |
import javax.mail.event.MessageCountEvent; | |
import javax.mail.event.MessageCountListener; | |
import com.sun.mail.imap.*; | |
public abstract class MailProtoPort { |
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
import java.io.*; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.SortedSet; | |
import java.util.TreeSet; | |
/** | |
* Created by vigursky on 17.08.2015. | |
*/ |
OlderNewer