Skip to content

Instantly share code, notes, and snippets.

This_is_file_with_initial_values_for_calculations.
----------------------------------------------------------------------------------------------------------
NumOfTraject_160___NumOfPoints__StartStepIntegration___TolIntegration___TolOfCrossSection:
160 2000 0.0001000 0.0001000 0.0001000
----------------------------------------------------------------------------------------------------------
G:
20.000000
----------------------------------------------------------------------------------------------------------
Initial_values_of_phase_coordinates_for_trajectory_and_file_name_with_her_Puancare_points:
1 0.0 16.0 ./RESULT/1_trajectory.txt
#include <stdio.h>
#include <stdint.h>
#include <sys/time.h>
uint64_t time_delta(struct timeval *from, struct timeval *to) {
uint64_t delta = to->tv_sec * 1000000l + to->tv_usec;
return delta - (from->tv_sec * 1000000l + from->tv_usec);
}
int main(void) {
@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
#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>
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
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 {
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;
perl -e 'print chr(length($_)/3) for @ARGV' Perl​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​! Perl​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​! Perl​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​! Perl​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​! Perl​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​! Perl​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​! Perl​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​! Perl​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​! Perl​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​! Perl​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​
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
if ( ($foo == 1)
and ($bar == 1) ){
# ^ space after last matching parens
}