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 <stdio.h> | |
| #include <string.h> | |
| void encryptDecrypt(char *input, char *output) { | |
| char key[] = {'K', 'C', 'Q'}; //Can be any chars, and any size array | |
| int i; | |
| for(i = 0; i < strlen(input); i++) { | |
| output[i] = input[i] ^ key[i % (sizeof(key)/sizeof(char))]; | |
| } |
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
| --[[ LICENSE | |
| -- Following is the MIT license as found on | |
| -- http://www.opensource.org/licenses/mit-license.php . | |
| Copyright (c) 2013 Bart van Strien | |
| Permission is hereby granted, free of charge, to any person obtaining | |
| a copy of this software and associated documentation files (the | |
| "Software"), to deal in the Software without restriction, including | |
| without limitation the rights to use, copy, modify, merge, publish, | |
| distribute, sublicense, and/or sell copies of the Software, and to | |
| permit persons to whom the Software is furnished to do so, subject to |
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 love.conf(t) | |
| t.window.fullscreen = true | |
| t.window.vsync = false | |
| end |
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
| local socket = require "socket" | |
| local conn = socket.connect("127.0.0.1", "6666") | |
| local mpack = require "mpack" | |
| local packer = mpack.Packer() | |
| local unpacker = mpack.Unpacker() | |
| --local inspect = require "inspect" | |
| if conn then | |
| conn:settimeout(0.1) |
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/env bash | |
| #/opt/android-sdk/tools/bin/sdkmanager --licenses | |
| VERSION_CODE="1" | |
| VERSION_NAME='"0.5"' | |
| APPLICATION_ID='"org.zerosoft.sri.android"' | |
| #PACKAGE='"org.love2d.android.executable"' | |
| PACKAGE='"org.zerosoft.sri.executable"' | |
| LABEL='"Yantrascop"' |
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
| local old_SetColor = love.graphics.setColor | |
| love.graphics.setColor = function(...) | |
| local args = {...} | |
| if #args == 1 and type(args[1]) == "table" then | |
| c = {} | |
| for k, v in pairs(args[1]) do | |
| c[k] = v / 255 | |
| end | |
| old_SetColor(unpack(c)) | |
| else |
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
| 24 | |
| 30 | |
| 44 | |
| 31 | |
| 47 | |
| 32 | |
| 45 | |
| 33 | |
| 13 | |
| 34 |
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
| map <F2> :w<CR> | |
| map <C-F2> :wall<CR> | |
| map <C-S-Right> :clast<CR><ESC> | |
| map <C-S-Left> :cfirst<CR><ESC> | |
| map <C-S-Up> :cprevious<CR><ESC> | |
| map <C-S-Down> :cnext<CR><ESC> | |
| "work not in some terminals | |
| nmap <C-S-k> :cprevious<CR><ESC> |
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 type Statistic = record | |
| enum Types | |
| 'allEated' | |
| 'maxEnergy' | |
| 'minEnergy' | |
| 'midEnergy' | |
| "cells" | |
| "iterations" |
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 <SDL2/SDL.h> | |
| #include <SDL2/SDL_events.h> | |
| #include <SDL2/SDL_keycode.h> | |
| #include <SDL2/SDL_rect.h> | |
| #include <SDL2/SDL_render.h> | |
| #include <stdbool.h> | |
| #include <stdlib.h> | |
| #include <assert.h> | |
| const int SCREEN_WIDTH = 1920; |