sudo tlmgr option repository ctan
sudo tlmgr update --self
sudo tlmgr install latexindent
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 org.example; | |
import java.io.IOException; | |
import org.apache.lucene.analysis.standard.StandardAnalyzer; | |
import org.apache.lucene.document.Document; | |
import org.apache.lucene.document.Field; | |
import org.apache.lucene.document.StringField; | |
import org.apache.lucene.document.TextField; | |
import org.apache.lucene.index.DirectoryReader; | |
import org.apache.lucene.index.IndexWriter; |
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 streamlit as st | |
from elasticsearch import Elasticsearch | |
def main(): | |
st.title("Streamlit ES Viewer") | |
with st.form("my_form", clear_on_submit=False): | |
keyword = st.text_input("keyword", "Python") | |
title_weight = st.number_input( | |
label="title weight", value=1.0, min_value=0.0, max_value=5.0, step=0.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
#!/bin/bash | |
BASE_DIR="/path/to/imagenet/train" | |
ALL_DIRS=`ls $BASE_DIR | grep -v .tar | grep -v .sh` | |
total_size=0 | |
total_count=0 | |
for dir in $ALL_DIRS | |
do | |
target_dir="${BASE_DIR}/${dir}" |
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
#!/bin/bash | |
rank=`python get_mpi_rank.py` | |
if [ ${rank} -eq 0 ]; then | |
echo 'I am rank 0' | |
elif [ ${rank} -eq 1 ]; then | |
echo 'I am rank 1' | |
elif [ ${rank} -eq 2 ]; then | |
echo 'I am rank 2' | |
elif [ ${rank} -eq 3 ]; then |
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
{ | |
"latex-workshop.view.pdf.viewer": "tab", | |
"latex-workshop.latex.tools": [ | |
{ | |
"name": "latexmk", | |
"command": "latexmk", | |
"args": [ | |
"-e", | |
"$latex=q/platex %O -synctex=1 -interaction=nonstopmode -file-line-error %S/", | |
"-e", |
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 javax.annotation.Nullable; | |
public class Employee { | |
private String firstName; | |
private String lastName; | |
private Integer age; | |
public Employee(String firstName, String lastName, Integer age){ | |
this.firstName = firstName; | |
this.lastName = lastName; |
- I tried "Running AlexNet on Raspberry Pi with Arm Compute Library" at arm Developmer with Rasberry pi 3B+.
- But some descriptions in this tutial look wrong or old, so it could not work for me by following this tutorial (as for Aug, 2019).
- So I noted the step that worked for me at this gist.
NewerOlder