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
simplify_mat(d::Dict{ASCIIString, Any}) = Dict{Symbol, Any}( [ symbol(string(k)) => simplify_mat(v) for (k,v) in d ] ) | |
simplify_mat(arr::Array{Float64,2}) = arr[:] # slicing??? | |
simplify_mat(o::Any) = o |
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
xr = 0:0.5:2π | |
plot( xr, sin(xr) ) | |
plot( xr[1:end-1], diff(sin(xr)) ./ diff(xr) ) |
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
# Tested on VERSION => v"0.4.0-dev+5879" | |
macro data(data) _json(data) end | |
macro json(data) _json(data) end | |
function _json(data::Any) | |
data | |
end | |
function _json(data::Expr) | |
if data.head === :cell1d |
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
spctl --add /Path/To/Application.app |
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
git checkout [-f|--ours|--theirs|-m|--conflict=<style>] [<tree-ish>] [--] <paths>... | |
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
Verifying that +elcritch is my blockchain ID. https://onename.com/elcritch |
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
LWin::LCtrl | |
RWin::RCtrl | |
^!r:: | |
MsgBox, AutoHotKey reloaded! | |
Reload | |
return | |
^+]:: |
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
function codify() { | |
$('span.out:contains("{"):not(.json-parsed)').each(function() { | |
var text = $(this).ignore().text(); | |
var nodes = $(this).find("*").clone(); | |
var res = text.replace(/(\{.+\})/, function (x) { | |
var s = '</span><code class="lang-json">'; | |
s += "" + x + ""; | |
s += '</code><br><span class="non-code">'; | |
return s ; | |
}); |
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
function codify() { | |
$('span:contains("{")').each(function() { | |
var text = $(this).ignore().text(); | |
var nodes = $(this).find("*").clone(); | |
var res = text.replace(/(\{.+\})/, function (x) { | |
var s = '</span><code class="lang-json">'; | |
s += "" + x + ""; | |
s += '</code><br><span class="non-code">'; | |
return '<span class="non-code">' + s + '</span>'; |
OlderNewer