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
alias ssh='ssh -YC' | |
alias ll='ls -lahG --color=auto' | |
alias gcb='git rev-parse --abbrev-ref HEAD' | |
alias ..="cd .." | |
alias ..2="cd ../.." | |
alias ..3="cd ../../.." | |
alias ..4="cd ../../../.." | |
alias ..5="cd ../../../../.." |
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
BeginPackage["SimpleJavaReloader`", {"JLink`"}]; | |
JCompileLoad::usage = | |
"JCompileLoad[javacode_,addToClassPath_] attempts to compile a Java \ | |
class defined by a string javacode, optionally adding to Java compiler classpath \ | |
files and folders from addToClassPath, and load the resulting class into | |
Mathematica"; | |
Begin["`Private`"] |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
quadrant = Switch[{#2[[1]]-#1[[1]], #2[[2]]-#1[[2]]}, | |
{_?Positive, _?Positive}, {1, 1}, | |
{_?Negative, _?Positive}, {-1, 1}, | |
{_?Positive, _?Negative}, {1, -1}, | |
_, {-1,-1} | |
] * Abs /@ {#2[[1]]-#1[[1]], #2[[1]]-#1[[1]]}&; | |
julia = Compile[{{z,_Complex}}, | |
Length[FixedPointList[Tan[#^3+2.0625+0.15 I]&, z, 250, SameTest->(Abs[#]>2&)]], | |
RuntimeAttributes->{Listable}, Parallelization->True, CompilationTarget->"C" |