Skip to content

Instantly share code, notes, and snippets.

# palettegen.rb
# Copyright 2008 Michael Yacavone, myacavone at gmail.com
# Released under the MIT license ("do whatever you want")
# http://www.opensource.org/licenses/mit-license.php
# Would love to receive improvement patches!
# Version 1.0
# February 18, 2007
# Version 1.1
## defn main
.text
.globl main
main:
## frame 32 20 64 80
pushl %ebp
movl %esp,%ebp
subl $72,%esp
movl $2,%eax
movl %eax,32(%esp)
strace ./eval
execve("./eval", ["./eval"], [/* 87 vars */]) = 0
[ Process PID=23363 runs in 32 bit mode. ]
brk(0) = 0x8e9b000
uname({sys="Linux", node="t530", ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xfffffffff7789000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=228057, ...}) = 0
mmap2(NULL, 228057, PROT_READ, MAP_PRIVATE, 3, 0) = 0xfffffffff7751000
@maximvl
maximvl / gist:a0716e2814db0c0256f6
Created March 8, 2015 18:39
red 050 fails to start repl
./red-050
*** Driver Internal Error: Script Error : Cannot use lesser? on date! value
*** Where: run-console
*** Near: [if any [
not exists? exe
(modified? exe) < modified? bin
] [
console: %environment/console/
write script read-cache console/console.red
write temp-dir/help.red read-cache console/help.red
REBOL [title: "Video"]
url: http://cam.luzern.org/axis-cgi/jpg/image.cgi?resolution=320x240
view layout [
image 640x480 rate 0 feel [
engage: func [f a e] [
if a = 'time [
f/image: load url
show f
]
]
picture: to-image layout [
backcolor white
h1 "More GUI Examples:"
box red 500x2
bar: progress
slider 200x16 [bar/data: value show bar]
area "Type here"
drop-down
across
toggle "Click" "Here" [print value]
>> probe extract svv/vid-styles 2
[face blank-face
IMAGE
BACKDROP
BACKTILE
BOX
BAR
SENSOR
KEY
BASE-TEXT
~/dev/erl $ erl -pa .
Eshell V6.3 (abort with ^G)
1> maybe:start_link().
{ok,<0.34.0>}
2> maybe:unlift(5).
{error,badarg}
3> N = maybe:nothing().
#Ref<0.0.0.32>
4> maybe:unlift(N).
nothing
#------------------------------------------------------------------------------
# Modified Calculate-core 3.1.9.3
# Processed template files:
# /var/lib/layman/calculate/profiles/templates/3.1/3_ac_install_live/1-live/sys-apps/portage/make.conf
# For modify this file, create /etc/make.conf.clt template.
#------------------------------------------------------------------------------
#-------------------
# Basic build option
#-------------------
[blocks B ] x11-libs/libXi[abi_x86_32(-)] ("x11-libs/libXi[abi_x86_32(-)]" is blocking app-emulation/emul-linux-x86-xlibs-20140508)
[blocks B ] x11-libs/libXp[abi_x86_32(-)] ("x11-libs/libXp[abi_x86_32(-)]" is blocking app-emulation/emul-linux-x86-xlibs-20140508)
[blocks B ] x11-libs/libXtst[abi_x86_32(-)] ("x11-libs/libXtst[abi_x86_32(-)]" is blocking app-emulation/emul-linux-x86-xlibs-20140508)
[blocks B ] x11-libs/libXt[abi_x86_32(-)] ("x11-libs/libXt[abi_x86_32(-)]" is blocking app-emulation/emul-linux-x86-xlibs-20140508)
[blocks B ] media-libs/glu[abi_x86_32(-)] ("media-libs/glu[abi_x86_32(-)]" is blocking app-emulation/emul-linux-x86-opengl-20140508)
[blocks B ] app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)] ("app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]" is blocking media-libs/flac-1.3.1-r1, media-sound/musepack-tools-465-r1, media-libs/libsndfile-1.0.25-r1, media-libs/libvorbis-1.3.4, media-sound/mpg123-1.18.1, media-libs/libogg-1.3.1, media-sound/gsm-1.