title | date |
---|---|
Подключение к Cloud.mail.ru с помощью WebDAV эмулятора в Убунту 20.04 |
2020-10-16 |
Инструкцию для Убунту 18.04 см. здесь.
title | date |
---|---|
Подключение к Cloud.mail.ru с помощью WebDAV эмулятора в Убунту 20.04 |
2020-10-16 |
Инструкцию для Убунту 18.04 см. здесь.
class MinMaxHeap(object): | |
""" | |
Implementation of a Min-max heap following Atkinson, Sack, Santoro, and | |
Strothotte (1986): https://doi.org/10.1145/6617.6621 | |
""" | |
def __init__(self, reserve=0): | |
self.a = [None] * reserve | |
self.size = 0 | |
def __len__(self): |
/* | |
* Minimal .NET Forth implementation. Just an experiment. Do not use for anything serious. | |
* by Tycho Luyben (https://github.com/tluyben) | |
* | |
* The only 'primitive' (built-in) is an foreign function interface word which allows you to define | |
* whatever is needed, for example: | |
* | |
* hello System.String System.Console.WriteLine ffi | |
* | |
* will print hello. |
package net.hang321.http.client; | |
import java.io.IOException; | |
import java.net.InetSocketAddress; | |
import java.net.Socket; | |
import java.net.URI; | |
import java.util.LinkedHashSet; | |
import java.util.Set; | |
import org.slf4j.Logger; |
if (BuildConfig.DEBUG) { | |
httpclient.interceptors().add(new LoggingInterceptor()); | |
} | |
public class LoggingInterceptor implements Interceptor { | |
@Override | |
public Response intercept(Chain chain) throws IOException { | |
Request request = chain.request(); | |
long t1 = System.nanoTime(); |
import java.time.format.DateTimeFormatter; | |
import java.time.Instant; | |
import java.time.ZonedDateTime; | |
import java.time.ZoneId; | |
import java.time.ZoneOffset; | |
Instant.now(); | |
// java.time.Instant = 2015-08-13T09:28:27.141Z | |
DateTimeFormatter.ISO_INSTANT.format(Instant.now()); |
import com.typesafe.config.Config; | |
import com.typesafe.config.ConfigFactory; | |
import org.springframework.beans.factory.config.AbstractFactoryBean; | |
import java.util.Properties; | |
import akka.actor.ActorSystem; | |
/** |
import java.io.FileDescriptor; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.OutputStream; | |
import java.io.PrintStream; | |
public class HelloWorld{ | |
private static HelloWorld instance; | |
public static void main(String[] args){ | |
instantiateHelloWorldMainClassAndRun(); |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
# delete local tag '12345' | |
git tag -d 12345 | |
# delete remote tag '12345' (eg, GitHub version too) | |
git push origin :refs/tags/12345 | |
# alternative approach | |
git push --delete origin tagName | |
git tag -d tagName |