Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
👨‍🔬🖥

Anthony Wang anthony-wang

💭
👨‍🔬🖥
View GitHub Profile
View axis-doc.jl
@example axis
using Makie
scene = Scene(resolution = (500, 500))
aviz = axis(linspace(0, 2, 4), linspace(0, 2, 4))
center!(scene)
save("axis2d.png", scene); nothing # hide
![](axis2d.png)
View library.jl
@cell "Axis 2D" [axis] begin
scene = Scene(@resolution)
aviz = axis(linspace(0, 2, 4), linspace(0, 2, 4))
center!(scene)
end
View axis.md

Axis

The axis is just a scene object, making it easy to manipulate and share between plots.

axis

@library_ref[example] "Axis 2D"

@anthony-wang
anthony-wang / software_for_scientists.md
Created Mar 21, 2018 — forked from stared/software_for_scientists.md
Software for scientists: community-edited list of general-purpose software for scientists.
View software_for_scientists.md

Software for scientists

Some things takes much less time and stress once you know the right tool. Below, there is a community edited list of software for scientists.

Text editors

in General purpose text/code editors. It may be better to have a good editor for everything, than different ones for different languages, scripts, notes.

@anthony-wang
anthony-wang / LaTeXScaleBars.md
Created Jul 1, 2017 — forked from rbnvrw/LaTeXScaleBars.md
Adding scalebars to images in LaTeX
View LaTeXScaleBars.md

Scalebar with background

Scalebar with background

To change the backgroundcolor, adjust the scalebgcolor variable to use the desired color. Add the following code to your preamble:

\usepackage{tikz}
\usepackage[usenames, dvipsnames]{color}
\definecolor{scalebgcolor}{rgb}{0.08,0.52,0.80}
@anthony-wang
anthony-wang / changeDPIto420.sh
Created Jan 28, 2017
Script - Change OnePlus One DPI to 420
View changeDPIto420.sh
#!/sbin/sh
#
# /system/addon.d/changeDPIto420.sh
#
# Copyright Anthony Wang, 2016
#
# This script is based on http://forum.xda-developers.com/google-nexus-5/help/help-script-to-lcd-density-t2862245
# the original code of which is "sed -i 's/density=480/density=420/g' /system/build.prop;"
# but has been improved in this current script.
# The "sed" command: https://www.gnu.org/software/sed/manual/sed.txt