This file contains hidden or 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
// | |
// ImageMeter.cs | |
// Created by Alexey Kinev on 9 May 2015. | |
// | |
// No Rights Reserved | |
// http://creativecommons.org/publicdomain/zero/1.0/ | |
// | |
// Get image size by name in Xamarin.Forms for iOS and Android platforms. | |
// | |
using System; |
This file contains hidden or 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
// | |
// Avatar.cs | |
// Created by Alexey Kinev on 26 Feb 2015. | |
// | |
// Licensed under The MIT License (MIT) | |
// http://opensource.org/licenses/MIT | |
// | |
// Simple rounded avatar class example for Xamarin.Forms. | |
// | |
using System; |
This file contains hidden or 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
// | |
// TextMeter.cs | |
// Created by Alexey Kinev on 11 Feb 2015. | |
// | |
// Licensed under The MIT License (MIT) | |
// http://opensource.org/licenses/MIT | |
// | |
// Copyright (c) 2015 Alexey Kinev <[email protected]> | |
// | |
// Usage example: |
This file contains hidden or 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
/* | |
Add image by link plugin for Imperavi Redactor v10.x.x | |
Updated: January 21, 2015 | |
Copyright (c) 2015, Alexey Kinev | |
License: The MIT License (MIT) http://opensource.org/licenses/MIT | |
Usage: | |
$('#redactor').redactor({ | |
imageUpload: false, |
This file contains hidden or 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
// | |
// Badge.cs | |
// Created by Alexey Kinev on 19 Jan 2015. | |
// | |
// Licensed under The MIT License (MIT) | |
// http://opensource.org/licenses/MIT | |
// | |
// Copyright (c) 2015 Alexey Kinev <[email protected]> | |
// | |
using System; |
This file contains hidden or 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
// | |
// Countdown.cs | |
// Created by Alexey Kinev on 11 Jan 2015. | |
// | |
// Licensed under The MIT License (MIT) | |
// http://opensource.org/licenses/MIT | |
// | |
// Copyright (c) 2015 Alexey Kinev <[email protected]> | |
// | |
using System; |
This file contains hidden or 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
#!/usr/bin/env python | |
import os | |
import sys | |
print(sys.executable) | |
def resize_images_in_path(path, out_dir, imagemagic=False): | |
"""Build 2x and 1x downsized images by 3x images in directory.""" | |
dirs = os.listdir(path) |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
# | |
# No Rights Reserved | |
# http://creativecommons.org/publicdomain/zero/1.0/ | |
"""Merge Tumblr blogs helper. | |
Load posts from one ("old") blog and copy them to another ("new") one. | |
The script also tries to prevent duplicates if it will run multiple | |
times. |
This file contains hidden or 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
# No Rights Reserved | |
# http://creativecommons.org/publicdomain/zero/1.0/ | |
"""Simple message queue demo on Redis LPUSH / BRPOP for Python 3.3+ and asyncio. | |
See also "Pattern: Reliable queue" at http://redis.io/commands/rpoplpush to get | |
an idea for improvement. | |
""" | |
import asyncio | |
import aioredis |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
# | |
# No Rights Reserved | |
# http://creativecommons.org/publicdomain/zero/1.0/ | |
""" | |
Simple client for PowerDNS.net service API. | |
""" | |
from suds.client import Client as BaseClient |