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
Program received signal SIGSEGV, Segmentation fault. | |
0x00007ffff7cdef98 in ?? () from /lib/x86_64-linux-gnu/libc.so.6 | |
(gdb) bt | |
#0 0x00007ffff7cdef98 in ?? () from /lib/x86_64-linux-gnu/libc.so.6 | |
#1 0x00007ffff7ce1c98 in ?? () from /lib/x86_64-linux-gnu/libc.so.6 | |
#2 0x00007ffff7ce2f25 in ?? () from /lib/x86_64-linux-gnu/libc.so.6 | |
#3 0x00007ffff7ce3f8f in realloc () from /lib/x86_64-linux-gnu/libc.so.6 | |
#4 0x000055555557f73e in l_alloc (ud=0x0, ptr=0x5555555a28c0, osize=544, nsize=1536) at lauxlib.c:1009 | |
#5 0x000055555556974d in luaM_realloc_ (L=0x5555555a2268, block=0x5555555a28c0, osize=544, nsize=1536) at lmem.c:166 | |
#6 0x0000555555562b47 in luaD_reallocstack (L=0x5555555a2268, newsize=96, raiseerror=1) at ldo.c:187 |
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 this, and turn on prettify-symbols-mode in a buffer | |
;; Isn't easy to disable in mmm-mode, though | |
(add-hook | |
'lua-mode-hook | |
(lambda () | |
(setq prettify-symbols-alist | |
'( | |
("function" . 955) | |
("local" . 8466) | |
("==" . 8801) |
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
var page = require('webpage').create(); | |
page.open("simple.html", function (status) { | |
if (status !== "success") | |
{ | |
console.log("Unable to load"); | |
phantom.exit(1); | |
} | |
else | |
{ | |
page.render("simple.png"); |
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
-- Demonstration of how a reference to an already finalized object | |
-- can be constructed entirely from Lua. Compatible with Lua 5.1..5.3. | |
-- Helper to create a value calling a specific callback when it is GCd. | |
local gc_handler | |
if newproxy then | |
gc_handler=function (callback) | |
local ret=newproxy(true) | |
getmetatable(ret).__gc=callback |