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.Random; | |
public class ZeroSeriesLength { | |
public static void main(String[] args) throws Exception { | |
int maxLength; | |
long nanoTime; | |
for (int i = 0; i < 100; i++) { | |
Random r = new Random(); | |
int size = 10000; |
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 <stdio.h> | |
#include <stdint.h> | |
int main(int argv, char *args[]){ | |
uint8_t tempo_attuale = 0; | |
uint8_t tempo_ultima_esecuzione = -1;//force overflow, or if first execution is at 0 it get all screwed up untill next overflow! | |
uint8_t periodo_in_esame; | |
/*le seguenti 3 variabili possono essere messe in una strutture a poi "arrayzzate" per avere più eventi indipendenti*/ | |
uint8_t tempo_esecuzione = 0; |
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
private HashMap<CacheKey, AtomicBoolean> waitNotify = new HashMap<>(); | |
@Override | |
public void objectReaded(Object readObject, SuperSocket superSocket) { | |
if (readObject instanceof VersionedObject) { | |
VersionedObject vb = (VersionedObject) readObject; | |
synchronized (waitNotify) { | |
AtomicBoolean boolean1 = waitNotify.get(vb.getKey()); | |
synchronized (boolean1) { | |
if (boolean1 != null) { |
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
9797.467508] usb 2-1: USB disconnect, device number 31 | |
[ 9810.374551] usb 2-1: new full-speed USB device number 32 using xhci_hcd | |
[ 9810.487773] usb 2-1: device descriptor read/64, error -71 | |
[ 9810.590916] xhci_hcd 0000:03:00.0: Setup ERROR: setup context command for slot 1. | |
[ 9810.590930] usb 2-1: hub failed to enable device, error -22 | |
[ 9810.697435] usb 2-1: new full-speed USB device number 33 using xhci_hcd | |
[ 9810.810657] usb 2-1: device descriptor read/64, error -71 | |
[ 9810.913783] xhci_hcd 0000:03:00.0: Setup ERROR: setup context command for slot 1. | |
[ 9810.913796] usb 2-1: hub failed to enable device, error -22 | |
[ 9811.020320] usb 2-1: new full-speed USB device number 34 using xhci_hcd |
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
[10743.328765] usb 2-1: new full-speed USB device number 2 using xhci_hcd | |
[10743.441982] usb 2-1: device descriptor read/64, error -71 | |
[10743.545122] xhci_hcd 0000:03:00.0: Setup ERROR: setup context command for slot 1. | |
[10743.545135] usb 2-1: hub failed to enable device, error -22 | |
[10743.651657] usb 2-1: new full-speed USB device number 3 using xhci_hcd | |
[10743.764868] usb 2-1: device descriptor read/64, error -71 | |
[10743.868003] xhci_hcd 0000:03:00.0: Setup ERROR: setup context command for slot 1. | |
[10743.868016] usb 2-1: hub failed to enable device, error -22 | |
[10743.974541] usb 2-1: new full-speed USB device number 4 using xhci_hcd | |
[10743.975721] usb 2-1: Device not responding to setup address. |
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
./configure --disable-shared --host=arm-none-eabi --build=x86_64-linux-gnu CFLAGS=--specs=rdimon.specs CC=arm-none-eabi-gcc AS=arm-none-eabi-as |
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 lwjglTests.chart; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.SortedMap; | |
import java.util.TreeMap; | |
public class Scheduler { | |
private long time = 0; | |
private SortedMap<Long, List<Container>> schedulationMap = new TreeMap<>(); |
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 <stdint.h> | |
#include <stddef.h> | |
#include <stdio.h> | |
union double_to_uint64{ | |
double value; | |
union{ | |
uint64_t raw_double; | |
struct{ |
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
CC=arm-none-eabi-gcc | |
CFLAGS= -Wall -Wextra -Wpedantic -Wformat -std=c11 -O0 | |
LD=$(CC) | |
PROJECTNAME=Test_SPracingEVO | |
ODIR=build | |
LIBS= -I src -I lib/CMSIS -I lib/STM32F30x_StdPeriph_Driver/inc |
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
function findTangentPoint(xR, yR, xW1, yW1, xW2, yW2 ){ | |
if ( xW1 == xW2 ){ | |
console.log("same x " +yR +" "+ yW1+" "+ yW2); | |
return new Point(xW1, constrain(yR, yW1, yW2) ); | |
} | |
if ( yW1 == yW2 ){ | |
console.log("same y " +xR +" "+ xW1+" "+ xW2); | |
return new Point(constrain(xR, xW1, xW2), yW1); | |
} |
OlderNewer