This file contains hidden or 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
#ifndef arc_console_h__ | |
#define arc_console_h__ | |
#include <time.h> | |
#include <sys/time.h> | |
#include <stdio.h> | |
#include <limits.h> | |
#define ENABLE_ARC_CONSOLE (1) |
This file contains hidden or 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
@echo off | |
echo Select an operation: | |
echo 1. Set global proxy | |
echo 2. Unset global proxy | |
echo 3. Show current proxy settings | |
echo 4. Exit | |
set /p choice=Please enter the option number and press Enter: | |
if "%choice%"=="1" ( |
This file contains hidden or 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/bash | |
# 1. Run cyclictest | |
sudo cyclictest -l ${1-10000} -m -Sp99 --policy=fifo -h ${2-400} -q >output | |
# 2. Get maximum latency | |
max=`grep "Max Latencies" output | tr " " "\n" | sort -n | tail -1 | sed s/^0*//` | |
# 3. Grep data lines, remove empty lines and create a common field separator | |
grep -v -e "^#" -e "^$" output | tr " " "\t" >histogram |
This file contains hidden or 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
public string CurrentVersion | |
{ | |
get | |
{ | |
Assembly assembly = Assembly.GetExecutingAssembly(); | |
FileVersionInfo fileVersionInfo = FileVersionInfo.GetVersionInfo(assembly.Location); | |
return fileVersionInfo.ProductVersion; | |
} | |
} |
This file contains hidden or 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
public class Result | |
{ | |
public Result(int i_sample_len) | |
{ | |
Array.Resize(ref x_hz, i_sample_len); | |
Array.Resize(ref y_magnitude, i_sample_len); | |
} | |
public double[] x_hz; | |
public double[] y_magnitude; |
This file contains hidden or 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 "FastestGaussianBlur.h" | |
#define _USE_MATH_DEFINES | |
#include <math.h> | |
#include <stdio.h> | |
#include <omp.h> | |
#define min(X, Y) (((X) < (Y)) ? (X) : (Y)) | |
#define max(X, Y) (((X) > (Y)) ? (X) : (Y)) |