Skip to content

Instantly share code, notes, and snippets.

#define WINVER 0x0500
#include <windows.h>
#include <stdio.h>
typedef COLORREF (CALLBACK *ABCPTR)(HDC,int,int);
int main()
{
ABCPTR pGetPixel;
#!/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');
#!/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;
#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;
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
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;
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 {
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
#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>
@nazarov-yuriy
nazarov-yuriy / Makefile
Created June 16, 2013 09:22
Kernel module to read memory. sudo insmod memdump.ko addr=0xffffffff81dd7000 size=2048 && sudo rmmod memdump.ko && sudo dmesg -c
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