Skip to content

Instantly share code, notes, and snippets.

View Kiryous's full-sized avatar
🗺️
On a sabbatical

Kirill Chernakov Kiryous

🗺️
On a sabbatical
View GitHub Profile
@Kiryous
Kiryous / itunesicon.rb
Last active January 13, 2020 13:37 — forked from ttscoff/itunesicon.rb
Retrieve a 512 x 512px icon for an iOS app
#!/usr/bin/ruby
# encoding: utf-8
#
# Updated 2017-10-25:
# - Defaults to large size (512)
# - If ImageMagick is installed:
# - rounds the corners (copped from @bradjasper, https://github.com/bradjasper/Download-iTunes-Icon/blob/master/itunesicon.rb)
# - replace original with rounded version, converting to png if necessary
#
# Retrieve an iOS app icon at the highest available resolution
wget -qO- https://raw.githubusercontent.com/Jigsaw-Code/outline-server/master/src/server_manager/install_scripts/install_server.sh | bash
class Task:
def __init__(self, title, depencies):
self.title = title
self.__depencies = depencies
def execute(self):
plan = []
if self.__depencies:
plan += self.__depencies
for dep in self.__depencies:
@Kiryous
Kiryous / jquery.scrolldepth-settings.js
Created April 26, 2016 12:28
jquery.scrolldepth-settings.js
function send2carrot(str) {
// Отправляет данные в CarrotQuest
var eventName = str.eventAction + " " + str.eventLabel;
if (pages.length > 1) eventName = currentPage + " / " + eventName;
carrotquest.track(eventName, {
action: str.eventAction,
trigger: str.eventLabel,