Skip to content

Instantly share code, notes, and snippets.

#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))];
}
--[[ 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
function love.conf(t)
t.window.fullscreen = true
t.window.vsync = false
end
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)
#!/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"'
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
24
30
44
31
47
32
45
33
13
34
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>
global type Statistic = record
enum Types
'allEated'
'maxEnergy'
'minEnergy'
'midEnergy'
"cells"
"iterations"
#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;