Skip to content

Instantly share code, notes, and snippets.

View vadim8kiselev's full-sized avatar

Vadim Kiselev vadim8kiselev

View GitHub Profile
import math
from operator import mul
from decimal import getcontext, Decimal
getcontext().prec = 20
varianta = 9
accuracy = Decimal(0.00000001)
interval = xrange(1, 6)
import math
from operator import mul
from decimal import getcontext, Decimal
getcontext().prec = 100
varianta = 9
accuracy = Decimal(0.00000001)
interval = xrange(1, 6)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
namespace LINQ
{
public static class ArrayExtensions
{
'''
Photo downloader
'''
import json
import urllib2
from urllib import urlencode
import os
rules = {'0':'profile', '00':'wall', '000':'saved', '0000':'graffiti'}
@vadim8kiselev
vadim8kiselev / earth.py
Last active July 8, 2020 00:33
Himawari 8 - Earth photos downloading
'''
Himawari 8 - Earth
Usage: python earth.py 2 10
First argument: quality of photo
Second argument: count of downloaded photos (default 1)
'''
from datetime import datetime, timedelta
from math import sqrt
#!/usr/bin/python
"""
Command manager for gigaspace service
"""
import sys
import argparse
sys.path.append('/isodenv/scripts')
from deployer_lib import *
parser = argparse.ArgumentParser()