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 time | |
import udsoncan | |
from udsoncan.connections import IsoTPSocketConnection | |
from udsoncan.client import Client | |
from udsoncan.services import ReadDataByIdentifier | |
interface = "can0" | |
txid = 0x6C5 | |
rxid = txid + 0x10 |
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/env python3 | |
import os | |
import sys | |
if len(sys.argv) != 2: | |
print("expect exactly one argument: filename to commands") | |
sys.exit(1) | |
filename = sys.argv[1] |
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
{"lastUpload":"2021-05-11T16:56:26.202Z","extensionVersion":"v3.4.3"} |
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
// ============================================================================ | |
// gzstream, C++ iostream classes wrapping the zlib compression library. | |
// Copyright (C) 2001 Deepak Bandyopadhyay, Lutz Kettner | |
// | |
// This library is free software; you can redistribute it and/or | |
// modify it under the terms of the GNU Lesser General Public | |
// License as published by the Free Software Foundation; either | |
// version 2.1 of the License, or (at your option) any later version. | |
// | |
// This library is distributed in the hope that it will be useful, |
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 "SAT.hpp" | |
/// Constructs an random K-SAT instance | |
SAT::SAT(int N, int M, int k, std::mt19937 &rng) | |
: clauses(M), | |
N(N), | |
M(M), | |
k(k) | |
{ | |
std::uniform_int_distribution<int> uniform(1, N); |
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 "Logging.hpp" | |
bool Logger::quiet = false; ///< Log only to file or also to stdout | |
int Logger::verbosity = 0; ///< global verbosity level to use | |
std::string Logger::logfilename = ""; ///< Filename to write the messenges to | |
Logger::Logger(log_level_t level, std::string file, int line, std::string function) | |
: level(level), | |
ss(), | |
file(file), |
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
<!doctype html> | |
<div> | |
<h1>jsnake</h1> | |
<canvas id="jsnake"></canvas> | |
<p> | |
Steer with WSAD and have some fun! | |
</p> |
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
__pycache__ |
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
// ============================================================================ | |
// gzstream, C++ iostream classes wrapping the zlib compression library. | |
// Copyright (C) 2001 Deepak Bandyopadhyay, Lutz Kettner | |
// | |
// This library is free software; you can redistribute it and/or | |
// modify it under the terms of the GNU Lesser General Public | |
// License as published by the Free Software Foundation; either | |
// version 2.1 of the License, or (at your option) any later version. | |
// | |
// This library is distributed in the hope that it will be useful, |
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/env python3 | |
import sys | |
from random import random | |
import networkx as nx | |
def updateAliveNeighbors(G, changedNodes, alive_neighbors): | |
for n in set(changedNodes): | |
alive_neighbors[n] = 0 |
NewerOlder