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
// ==UserScript== | |
// @name Select Code Block Buttons | |
// @namespace stackoverflow | |
// @include *stackoverflow.com* | |
// @include *stackexchange.com* | |
// ==/UserScript== | |
(function () | |
{ | |
function with_jquery(f) |
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
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[{ |
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
/* | |
* 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 |
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/local/java/jdk1.8.0_111/bin/java -ea -Xbootclasspath/a:/usr/local/IntelliJ/idea-IC-163.7743.44/lib/boot.jar -Didea.load.plugins.id=de.halirutan.mathematica -Didea.home.path=/home/patrick/.IdeaIC2016.3/system/plugins-sandbox/test -Didea.plugins.path=/home/patrick/.IdeaIC2016.3/system/plugins-sandbox/plugins -Didea.launcher.port=7533 -Didea.launcher.bin.path=/usr/local/IntelliJ/idea-IC-163.7743.44/bin -Dfile.encoding=UTF-8 -classpath /usr/local/IntelliJ/idea-IC-163.7743.44/lib/idea_rt.jar:/usr/local/IntelliJ/idea-IC-163.7743.44/plugins/junit/lib/junit-rt.jar:/usr/local/IntelliJ/idea-IC-163.7743.44/lib/bcprov-jdk15on-155.jar:/usr/local/IntelliJ/idea-IC-163.7743.44/lib/jsch.agentproxy.usocket-jna.jar:/usr/local/IntelliJ/idea-IC-163.7743.44/lib/jgoodies-common-1.2.1.jar:/usr/local/IntelliJ/idea-IC-163.7743.44/lib/kotlin-runtime.jar:/usr/local/IntelliJ/idea-IC-163.7743.44/lib/jsch.agentproxy.sshagent.jar:/usr/local/IntelliJ/idea-IC-163.7743.44/lib/extensions.jar:/usr/local/IntelliJ/idea-IC-163.7743.44/lib/java |
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> | |
#include <stdlib.h> | |
#include <sys/stat.h> | |
#include "WolframLibrary.h" | |
#ifdef _WIN32 | |
#include <windows.h> | |
void PortableSleep(int timems) | |
{ | |
Sleep(timems); |
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 BenchmarkTools | |
function canonical(t::Vector{Int64}) | |
n = length(t) | |
sortcols(cat(2, | |
(circshift(t,x) for x=0:(n-1))..., | |
(circshift(reverse(t), x) for x=0:(n-1))... | |
) | |
)[:,1] | |
end |
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 de.halirutan.kotlin | |
import java.awt.Color | |
import java.awt.Image | |
import java.awt.image.BufferedImage | |
import javax.swing.ImageIcon | |
import javax.swing.JFrame | |
import javax.swing.JLabel | |
import javax.swing.JPanel |
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 "WolframLibrary.h" | |
#include "julia.h" | |
DLLEXPORT mint WolframLibrary_getVersion() { | |
return WolframLibraryVersion; | |
} | |
DLLEXPORT int WolframLibrary_initialize(WolframLibraryData libData) { | |
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
/* | |
* Copyright (c) 2013 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 |
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
(* Content-type: application/vnd.wolfram.mathematica *) | |
(*** Wolfram Notebook File ***) | |
(* http://www.wolfram.com/nb *) | |
(* CreatedBy='Mathematica 11.3' *) | |
(*CacheID: 234*) | |
(* Internal cache information: | |
NotebookFileLineBreakTest |
OlderNewer