This file contains 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
// | |
// Analytic.swift | |
// YouDrive | |
// | |
// Created by Anton Ilinykh on 27.06.2022. | |
// | |
import Foundation | |
enum Event: String { |
This file contains 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
// let str = readLine(strippingNewline: true)! | |
// let arr = str.split(separator: " ") | |
// print(Int64(arr[0])! + Int64(arr[1])!) | |
// import Foundation | |
// var text = try! String(contentsOfFile: "input.txt") | |
// _ = text.popLast() | |
// let arr = text.split(separator: " ") | |
// try! "\(Int64(arr[0])! + Int64(arr[1])!)".write(to: URL(fileURLWithPath: "output.txt"), atomically: true, encoding: .utf8) |
This file contains 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
from os import walk, path, rename | |
import re | |
def main(): | |
for (_, _, filenames) in walk('.'): | |
for file in filenames: | |
if file.endswith('.png'): | |
name = re.sub('\-Arb', '_RTL', file) | |
rename(file, name) |
This file contains 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
source 'https://rubygems.org' do | |
# Gems here | |
gem 'rmagick' | |
end |
This file contains 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
// ==UserScript== | |
// @name Recon Helper | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1.2 | |
// @description Simplify portal approving! | |
// @author Anthony Ilinykh | |
// @match https://opr.ingress.com/recon | |
// @grant none | |
// @updateURL https://gist.github.com/ailinykh/6125126a337f7b911ee5498da18cacb4/raw/recon_helper.user.js | |
// ==/UserScript== |
This file contains 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
123456 | |
123456789 | |
qwerty | |
111111 | |
1234567 | |
666666 | |
12345678 | |
7777777 | |
123321 | |
0 |
This file contains 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 | |
# | |
# Usage: ./video_to_gif.sh video.mp4 | |
# | |
TARGET_FILE=$1 | |
if [[ -z $TARGET_FILE ]]; then | |
echo "usage: video_to_gif.sh <target_file>" | |
echo "\ttarget_file - video file to convert into gif" | |
exit 1 |
This file contains 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
// ==UserScript== | |
// @name Yandex Direct Remover | |
// @namespace https://gist.github.com | |
// @version 0.3.9 | |
// @description Remove yandex direct ad from all pages! | |
// @author Anthony Ilinykh | |
// @match *://*/* | |
// @grant none | |
// @updateURL https://gist.github.com/ailinykh/18f95f08ac8cf3111e79c9b204a84cc6/raw/no-direct.user.js | |
// ==/UserScript== |
This file contains 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
[ | |
{ | |
"id": 1, | |
"title": "Карл-Бургер", | |
"description": "Фирменный бургер с говяжьей котлетой, беконом и луковым джемом.", | |
"price": 220, | |
"image_url": "http://deliverywiget.iiko.ru/Content/User/65cc66cc-c04e-11e5-80c3-d8d385655247/20abce00-85f2-45c3-a034-4da16724c373_Medium_.png" | |
}, | |
{ | |
"id": 2, |
This file contains 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
try { | |
doc = app.activeDocument; | |
if (doc == null) | |
{ | |
throw "Something is wrong with the current active document. Make sure it's a valid PSD file."; | |
} | |
var fileName = prompt("Enter file name please", doc.name); |
NewerOlder