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
| BasedOnStyle: LLVM | |
| BreakBeforeBraces: Linux | |
| UseTab: Always | |
| IndentWidth: 4 | |
| TabWidth: 4 | |
| LineEnding: LF | |
| AllowShortBlocksOnASingleLine: 'false' | |
| AllowShortCaseLabelsOnASingleLine: 'false' | |
| AllowShortIfStatementsOnASingleLine: Never |
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
| func! s:init_groups_from_colors() | |
| let colors = [ 'red', 'green', 'blue', 'magenta', 'NONE', 'darkred', 'darkblue', 'darkgreen', 'darkmagenta', 'darkcyan' ] | |
| for ci in range(len(colors)) | |
| let cmd = 'highlight column%d ctermfg=%s guifg=%s' | |
| exe printf(cmd, ci, colors[ci], colors[ci]) | |
| let cmd = 'highlight escaped_column%d ctermfg=%s guifg=%s' | |
| exe printf(cmd, ci, colors[ci], colors[ci]) | |
| endfor | |
| endfunc |
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
| function [] = animated_perlin(min, max, segments, duration, options) | |
| %% ANIMATED_PERLIN | |
| % SYNTAX | |
| % animated_perlin(min, max, segments, duration, Name, Value, ...) | |
| % | |
| % INPUTS: | |
| % MIN Lower bound on data range in the X and Y dimensions. | |
| % | |
| % MAX Upper bound on data range in the X and Y dimensions. | |
| % |
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
| ; Day 17: No Such Thing as Too Much | |
| ; https://adventofcode.com/2015/day/17 | |
| ; https://adventofcode.com/2015/day/17/input | |
| (defun get-lines (filename) | |
| (with-open-file (stream filename) | |
| (loop :for line = (read-line stream nil nil) | |
| :while line |
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
| #!/usr/bin/gcl -f | |
| ; set random state | |
| (setf *random-state* (make-random-state t)) | |
| (defun read-lines (stream) | |
| (loop :for line = (read-line stream nil nil) | |
| :while (and line (> (length line) 0)) | |
| :collect line)) |
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
| ; | |
| ; rndlong.asm - demo routine to generate a random 64-bit value (long) in x86 assembly | |
| ; | |
| ; The algorithm was drawn from tempname.c in the glibc source. Relevant files: | |
| ; https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/posix/tempname.c;h=ff38f1e31fe36af8852ad7670cf9b547f40b36de;hb=HEAD | |
| ; https://sourceware.org/git/?p=glibc.git;a=blob;f=include/random-bits.h;h=077b46736cda38353078316de1890ac7a3a9874a;hb=HEAD | |
| ; | |
| ; Building, Linking, and Running: | |
| ; | |
| ; $ nasm -felf64 rndlong.asm |
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
| #include <sourcemod> | |
| public Plugin pluginInfo = { | |
| name = "GFL Programming Application Submission Test", | |
| author = "Jake Grossman", | |
| description = "A simple plugin to demonstrate reasonable proficiency", | |
| version = "1.0", | |
| url = "https://jakergrossman.xyz" | |
| } |