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
void func(); | |
int main() { | |
func(); | |
return 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Newtonsoft.Json; | |
namespace TransportProto | |
{ | |
public class JsonComand |
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
using System; | |
using System.IO.Ports; | |
using System.Runtime.CompilerServices; | |
using System.Threading; | |
using NLog; | |
public class OptrisTemperature | |
{ | |
private Logger logger | |
{ |
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 main | |
import ( | |
"context" | |
"database/sql" | |
"log" | |
"net/http" | |
"github.com/graphql-go/graphql" | |
"github.com/graphql-go/handler" |
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 <atomic> | |
#include <memory> | |
template <typename T> | |
class LockFreeFIFO { | |
private: | |
struct Node { | |
std::shared_ptr<T> data; | |
Node* next; |
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 main | |
import ( | |
"fmt" | |
"time" | |
) | |
type MessageProcessor struct { | |
sendChannel chan<- string // Канал для отправки сообщений | |
receiveChannel <-chan string // Канал для приема сообщений |
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 cache | |
import ( | |
"context" | |
"database/sql" | |
"encoding/json" | |
"fmt" | |
"time" | |
"github.com/go-redis/redis/v8" |
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 main | |
import ( | |
"log" | |
"net/http" | |
"time" | |
"github.com/gin-gonic/gin" | |
"github.com/gorilla/websocket" | |
) |
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
from catboost import CatBoostClassifier | |
from dask_ml.model_selection import train_test_split | |
from dask.distributed import Client, wait | |
import dask.dataframe as dd | |
# Start a Dask cluster with multiple workers | |
client = Client(n_workers=4) | |
# Read the data into a Dask DataFrame | |
data = dd.read_csv('data.csv') |
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 <avr/io.h> | |
#include <avr/interrupt.h> | |
#define PIXEL_WIDTH 8 | |
#define IMAGE_WIDTH 640 | |
#define IMAGE_HEIGHT 480 | |
volatile uint8_t pixel_count = 0; | |
volatile uint8_t line_count = 0; | |
volatile uint8_t frame_count = 0; |
NewerOlder