ffmpeg -i *.webm -bsf:v vp9_metadata=color_range=tv -c copy *.webm
Add \date{}
to share/jupyter/nbconvert/templates/latex/base.text.j2
anywhere before /maketitle
(e.g. before the title
block)
If you want to control it using the notebook metadata, add this instead:
((* if nb.metadata.get('nodate', false) *))
\date{}
((* endif *))
Code Puns
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
echo "export GPG_TTY=$(tty)" >> ~/.zshrc | |
echo "pinentry-program $(which pinentry-curses)" >> ~/.gnupg/gpg-agent.conf | |
killall gpg-agent | |
source ~/.zshrc | |
echo test | gpg --clearsign |
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 java.util.ArrayList; | |
import java.util.List; | |
import java.util.Spliterator; | |
import java.util.function.Consumer; | |
import java.util.stream.Stream; | |
import java.util.stream.StreamSupport; | |
| |
public class ChunkSpliterator<T> implements Spliterator<List<T>> | |
{ | |
|
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 | |
import "fmt" | |
const ( | |
A int8 = 1 << iota | |
B | |
C | |
) |
- create an lightsail OS Only Ubuntu instance
- turn on port forwarding of UDP
- set static ip
- ssh into the instance
- create and cd to /minecraft directory
- wget and unzip the latest bedrock server for ubuntu (https://www.minecraft.net/en-us/download/server/bedrock)
- create a
run.sh
(chmod 755) script with the following code:
#!/bin/bash
LD_LIBRARY_PATH=. ./bedrock_server
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 | |
import ( | |
"fmt" | |
"unicode" | |
"golang.org/x/text/runes" | |
"golang.org/x/text/transform" | |
"golang.org/x/text/unicode/norm" | |
) |
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 java.util.concurrent.ExecutionException; | |
import java.util.concurrent.Phaser; | |
public class FutureValue<T> { | |
private T value = null; | |
private Exception ex = null; | |
private Phaser phaser = new Phaser(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
/** | |
* N-Queens is the problem to plane N chess queens into a NxN board without | |
* in a way that no queen threats another one. | |
* This implementation uses recursion and backtracking to find the solution. | |
*/ | |
public class NQueens { | |
/** | |
* Tries to place N queens into an NxN chess board | |
* |
NewerOlder