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
#![allow(dead_code)] | |
extern crate rand; | |
use rand::random; | |
/// Labyrinth Edge | |
#[derive(Clone,Copy)] | |
enum LabEdge { | |
Exist, | |
None, |
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
diff --git a/converter/xt_usb/Makefile b/converter/xt_usb/Makefile | |
index 395115e..a798490 100644 | |
--- a/converter/xt_usb/Makefile | |
+++ b/converter/xt_usb/Makefile | |
@@ -70,7 +70,7 @@ F_USB = $(F_CPU) | |
# Atmel DFU loader 4096 | |
# LUFA bootloader 4096 | |
# USBaspLoader 2048 | |
-OPT_DEFS += -DBOOTLOADER_SIZE=512 | |
+OPT_DEFS += -DBOOTLOADER_SIZE=4096 |
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
#!/bin/sh | |
xdotool keydown shift+ctrl+u | |
xdotool keyup u | |
xdotool key 1 | |
xdotool key f | |
xdotool key 3 | |
xdotool key 1 | |
xdotool key a | |
xdotool keyup shift+ctrl |
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
// WARNING: this is a deprecated code from dcdr project; | |
// This can be broken, but still can be used as example how to write ppm file. | |
// Enjoy. | |
#include <vector> | |
#include <ifstream> | |
namespace Dcdr | |
{ | |
// ------------- dcdr/Types.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
#include <Polynomial.h> | |
#include <sstream> | |
#include <cmath> | |
using namespace Calculus; | |
Polynomial::Polynomial() : | |
Polynomial(PolynomialMap()) {} | |
Polynomial::Polynomial(const Polynomial::PolynomialMap& polyMap) : |
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
<NotepadPlus> | |
<UserLang name="FlatBuffers Scheme" ext="fbs" udlVersion="2.1"> | |
<Settings> | |
<Global caseIgnored="no" allowFoldOfComments="no" foldCompact="no" forcePureLC="0" decimalSeparator="0" /> | |
<Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" /> | |
</Settings> | |
<KeywordLists> | |
<Keywords name="Comments">00// 01 02 03 04</Keywords> | |
<Keywords name="Numbers, prefix1"></Keywords> | |
<Keywords name="Numbers, prefix2"></Keywords> |
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
/* Vladislav Nikonov [2018] | |
* | |
* Template visitor implementation, which will wait for concrete visitor dispatch, | |
* and will throw on other events. This can be done by method overload based on template type. | |
* This method will be overriden by function call, provided by client code | |
*/ | |
#include <iostream> | |
#include <memory> | |
#include <vector> |
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
/* Vladislav Nikonov [2018] | |
* | |
* This class represents read-write lock proxy for any type. Writer always have higest | |
* entrance priority (e.g. if object was already locked by readers - no new readers allowed before | |
* writer exit from lock. | |
*/ | |
#include <mutex> | |
#include <shared_mutex> | |
#include <chrono> |
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
extern crate rayon; | |
use rayon::prelude::*; | |
struct State<'a> | |
{ | |
first: &'a [usize], | |
other: &'a mut [usize], | |
value: Option<(&'a [usize], &'a mut [usize], &'a [usize])>, | |
} |
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
extern crate rayon; | |
use rayon::prelude::*; | |
use std::marker::PhantomData; | |
use std::mem; | |
struct Storage<'a, T : 'a> | |
{ | |
ptr: *mut T, | |
phantom: PhantomData<&'a T>, |
OlderNewer