First you must install the relevant programs with:
sudo pacman -S vim sbcl
You can now use Vim to program and run Lisp programs. To run a Lisp program simply do the follwing in your terminal:
sbcl --load /path/to/program
| :: ================================================================ | |
| :: BATCH SCRIPT FOR AUTOMATED PHOTOGRAMMETRY TRACKING WORKFLOW | |
| :: By polyfjord - https://youtube.com/polyfjord | |
| :: ================================================================ | |
| :: USAGE | |
| :: • Double-click this .bat or run it from a command prompt. | |
| :: • Frames are extracted, features matched, and a sparse | |
| :: reconstruction is produced automatically. | |
| :: • Videos that have already been processed are skipped on | |
| :: subsequent runs. |
| #include <stdio.h> | |
| #include <stdbool.h> | |
| #include "SDL2/SDL.h" | |
| #include "SDL2/SDL_syswm.h" | |
| #include "bgfx/c99/bgfx.h" | |
| const int SCREEN_WIDTH = 640; | |
| const int SCREEN_HEIGHT = 480; | |
| int |
First you must install the relevant programs with:
sudo pacman -S vim sbcl
You can now use Vim to program and run Lisp programs. To run a Lisp program simply do the follwing in your terminal:
sbcl --load /path/to/program
| test/coverage/ |
By default, Rails applications build URLs based on the primary key -- the id column from the database. Imagine we have a Person model and associated controller. We have a person record for Bob Martin that has id number 6. The URL for his show page would be:
/people/6
But, for aesthetic or SEO purposes, we want Bob's name in the URL. The last segment, the 6 here, is called the "slug". Let's look at a few ways to implement better slugs.