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
global helvede_kernel_long_mode | |
global gdb_synchronization_breakpoint | |
section .text | |
bits 64 | |
helvede_kernel_long_mode: | |
cli | |
call call_helvede_kernel_main | |
jmp permanent_halt |
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
full_name = ARGV[0] | |
puts "Input: #{full_name}" | |
raise "Provide name without file extension or the mmpz file" if /\.(mp3|ogg|wav)\z/ === full_name | |
name = full_name.sub(/\.mmpz\z/, "") | |
puts "MP3: #{name}.mp3" | |
puts "OGG: #{name}.ogg" |
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
> cat CMakeFiles/CMakeError.log Determining if files soundcard.h exist failed with the following output: | |
Change Dir: /home/ragmaanir/applications/lmms/build/CMakeFiles/CMakeTmp | |
Run Build Command:"/usr/bin/make" "cmTC_e7912/fast" | |
/usr/bin/make -f CMakeFiles/cmTC_e7912.dir/build.make CMakeFiles/cmTC_e7912.dir/build | |
make[1]: Entering directory '/home/ragmaanir/applications/lmms/build/CMakeFiles/CMakeTmp' | |
Building C object CMakeFiles/cmTC_e7912.dir/CheckIncludeFiles.c.o | |
/usr/bin/cc -o CMakeFiles/cmTC_e7912.dir/CheckIncludeFiles.c.o -c /home/ragmaanir/applications/lmms/build/CMakeFiles/CMakeTmp/CheckIncludeFiles.c | |
/home/ragmaanir/applications/lmms/build/CMakeFiles/CMakeTmp/CheckIncludeFiles.c:2:23: fatal error: soundcard.h: No such file or directory |
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
SELECT | |
IF user_id IS NULL THEN | |
INSERT INTO scores(issue_id, user_id, group_id, value, created_at, updated_at) | |
VALUES($1, NULL, $3, $4, $5, $6) | |
ON CONFLICT(issue_id, group_id) DO UPDATE | |
SET value = $4, updated_at = $6 | |
ELSE | |
INSERT INTO scores(issue_id, user_id, group_id, value, created_at, updated_at) | |
VALUES($1, $2, NULL, $4, $5, $6) | |
ON CONFLICT(issue_id, user_id) DO UPDATE |
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
# flatten a tuple literal | |
macro flatten_tuple(t) | |
{% | |
queue = [] of ASTNode | |
res = [] of ASTNode | |
%} | |
{% for e in t %} | |
{% queue << e %} | |
{% end %} | |
{% for e in queue %} |
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
puts `crystal eval "#{ARGV[0]}"` |
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
pr = Process.new("echo tests; sleep 20", output: true, error: true) | |
puts pr.pid |
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
I, [2016-03-16 21:44:20 +0100 #7146] INFO -- : stylus | |
I, [2016-03-16 21:44:20 +0100 #7146] INFO -- : server | |
Invalid memory access (signal 11) at address 0x7f05532d9000 | |
[4388389] *CallStack::print_backtrace:Int32 +117 | |
[4365976] __crystal_sigfault_handler +56 | |
[4517304] sigfault_handler +40 | |
[139660930896704] ??? | |
[4619738] GC_push_all_eager +94 | |
[4455361] *Fiber#push_gc_roots<Fiber>:Void +17 | |
[4365742] ~proc( -> Nil) +126 |
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
rm -r output | |
mkdir -p output/objects | |
mkdir -p output/image/boot/grub | |
ldc2 -de -enable-asserts -enable-color -enable-preconditions -disable-red-zone -enable-contracts -nogc -w -m64 -boundscheck=off -relocation-model=pic -c source/kernel.d -c source/types.d -c source/string.d -c source/vga_terminal.d -odoutput/objects | |
nasm -f elf64 source/boot_header.asm -o output/objects/boot_header.o && | |
nasm -f elf64 source/boot.asm -o output/objects/boot.o && | |
ld -nostdlib -nodefaultlibs -n -o output/image/boot/kernel.bin -T source/linker.ld output/objects/boot_header.o output/objects/boot.o output/objects/kernel.o output/objects/string.o output/objects/vga_terminal.o output/objects/types.o && | |
cp source/grub.cfg output/image/boot/grub/ && | |
grub-mkrescue -o output/image.iso output/image |
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
module X | |
C = 1 | |
end | |
describe 'Test' do | |
include X | |
it '...' do | |
p C | |
end | |
end |
NewerOlder