sudo -i
pacman -Rdd ttf-liberation
rm /usr/share/calibre/fonts/liberation/Liberation*.ttf
This file contains hidden or 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
fun sort(array: Array<Int>): Array<Int> { | |
when { | |
array.size == 1 -> { | |
return array | |
} | |
array.size <= 2 -> { | |
val left = array[0] | |
val right = array[1] | |
return if (right < left) { | |
arrayOf(right, left) |
This file contains hidden or 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
git shortlog -sn --no-merges | cut -f 2 > CONTRIBUTORS |
This file contains hidden or 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 ( | |
"github.com/gin-contrib/cors" | |
"github.com/gin-gonic/gin" | |
"os" | |
) | |
func main() { | |
gin.SetMode(gin.ReleaseMode) |
This file contains hidden or 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
ff=$1 | |
llc -filetype=obj $ff.ll | |
clang $ff.o -o $ff |
This file contains hidden or 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
ПУБЛИЧЕН ЛИЦЕНЗ НА ЕВРОПЕЙСКИЯ СЪЮЗ версия 1.2 | |
EUPL © Европейски съюз 2007, 2016 | |
Настоящият публичен лиценз на Европейския съюз (EUPL) се прилага към | |
произведението (както е определено по-долу), което се предоставя при условията | |
на този лиценз. Всяко ползване на произведението, различно от това, което е | |
позволено от настоящия лиценз, e забранено (до степента, в която такова ползване | |
е предмет на правата на притежателя на авторското право върху произведението). | |
Произведението се предоставя при условията на настоящия лиценз, когато |
This file contains hidden or 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
[ | |
[ | |
{ | |
"a": 7, | |
"fa": [ | |
6 | |
], | |
"w": 1.25 | |
}, | |
"Tab", |
My preferred code style is 2-space K&R. This is intended to provide a justification for this style.
K&R style has the following properties:
- Provides symmetric size (in terms of screen space consumed) between the opening and closing syntax of a clode block.
- Forces no empty/meaningless lines, thereby avoiding artificial distance between related things that should be together.
- Consumes the minimum vertical space while keeping the opening and closing syntax of the block on separate lines from the content.
This file contains hidden or 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
#!/bin/bash | |
# This uses gpg to encrypt every file in a directory as separate | |
# encrypted files | |
# Usage | |
# ./encrypt-all.sh ./dir-of-files-to-encrypt "PASSPHRASE" | |
FILES="$1" | |
PASSPHRASE="$2" |
NewerOlder