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
#define WINVER 0x0500 | |
#include <windows.h> | |
#include <stdio.h> | |
typedef COLORREF (CALLBACK *ABCPTR)(HDC,int,int); | |
int main() | |
{ | |
ABCPTR pGetPixel; |
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/perl | |
use strict; | |
use warnings; | |
use Text::Aspell; | |
sub main() { | |
my $str = "Уважаемые пассажиры, во избежание травм держитесь за поручни"; | |
my $speller = Text::Aspell->new; | |
die unless $speller; | |
$speller->set_option('lang', 'ru_RU'); |
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/perl | |
use strict; | |
use warnings; | |
my $str = "44+4 = 444/4-44/4+4/4"; | |
sub main(){ | |
for my $i (0,1,7,8,9,13) { | |
my $copy = $str; |
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 "config-host.h" | |
#include <sys/mman.h> | |
#include "hw/hw.h" | |
#include "hw/qdev.h" | |
#include "hw/isa/isa.h" | |
typedef struct FFTestdev { | |
ISADevice parent_obj; | |
MemoryRegion ioport; | |
uint32_t ioport_data; |
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
SECTION .data | |
formatin: db "%lld", 0 | |
in1: dq 6 | |
in2: dq 5 | |
formatout: db "%g", 10, 0 | |
var: dq 0.0 | |
SECTION .text | |
global main | |
extern scanf | |
extern printf |
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
package org.epic.perleditor.editors.perl; | |
import java.util.*; | |
import java.util.regex.Matcher; | |
import java.util.regex.Pattern; | |
import org.eclipse.core.runtime.CoreException; | |
import org.eclipse.jface.text.*; | |
import org.eclipse.jface.text.contentassist.*; | |
import org.eclipse.ui.editors.text.TextEditor; |
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
import java.util.Date; | |
import java.util.concurrent.ExecutionException; | |
import java.util.concurrent.ForkJoinPool; | |
import algorithm.Solver; | |
/** | |
* @author nazarov | |
*/ | |
public class ExecutorTest { | |
public static void main(String[] args) throws ExecutionException, InterruptedException { |
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
firefish@firefish-PC:/media/firefish/data/projects/ransac_cuda$ ./ransac_cuda | |
Sample length: 100 | |
Estimated set length: 10 | |
Maximum iterations: 100000 | |
Maximum degree of the result polynom: 2 | |
Tolerance threshold: 0.10000000 | |
Maximum part of outliners: 0.30000000 | |
### Total time: 5.272155 |
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
#define BLOCK_NUMBER 32 | |
#define BLOCK_SIZE 256 | |
#define EPS 1e-8 | |
//MAX_ITERS - максимальное число итераций, выполняемое за один запуск ядра | |
#define MAX_ITERS 200*BLOCK_NUMBER | |
#define MAX_DEGREE 8 | |
#define BENCHMARK | |
#include <cuda_runtime.h> |
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
obj-m += memdump.o | |
all: | |
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules | |
clean: | |
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean |