Skip to content

Instantly share code, notes, and snippets.

View Alykoff's full-sized avatar

Gali Alykoff Alykoff

  • Prague
View GitHub Profile
@Alykoff
Alykoff / AppenderBase.java
Last active August 29, 2015 14:27
Is it normal???
/**
* Logback: the reliable, generic, fast and flexible logging framework.
* Copyright (C) 1999-2015, QOS.ch. All rights reserved.
*
* This program and the accompanying materials are dual-licensed under
* either the terms of the Eclipse Public License v1.0 as published by
* the Eclipse Foundation
*
* or (per the licensee's choosing)
*
@Alykoff
Alykoff / example_binary_search_tree.go
Last active August 29, 2015 14:27
go lang example binary search tree
package main
import (
"fmt"
"bufio"
"os"
)
type Comparable interface {
Less(other Comparable) bool
@Alykoff
Alykoff / rus_it_news
Created July 22, 2015 08:07
russian it news resourses
Tjournal.ru
Cnews.ru
Hi-Tech@Mail.Ru
3dnews.ru
Roem.ru
Tdaily.ru
Hi-News.ru
Habrahabr.ru
D-russia.ru
Securitylab.ru
import scala.math.random
// case class Point(x: Int, y: Int)
import scala.util.{Try, Success, Failure}
import scala.collection.mutable.ArrayBuffer
val input = for (i <- 0 to 40) yield (random, random)
var data = input ++: ArrayBuffer[(Double, Double)]()
// val input = List((1,2), (1,3), (1,125), (1,))
data = data.sortBy(x => (x._1, x._2))
docker ps -a | grep ago | awk '{print $1}' | xargs docker stop
docker ps -a | grep ago | awk '{print $1}' | xargs docker rm
docker images | grep one | awk '{print $3}' | xargs docker rmi
docker images -a | grep one | awk '{print $3}' | xargs docker rmi
docker ps -a | awk '{print $1}' | xargs docker stop
docker ps -a | awk '{print $1}' | xargs docker rm
docker images | awk '{print $3}' | xargs docker rmi
docker images -a | awk '{print $3}' | xargs docker rmi
package ru.megafon.rxjava.test;
import com.google.common.util.concurrent.*;
import rx.Observable;
import java.util.concurrent.*;
public class Main {
public static void main(String[] args) throws InterruptedException {
ListeningExecutorService pool = MoreExecutors.listeningDecorator(Executors.newFixedThreadPool(20));
package com.microsoft.hackaton;
import java.io.IOException;
import java.nio.charset.Charset;
import java.util.StringTokenizer;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;
@Alykoff
Alykoff / Prelude.hs
Last active December 30, 2015 12:39
Haskell Prelude.hs
{----------------------------------------------------------------------------
__ __ __ __ ____ ___ _______________________________________________
|| || || || || || ||__ Hugs 98: The Nottingham and Yale Haskell system
||___|| ||__|| ||__|| __|| Copyright (c) 1994-1999
||---|| ___|| World Wide Web: http://haskell.org/hugs
|| || Report bugs to: hugs-bugs@haskell.org
|| || Version: February 1999_______________________________________________
This is the Hugs 98 Standard Prelude, based very closely on the Standard
Prelude for Haskell 98.
class Stop(f: Double) {
}