Skip to content

Instantly share code, notes, and snippets.

@pao
pao / gist:5188ce10bfcbcd95f664c85ec88f4b08
Created February 22, 2017 23:32
Penrose Rhombs.ipynb
{
"cells": [
{
"cell_type": "code",
"execution_count": 110,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
@pao
pao / gist:3b1fb374f92f8a1e1e5f
Created April 28, 2015 02:44
junk backtraces
Exception: EXCEPTION_ACCESS_VIOLATION at 0x6bf96886 -- jl_interpret_toplevel_thunk_with at C:\Users\patrick\AppDat
a\Local\Julia-0.4.0-dev-b47d3d0\bin\libjulia.dll (unknown line)
jl_interpret_toplevel_thunk_with at C:\Users\patrick\AppData\Local\Julia-0.4.0-dev-b47d3d0\bin\libjulia.dll (unkno
wn line)
jl_interpret_toplevel_expr_in at C:\Users\patrick\AppData\Local\Julia-0.4.0-dev-b47d3d0\bin\libjulia.dll (unknown
line)
jl_interpret_toplevel_thunk_with at C:\Users\patrick\AppData\Local\Julia-0.4.0-dev-b47d3d0\bin\libjulia.dll (unkno
wn line)
jl_eval_with_compiler_p at C:\Users\patrick\AppData\Local\Julia-0.4.0-dev-b47d3d0\bin\libjulia.dll (unkn
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
(flycheck-define-checker julia-lint
"A Julia syntax checker using Lint.jl."
:command ("julia" "-e"
"using Lint; lintfile(ARGS[1])" source-inplace)
:error-patterns
((info line-start
(zero-or-more blank)
(file-name) " "
(one-or-more (not digit))
line " INFO" (one-or-more blank) (message) line-end)
@pao
pao / config.el
Last active November 16, 2016 11:09
One of my config.el files...
(setq w32-get-true-file-attributes nil)
(add-to-list 'load-path
(concat user-emacs-directory
(convert-standard-filename "personal/modules")))
(prelude-require-packages
'(nyan-mode
ag
clang-format
git fetch && git merge origin
remote: Counting objects: 198, done.
remote: Compressing objects: 100% (169/169), done.
remote: Total 198 (delta 111), reused 57 (delta 29)
Receiving objects: 100% (198/198), 252.37 KiB | 0 bytes/s, done.
Resolving deltas: 100% (111/111), done.
From git://github.com/JuliaLang/julia
43ef954..9299b25 master -> origin/master
+ 8a381ad...d35c7d9 arm-make3 -> origin/arm-make3 (forced update)
1393314..babd52d cjh/fix-7304 -> origin/cjh/fix-7304
@pao
pao / crash-2014-05-16_22.11.13-server.txt
Created May 17, 2014 04:08
Ag Skies 2.1.5 crash reports
---- Minecraft Crash Report ----
// You're mean.
Time: 5/16/14 10:11 PM
Description: Exception ticking world
java.lang.NoSuchMethodError: exaliquo.bridges.Mariculture.SkyFish.SkyFishDamsel.getRodNeeded()Lmariculture/api/fishery/EnumRodQuality;
at exaliquo.bridges.Mariculture.SkyFish.SkyFishDamsel.canCatch(SkyFishDamsel.java:30)
at mariculture.fishery.LootHandler.getFishForLocation(LootHandler.java:119)
at mariculture.fishery.LootHandler.getLoot(LootHandler.java:91)
@pao
pao / gist:8072640
Created December 21, 2013 17:58
Sample log output from a DumbBot instance
(dumbirc) PS C:\Users\patrick\dumbirc\src> python ..\Scripts\twistd.py -noy dumbirc.tac
2013-12-21 11:46:39-0600 [-] Log opened.
2013-12-21 11:46:39-0600 [-] twistd 13.2.0 (C:\Users\patrick\dumbirc\Scripts\python.exe 2.7.3) starting up.
2013-12-21 11:46:39-0600 [-] reactor class: twisted.internet.selectreactor.SelectReactor.
2013-12-21 11:46:39-0600 [-] Starting factory <dumbbot.DumbIRCFactory instance at 0x02C8C4E0>
2013-12-21 11:46:39-0600 [-] Starting factory <dumbbot.DumbIRCFactory instance at 0x02D29350>
2013-12-21 11:46:39-0600 [-] Starting factory <dumbbot.DumbIRCFactory instance at 0x02D293A0>
2013-12-21 11:46:39-0600 [Uninitialized] connectionMade
2013-12-21 11:46:39-0600 [Uninitialized] connectionMade
2013-12-21 11:46:39-0600 [DumbBot,client] signed on; joining channel #desertbus
@pao
pao / requirements.txt
Created May 27, 2013 18:05
JuliaDoc requirements.txt file.
-e git+https://github.com/JuliaLang/JuliaDoc.git#egg=JuliaDoc
@pao
pao / Code-Patterns.md
Created February 11, 2013 19:31
Former contents of Julia wiki page on code patterns.

Code Patterns in Julia

Climbing the type hierarchy

The base library of Julia contains a method which finds the element type of an array. This dispatch is fine for instances of AbstractArray or any of its children.

eltype{T,n}(::AbstractArray{T,n}) = T