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() |
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
''' | |
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
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
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
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
package main.graph.command.impl; | |
import main.graph.Graph; | |
import main.graph.command.Executor; | |
import main.graph.vertex.unweight.Vertex; | |
import java.util.*; | |
public class FindMaxStreamByFordFulkersonAlgorithm implements Executor { |
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
package com.company; | |
public class Main { | |
private static final int V = 100; | |
private static final double begin = 0; | |
private static final double end = V; | |
private static final int countPartitions = 15; | |
private static final double part = (end - begin) / (countPartitions - 1); |
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
/** | |
* @author Vadim Kiselev | |
* @version 1.0 | |
* @since 04/07/2017 | |
*/ | |
public class Main { | |
public static void main(String[] args) { | |
} | |
} |
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
package vadim; | |
import com.fasterxml.jackson.databind.ObjectMapper; | |
import java.io.File; | |
import java.io.IOException; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
import java.util.Map; |
OlderNewer