Skip to content

Instantly share code, notes, and snippets.

View ciwik's full-sized avatar

Pavel Loginov ciwik

  • Raleigh, NC, USA
View GitHub Profile
@ciwik
ciwik / privacy_policy.html
Created June 11, 2024 18:50
privacy_policy.html
<style>
[data-custom-class='body'], [data-custom-class='body'] * {
background: transparent !important;
}
[data-custom-class='title'], [data-custom-class='title'] * {
font-family: Arial !important;
font-size: 26px !important;
color: #000000 !important;
}
[data-custom-class='subtitle'], [data-custom-class='subtitle'] * {
@ciwik
ciwik / map.js
Last active February 27, 2024 22:47
let map;
const silverStyle = [
{
elementType: "geometry",
stylers: [{ color: "#f5f5f5" }],
},
{
elementType: "labels.icon",
stylers: [{ visibility: "off" }],
@ciwik
ciwik / save_all_layers_as_files.jsx
Created May 21, 2019 14:20
Photoshop script used to save all drawing layers as separate files
#target photoshop
try
{
var doc = app.activeDocument;
var docName = doc.name.split('.')[0];
}
catch (e)
{
alert('Error');
@ciwik
ciwik / CalculateSizeOfAllSprites.cs
Last active May 21, 2019 14:50
Unity3D editor script used to calculate expected pixel size of all sprites in the scene (to set a single scale). Writes result to CSV file
using Extras.Extensions;
using System.IO;
using System.Text;
using UnityEditor;
using UnityEditor.SceneManagement;
using UnityEngine;
public static class CalculateSizeOfAllSprites
{
[MenuItem("Tools/Calculate size of all sprites")]