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/rdmd | |
module kaleidic.apps.cli.syncoid; | |
import std.stdio; | |
import std.datetime; | |
import std.socket: hostName; | |
import std.getopt; | |
enum SanoidVersion = "1.4.16"; |
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> | |
struct Foo | |
{ | |
double a; | |
void *p; | |
}; | |
extern "C" Foo foo2(Foo foo, double a, double b, double c) | |
{ |
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 core.stdc.config; | |
import core.stdc.stdarg: va_list; | |
struct struct___locale_data { int dummy; } | |
typedef unsigned char __u_char; | |
typedef unsigned short int __u_short; | |
typedef unsigned int __u_int; | |
typedef unsigned long int __u_long; |
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.Dynamic; | |
using System.Runtime.InteropServices; | |
namespace Symmetry.Xenon.Model.Marshalling | |
{ | |
/** | |
* Base for Marshallers which need a buffer and a size - basically for wrapping binary data. | |
*/ | |
public abstract class CharArrayMarshaller : DualAllocationMarshaller |
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 bash | |
# Loads and mounts an ISO over SMB via the | |
# SuperMicro IPMI web interface | |
# | |
# usage: supermicro-mount-iso.sh <ipmi-host> <smb-host> <path> | |
# e.g.: supermicro-mount-iso.sh 10.0.0.1 10.0.0.2 '\foo\bar\windows.iso' | |
set -x |
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/bash | |
# Root Check | |
if [ $(whoami) != 'root' ]; then | |
echo "ERROR: Must be root to run $0" | |
exit 1; | |
fi | |
TRUSTED_PORTS=( swp1 swp3 ) |
C++ using Mark Joshi's library
LPXLFOPER EXCEL_EXPORT xlStats(LPXLFOPER inTargetRange) {
EXCEL_BEGIN;
XlfOper xlTargetRange(inTargetRange);
// Temporary variables.
double averageTmp = 0.0;
double varianceTmp = 0.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
ALL | |
All messages in the mailbox; the default initial key for | |
ANDing. | |
ANSWERED | |
Messages with the \Answered flag set. | |
BCC | |
Messages that contain the specified string in the envelope | |
structure's BCC field. |
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 io.kaleidic.main; | |
import com.opengamma.strata.basics.index.IborIndex; | |
import com.opengamma.strata.basics.index.IborIndices; | |
import com.opengamma.strata.product.fra.Fra; | |
import com.opengamma.strata.product.fra.FraTrade; | |
import com.opengamma.strata.product.TradeInfoBuilder; | |
import com.opengamma.strata.product.AttributeType; | |
class Main { | |
public native FraTrade foo(Fra.Builder builder); |