Dobry zbiór dokumentów, tutoriali i kodu związanego głównie z grafiką (okolice demosceny).
demoscene and more
useful maths
2011. distance estimation to implicits
2011. useful little functions
2010. inverse bilinear interpolation
2010. trigonometric tricks
2009. distance to an ellipse
2008. fourier series
2008. patched sphere
2008. sphere visibility
2008. on fm synthesis
2006. working with ellipses
2006. sphere ambient occlusion
2006. thinking with quaternions
fractals/complex dynamics
2002. introduction to the Mandelbrot set
2006. the symmetry of the Mandelbrot set
2006. the main bulb of the Mandelbrot set
2006. the period-2 bulb of the Mandelbrot set
2006. area of the main bulb of the Mandelbrot set
...
Prosty test, który działa niepoprawnie pod ubuntu.
gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 #include <future>; #include <iostream>; int foo() { sleep( 5 ); return 42; } int main() { std::future<int>; result = std::async(std::launch::async, foo ); std::cout << result.get() << std::endl; std::cin.get(); return 0; } Wykonanie kończy się przez core dump. Pod gdb na razie widać tyle:
...
SRC: Samiux’s Blog: HOWTO : nVidia CUDA Toolkit 4.0 on Ubuntu 11.04 Desktop
HOWTO : nVidia CUDA Toolkit 4.0 on Ubuntu 11.04 Desktop
The CUDA Toolkit 4.0 is released on May 2011. If you have nVidia display card that have several CUDAs on it, you will interested in this tutorial. This time, I would like to show you how to install CUDA Toolkit 4.0 on Ubuntu 11.04 Desktop.
You will experience a more faster desktop after the installation of CUDA Toolkit 4.0. Meanwhile, if you installed SMPlayer, you can playback 1080p videos with the help of vdpau.
...
Batch file for a new post in Hugo
@echo off for /f "tokens=2 delims==" %%a in ('wmic OS Get localdatetime /value') do set datetime=%%a set year=%datetime:~0,4% set month=%datetime:~4,2% set day=%datetime:~6,2% setlocal enabledelayedexpansion set "filename=%1" shift :concat if "%1"=="" goto end set "filename=!filename!-%1" shift goto concat :end set filename=%year%-%month%-%day%-!filename!.md hugo new -k post posts/!filename! subl "content\posts\!filename!" And the archetype for post:
--- title: "{{ replace (substr .Name 11) "-" " " | title }}" date: {{ .Date }} draft: true ---