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
// | |
// HyperShortcuts.h | |
// Created by Alexey Kinyov on 27/04/2014. | |
// | |
// The MIT License (MIT) | |
// | |
// Copyright (c) 2013 Alexey Kinyov <[email protected]> | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal |
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/ | |
"""Agnostic minimal session based cart for Django. | |
Just copy-n-paste this snippet to your project. | |
See `Cart` class reference below for details. |
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/ | |
""" | |
Flask-Admin simple helpers | |
========================== | |
Just copy and paste to some of your helpers or base classes module, import and use. | |
You'll also need to install Flask-Login for using authentication. |
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 |
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/ | |
"""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
#!/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
// | |
// 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
// | |
// 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
/* | |
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, |