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}
#!/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 |
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.
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.
@cell "Axis 2D" [axis] begin | |
scene = Scene(@resolution) | |
aviz = axis(linspace(0, 2, 4), linspace(0, 2, 4)) | |
center!(scene) | |
end |
@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) |
custom_replacements = Dict{Regex, Function}( | |
r"@fetch_sample_from_database: \"(.*)\"" => function (match)::String | |
database_key = match.captures[1] | |
source = find_source(global_database, database_key) | |
# return a String with any markdown accepted by Documenter: | |
""" | |
```@example | |
$source | |
``` | |
""" |
using Documenter | |
using Documenter: Selectors, Expanders, Markdown | |
using Documenter.Markdown: Link, Paragraph | |
struct DatabaseLookup <: Expanders.ExpanderPipeline end | |
Selectors.order(::Type{DatabaseLookup}) = 0.5 | |
Selectors.matcher(::Type{DatabaseLookup}, node, page, doc) = false | |
match_kw(x::String) = ismatch(r"\@library\[example\] \"(.*)\"", x) | |
match_kw(x::Paragraph) = any(match_kw, x.content) |
This is code to convert a string to a type based on discussions here:
https://groups.google.com/d/msg/julia-dev/q9lG55PMdlc/C3IRKbKXcpoJ
type UnsupportedType
end
is_valid_type_ex(s::Symbol) = true
is_valid_type_ex(x::Int) = true
This is code to convert a string to a type based on discussions here:
https://groups.google.com/d/msg/julia-dev/q9lG55PMdlc/C3IRKbKXcpoJ
type UnsupportedType
end
is_valid_type_ex(s::Symbol) = true
is_valid_type_ex(x::Int) = true