Skip to content

Instantly share code, notes, and snippets.

View halirutan's full-sized avatar

Patrick Scheibe halirutan

  • Neurophysics Dep. at Max Planck Institute for Human Cognitive and Brain Sciences
  • Leipzig, Germany
View GitHub Profile
@halirutan
halirutan / TestInspection.java
Last active November 24, 2016 23:30
Shows how that a ComboBox cannot ititially be set to enabled(false) in LocalInspection
/*
* Copyright (c) 2016 Patrick Scheibe
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
@halirutan
halirutan / ValidateMathematicaInstallation.m
Created November 22, 2016 05:34
Tries to validate a Mathematica installation and extract version and other information
ClearAll[parseRevisionFile, parseInfoPlist, findKernel,
findAddOnPackages, findJLinkJar];
validateMathematicaInstallation::err = "`` could not validate ``";
abort[f_,
arg_] := (Message[validateMathematicaInstallation::err, f, arg];
Abort[]);
parseRevisionFile[path_ /; FileExistsQ[path]] :=
With[{
// ==UserScript==
// @name Select Code Block Buttons
// @namespace stackoverflow
// @include *stackoverflow.com*
// @include *stackexchange.com*
// ==/UserScript==
(function ()
{
function with_jquery(f)