mode | repeats | impl | results |
---|---|---|---|
uniq | 1 | rust | real 0.17 |
uniq | 1 | rust | user 0.15 |
uniq | 1 | rust | sys 0.01 |
uniq | 1 | rust | 39809024 maximum resident set size |
uniq | 1 | cpp | real 0.37 |
uniq | 1 | cpp | user 0.35 |
uniq | 1 | cpp | sys 0.01 |
uniq | 1 | cpp | 19337216 maximum resident set size |
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
# some symbols used in this config require custom fonts or additional software | |
# for nerd font symobls see: https://www.nerdfonts.com/cheat-sheet | |
# for Apple SF symbols (macOS only) see: https://developer.apple.com/sf-symbols/ | |
# Don't print a new line at the start of the prompt | |
add_newline = false | |
format = """\ | |
$username\ | |
$hostname\ |
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
# Don't print a new line at the start of the prompt | |
add_newline = false | |
# for nerd font symobls see: https://www.nerdfonts.com/cheat-sheet | |
format = """\ | |
$username\ | |
$hostname\ | |
$directory\ | |
$read_only\ |
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
#colo for a complete reference, visit | |
# https://github.com/Macchina-CLI/macchina/wiki/Theme-Documentation | |
hide_ascii = true | |
prefer_small_ascii = true | |
spacing = 1 | |
padding = 0 | |
separator = "❯" | |
key_color = "Magenta" | |
separator_color = "LightMagenta" |
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
<meta charset="utf-8" emacsmode="-*- markdown -*"> | |
**Surface Area of a Cup with a Straight Outer Edge** | |
Let's say our cup is defined by the following parameters: | |
\begin{align*} | |
r=\,&\text{radius of the top of the cup}\\ | |
b=\,&\text{height of the cup}\\ | |
B=\,&\text{angle of the sloped side of the cup}\\ | |
\end{align*} |
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
# Example mailcap file for Terminal UI for Reddit | |
# https://gitlab.com/ajak/tuir/ | |
# | |
# Copy the contents of this file to {HOME}/.mailcap, or point to it using $MAILCAPS | |
# Then launch TUIR using the --enable-media flag. All shell commands defined in | |
# this file depend on external programs that must be installed on your system. | |
# | |
# HELP REQUESTED! If you come up with your own commands (especially for OS X) | |
# and would like to share, please post an issue on the GitHub tracker and we | |
# can get them added to this file as references. |
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
#!/usr/bin/env python3 | |
from itertools import chain | |
from itertools import combinations | |
import numpy as np | |
def distances(sentence, window=3, scale=True): | |
"""Compute a dictionary mapping combinations of pairs of words in the sentence to their normalized distances. | |
s1 = 'A B X B'.split() |
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
$ curl -sX POST -H "X-RosetteAPI-Key: $ROSETTE_USER_KEY" -H "Content-Type: application/json" -H "Accept: application/json" -d '{"content":"Salesforce.com, Inc. is an American cloud-based software company headquartered in San Francisco."}' 'https://api.rosette.com/rest/v1/entities?output=rosette' | jq . | |
{ | |
"version": "1.1.0", | |
"data": "Salesforce.com, Inc. is an American cloud-based software company headquartered in San Francisco.", | |
"attributes": { | |
"scriptRegion": { | |
"type": "list", | |
"itemType": "scriptRegion", | |
"items": [ | |
{ |
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
#!/usr/bin/env python3 | |
"""Produce visual, HTML diffs of two files""" | |
from argparse import ArgumentError, FileType | |
from difflib import HtmlDiff | |
def load(filename): | |
with open(filename, mode='r') as f: | |
for line in f: |
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
abdomen | |
abdomens | |
abduct | |
abducting | |
abduction | |
abductions | |
abductor | |
abductors | |
abducts | |
abe |
NewerOlder