- https://youtube-dl.org (still up, has executables and source)
- https://youtube-dl.org/latest
- https://web.archive.org/web/20201019113254/https://github.com/ytdl-org/youtube-dl/issues - snapshot of oficial repo before takedown, contains the issues and pull requests
import org.openrndr.application | |
import org.openrndr.draw.* | |
import org.openrndr.internal.Driver | |
import org.openrndr.math.Vector2 | |
import org.openrndr.math.Vector3 | |
import java.io.File | |
class ShaderToy(fsCode: String) { | |
companion object { | |
fun fromFile(pathname: String): ShaderToy { |
Your task in order to complete this Kata is to write a function which formats a duration, given as a number of seconds, in a human-friendly way.
The function must accept a non-negative integer. If it is zero, it just returns "now". Otherwise, the duration is expressed as a combination of years, days, hours, minutes and seconds.
It is much easier to understand with an example:
format_duration(62) # returns "1 minute and 2 seconds"
format_duration(3662) # returns "1 hour, 1 minute and 2 seconds"
import com.mojang.brigadier.CommandDispatcher | |
import com.mojang.brigadier.arguments.* | |
import com.mojang.brigadier.builder.ArgumentBuilder | |
import com.mojang.brigadier.builder.LiteralArgumentBuilder | |
import com.mojang.brigadier.builder.RequiredArgumentBuilder | |
import com.mojang.brigadier.context.CommandContext | |
@DslMarker | |
@Target(AnnotationTarget.TYPE) | |
annotation class BrigadierDsl |
suspend fun downloadFile(url: String, | |
downloadFile: File, | |
downloadProgressFun: (bytesRead: Long, contentLength: Long, isDone: Boolean) -> Unit) { | |
async(CommonPool) { | |
val request = with(Request.Builder()) { | |
url(url) | |
}.build() | |
val client = with(OkHttpClient.Builder()) { | |
addNetworkInterceptor { chain -> |
If you share this list, please use this link instead: https://lambdaurora.dev/optifine_alternatives
It may still be only a redirection link, but it will have a better web display of the list soon. And the list being on GitHub/GitHub pages improves load times.
The gist version of this list will stop being updated.
import java.util.ArrayList; | |
public class ColorNameLookup { | |
public class ColorName { | |
public int r,g,b; | |
public String name; | |
public ColorName(String name, int r, int g, int b) { | |
this.r = r; | |
this.g = g; |
Before Github supported SSL encryption for github pages sites, many people were using CloudFlare (CF) as their DNS provider and CDN proxy. CF allowed users to enable SSL encryption from the CDN end points/proxies to the end user. This was great and it allowed visitors to your website to connect with a secure connection between their browser and the cloudflare CDN box that was serving your content. However, with this setup one (significant) link in the chain remained unencrypted and
#----------------------------------------------------------------------- | |
# same-quad-list.txt: a list of same-quad IPs by owner w/DNS status | |
# | |
# The CIDR network is the largest contiguous/bit-boundary-aligned block | |
# that is allocated to that entity (actual allocated range may be larger) | |
# NOTE: some ranges not yet converted to CIDR. | |
# Updates welcome - leave comment and/or ping royce@techsolvency.com | |
#----------------------------------------------------------------------- | |
# For human efficiency, some records are repeated here as comments. | |
# |
Below are the Big O performance of common functions of different Java Collections. | |
List | Add | Remove | Get | Contains | Next | Data Structure | |
---------------------|------|--------|------|----------|------|--------------- | |
ArrayList | O(1) | O(n) | O(1) | O(n) | O(1) | Array | |
LinkedList | O(1) | O(1) | O(n) | O(n) | O(1) | Linked List | |
CopyOnWriteArrayList | O(n) | O(n) | O(1) | O(n) | O(1) | Array | |