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
| /* ftg_core.h - v0.5 - Frogtoss Toolbox. Public domain-like license below. | |
| ftg libraries are copyright (C) 2015 Frogtoss Games, Inc. | |
| http://github.com/mlabbe/ftg_toolbox | |
| ftg header files are single file header files intended to be useful | |
| in C/C++. ftg_core contains generally useful functions | |
| Special thanks to STB for the inspiration. |
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
| dev = true | |
| ent_list = {} | |
| types = {} | |
| cam={0,0} -- world top-left | |
| -- | |
| -- helpers | |
| -- | |
| function get_player(n) |
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
| #!/bin/bash | |
| # | |
| # Roaming security group by Michael Labbe | |
| # @frogtoss | |
| # | |
| # security group id | |
| GROUP_ID="sg-xxx" |
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
| (use-package cc-mode | |
| :defer t | |
| :init | |
| (add-hook 'before-save-hook #'clang-format-buffer-smart) | |
| :config | |
| (progn | |
| (defun clang-format-buffer-smart() | |
| "Reformat buffer only if .clang-format exists in the projectile root." | |
| (when (file-exists-p (expand-file-name ".clang-format" (projectile-project-root))) | |
| (clang-format-buffer))) |
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
| /* | |
| simple rust calculator | |
| add_op := '+' | '-' | |
| mul_op := '*' | '/' | |
| digits := {'+' | '-'} [0..9] {[0..9]} | |
| expr := term {add_op term} | |
| term := factor {mul_op factor} | |
| factor := digits | '(' expr ')' |
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
| typedef union { | |
| struct tuple_s { char a; short b; long long c; }tuple; | |
| uint64_t _all[sizeof(struct tuple_s)/sizeof(uint64_t)]; | |
| }zero_tuple_u; | |
| int main() { | |
| zero_tuple_u t = {._all = {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
| export INSTALLDIR=$HOME/dev/node/local # or wherever | |
| mkdir -p $INSTALLDIR | |
| # Put these lines in your .bashrc | |
| export PATH=$INSTALLDIR/bin:$PATH | |
| export MANPATH=$INSTALLDIR/share/man | |
| git clone https://github.com/nodejs/node | |
| cd node |
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
| /* | |
| simple calculator implemented via recursive descent | |
| add_op := + | - | |
| mul_op := * | / | |
| digits := {+|-} [0..9] {[0..9]} | |
| expr := term {add_op term} | |
| term := factor {mul_op factor} |
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
| /* clang-format off */ | |
| /* ftg_core.h - v0.6 - Frogtoss Toolbox. Public domain-like license below. | |
| ftg libraries are copyright (C) 2015-2021 Frogtoss Games, Inc. | |
| http://github.com/mlabbe/ftg_toolbox | |
| ftg header files are single file header files intended to be useful | |
| in C/C++. ftg_core contains generally useful functions | |
| Special thanks to STB for the inspiration. |
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
| [Desktop Entry] | |
| encoding=utf-8 | |
| Exec=/usr/local/bin/emacsclient -c | |
| Icon=/usr/share/app-install/icons/_usr_share_emacs_21.4_etc_gnu-32x32.xpm | |
| Type=Application | |
| Terminal=false | |
| Comment=Emacs Client | |
| Name=Emacs Client | |
| GenericName=emacsclient | |
| StartupNotify=false |