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
% Defines a macro for showing mass spectra | |
\usepackage{options} | |
\usepackage{environ} | |
\usepackage{pgfmath} | |
\usepackage{pgfplotstable} | |
\options{ | |
/MassSpectrum/.new family, | |
/MassSpectrum/dim/width/.new length = 0.9\textwidth, | |
/MassSpectrum/dim/height/.new length = 8cm, |
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 abstract class UntypedVariable{ | |
public abstract object ValueUntyped { get; } | |
} | |
public class UntypedVariable<T> : UntypedVariable { | |
private T Value; | |
public override object ValueUntyped{ get { return Value; } } | |
public UntypedVariable( T New ){ |
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
using System; | |
using System.Collections.Generic; | |
namespace ChatLibrary | |
{ | |
public static class Command | |
{ | |
public delegate void Callback(List<string> arguments); | |
private static Dictionary<string, Callback> Commands = new Dictionary<string, Callback>(); |
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
--[[ | |
Virtual functions - Lua | |
]] | |
local vfunc = { } | |
function PromiseVirtualFunction( sFunctionName ) | |
return function( ... ) | |
if (vfunc[sFunctionName]) return vfunc[sFunctionName]( ... ) end | |
error( string.format( "Promised function %s was nil", sFunctionName ) ) |
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 "library.cpp" | |
#include <iostream> | |
int main() { | |
std::cout << "Start of program" << std::endl; | |
typedef int(*myfunc)(int); | |
JLib::Library MyLibrary("xyz"); |
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
local PRE = 1 | |
local TEST = 2 | |
local GREY = Color(200,200,200) | |
local PASS = Color(150,200,000) | |
local FAIL = Color(200,000,000) | |
local threads_to_reboot = { } |
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
--[[ | |
SprayLoader - Load images from websites | |
]] | |
SprayLoader = {}; | |
SprayLoader.Cache = {}; | |
SprayLoader.WaitingList = {}; | |
SprayLoader.Panels = {}; | |
SprayLoader.LoadURL = "localhost/solarpower/index.php?p=image&s="; |
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
if ( CLIENT ) then | |
if ( CameraControler ) then return end | |
CameraControler = {} | |
CameraControler.Cameras = {} | |
CameraControler.Selected = 0 | |
function CameraControler.SelectCamera( cameraID ) | |
if ( CameraControler.CameraExists( cameraID ) ) then |
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
<?php | |
abstract class RSSGenerator{ | |
/** The RSS Feed information */ | |
protected $title; | |
protected $link; | |
protected $description; | |
protected $language; | |