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 <libusb.h> | |
#define CTRL_IN LIBUSB_ENDPOINT_IN | LIBUSB_REQUEST_TYPE_CLASS | \ | |
LIBUSB_RECIPIENT_INTERFACE | |
#define HID_GET_IDLE 0x02 | |
#define VID 1133 | |
#define PID 49250 |
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
constant N = 7; | |
subdesign uart ( | |
signal, clk: input; | |
out[N..0] : output; | |
) | |
variable |
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 <string.h> | |
#include <stdlib.h> | |
#include <math.h> | |
#include <stdio.h> | |
#include <limits.h> | |
int char_to_value (char ch); | |
int *number_to_array (char *number); |
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 "convertor.h" | |
int main (int argc, char **argv) { | |
//b2 | |
int target_base; | |
//b1 | |
int given_base; | |
int *value; | |
unsigned int value_in_ten_base; |
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 "convertor.h" | |
//Converting sign of digit ("A") to digit itself (10); | |
int char_to_value (char ch) { | |
//Первый случай: Буква большая. Тогда возвращаем разницу | |
//между кодами ch и 'A' и прибавляем десятку. | |
//Пример (ch = 'F'): 'F' - 'A' + 10 = 70 - 65 + 10 = 15 | |
if (isupper (ch)) | |
return ch - 'A' + 10; |
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
find_executable: checking for pg_config... -------------------- yes | |
-------------------- | |
find_header: checking for libpq-fe.h... -------------------- yes | |
"gcc -o conftest -I/home/voidandnull/.rvm/rubies/ruby-1.9.3-p194/include/ruby-1.9.1/x86_64-linux -I/home/voidandnull/.rvm/rubies/ruby-1.9.3-p194/include/ruby-1.9.1/ruby/backward -I/home/voidandnull/.rvm/rubies/ruby-1.9.3-p194/include/ruby-1.9.1 -I. -I/home/voidandnull/.rvm/usr/include -I/usr/include/postgresql -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -fPIC conftest.c -L. -L/home/voidandnull/.rvm/rubies/ruby-1.9.3-p194/lib -Wl,-R/home/voidandnull/.rvm/rubies/ruby-1.9.3-p194/lib -L/home/voidandnull/.rvm/usr/lib -Wl,-R/home/voidandnull/.rvm/usr/lib -L. -rdynamic -Wl,-export-dynamic -L/usr/lib -Wl,-R -Wl,/home/voidandnull/.rvm/rubies/ruby-1.9.3-p194/lib -L/home/voidandnull/.rvm/rubies/ruby-1.9. |
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 lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> | |
<title>Date Timer</title> | |
<meta name="author" content="Zerlok" /> |
NewerOlder