Skip to content

Instantly share code, notes, and snippets.

View Shchvova's full-sized avatar

Vlad Svoka Shchvova

View GitHub Profile
@Shchvova
Shchvova / togif
Last active February 24, 2023 18:50
Screen recording to gif advanced
#!/bin/zsh
function help {
echo "Easily make gifs from screen recordings
> to install on macOS:
brew install imagemagick ffmpeg
sudo curl https://gist.githubusercontent.com/shchvova/4e8c24f35340166c515f7e8ae48b526f/raw/togif > /usrl/local/bin/togif
sudo chmod +x /usrl/local/bin/togif
> usage
@Shchvova
Shchvova / _readme.md
Last active April 11, 2022 21:27
Planets shader for Corona

#Corona planet shader v0.1#

Alt text

###Instructions###

  1. Download and unpack this gist into folder
  2. Add this assets two images and name them "red.jpg" and "[blue.jpg] (http://i.imgur.com/V3Tw97g.jpg)" in same folder (you will have to download and rename them)
  3. Open project in Corona Simulator 🤘
@Shchvova
Shchvova / Rules.md
Created March 2, 2021 18:28
Corona Forum rules

"With great power there must also come... great responsibility!" — Stan Lee

Last month we upgraded our forums. The new software has many new features and abilities that our old forums did not. This is a great thing, but in rare cases it leads to abuse of accepted online etiquette.

Forum rules are written with the hope that moderators will never have to enforce them. The problem is that forum rules are usually not all that visible and it's easy to forget them. So, we are posting them here as a reminder.

Without further delay, here are Corona Labs' official forum rules:

1. Be polite!

Posts may not include personal attacks or links to offensive or illegal material. Remember that we have members in various age groups, so keep things professional. Instead of posting an attack, post something positive that contributes to the conversation.

@Shchvova
Shchvova / build.sh
Last active September 29, 2020 19:35
Building `libevet` and/with `OpenSSL` for Apple Silicon
#!/usr/bin/env bash
set -e
set -x
mkdir libevent_ossl_build
cd libevent_ossl_build
ROOT="$(pwd)"
git clone git://git.openssl.org/openssl.git
cd openssl
@Shchvova
Shchvova / gist:62200d4835354d6cb15c010b8600f6fb
Last active July 2, 2020 18:23
Debug Corona/Solar2d build
reg ADD "HKEY_CURRENT_USER\Software\Ansca Corona\Corona Simulator\Preferences" /f /v debugBuildProcess /d 5
defaults write com.coronalabs.Corona_Simulator debugBuildProcess -int 5
@Shchvova
Shchvova / Appodeal.md
Created March 3, 2020 11:16
Appodeal Corona adapters
  • plugin.appodeal.beta.AdColony
    • com.appodeal.ads.sdk.networks:adcolony:2.6.0.2
  • plugin.appodeal.beta.AmazonAds
    • com.appodeal.ads.sdk.networks:amazon_ads:2.6.0.1
  • plugin.appodeal.beta.AppLovin
    • com.appodeal.ads.sdk.networks:applovin:2.6.0.2
  • plugin.appodeal.beta.Appnext
  • plugin.appodeal.beta.Chartboost
    • com.appodeal.ads.sdk.networks:chartboost:2.6.0.1
  • plugin.appodeal.beta.FacebookAudience
@Shchvova
Shchvova / build.settings
Last active March 11, 2019 22:30
WebkitSpeech
settings =
{
orientation =
{
default = "portrait",
supported = { "portrait", },
},
}
@Shchvova
Shchvova / minimize.sh
Last active November 5, 2018 02:06
Minimizing corona app to 2.8/3.6 MB
#!/bin/bash -e
DELETE_RES=0
while test $# -gt 0; do
case "$1" in
-h|--help)
echo "minimize.sh - repackage APK for minimal size"
echo " "
echo "./minimize.sh [--no-res|-n] <input.apk>"
@Shchvova
Shchvova / TolkPlugin.cpp
Last active October 2, 2018 06:21
Developing Windows Plugin
// TolkPlugin.cpp - simple Tolk wrapper for Corona SDK
#include "CoronaLua.h"
#include "CoronaMacros.h"
#include <windows.h>
#include "Tolk.h"
#pragma comment(lib, "tolk.lib")