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
import math | |
from operator import mul | |
from decimal import getcontext, Decimal | |
getcontext().prec = 20 | |
varianta = 9 | |
accuracy = Decimal(0.00000001) | |
interval = xrange(1, 6) |
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
import math | |
from operator import mul | |
from decimal import getcontext, Decimal | |
getcontext().prec = 100 | |
varianta = 9 | |
accuracy = Decimal(0.00000001) | |
interval = xrange(1, 6) |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Diagnostics; | |
namespace LINQ | |
{ | |
public static class ArrayExtensions | |
{ |
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
''' | |
Photo downloader | |
''' | |
import json | |
import urllib2 | |
from urllib import urlencode | |
import os | |
rules = {'0':'profile', '00':'wall', '000':'saved', '0000':'graffiti'} |
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
''' | |
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 |
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
#!/usr/bin/python | |
""" | |
Command manager for gigaspace service | |
""" | |
import sys | |
import argparse | |
sys.path.append('/isodenv/scripts') | |
from deployer_lib import * | |
parser = argparse.ArgumentParser() |
NewerOlder