LaTeX Equation Editor likes codecogs editor.
- Python 3.3 or higher
- NumPy
- pylatex
- To implement real time convert.
- GUI(Tck/Tk, GTK+ or Qt4)
| #!/bin/sh | |
| platex ${1%.*}.tex | |
| dvipdfmx ${1%.*}.dvi | |
| open ${1%.*}.pdf |
| /** | |
| * 減算 | |
| */ | |
| /* 負の数を正に,正の数を負にする */ | |
| public static int negrate(int a){ | |
| int neg = 0; | |
| int d = a < 0 ? 1 : -1; | |
| while(a != 0){ | |
| neg += d; | |
| a += d; |
| import java.util.Scanner; | |
| public class Main { | |
| public static void main(String[] args) { | |
| Scanner sc = new Scanner(System.in); | |
| int n = sc.nextInt(); | |
| long[] fib = new long[5000]; | |
| System.out.println(fibonacci(n+1, fib)); | |
| } | |
| public static long fibonacci(int x, long fib[]){ | |
| if(x == 0) return 0; |
| // モールス符号と画面の対応 | |
| #include <Matrix.h> | |
| #include <Sprite.h> | |
| // DIN, CLK, LOAD の各ピン番号 | |
| Matrix mtx = Matrix(10, 12, 11); | |
| // モールス信号 | |
| int To = 120; | |
| int Tu = To * 3; | |
| int low = 1500; | |
| // デジタル13番ピンにスピーカー接続 |
| #!/bin/bash | |
| OLD_CONF="$HOME/.dotconfig/dotemacs" | |
| REPO="$HOME/emacs" | |
| TARGET_DIR="$HOME/.emacs.d" | |
| echo "Switch repo to .emacs.d link" | |
| echo "Choose switch to repo." | |
| echo "1:${REPO}" | |
| echo "2:${OLD_CONF}" | |
| read val |
| #!/bin/bash | |
| # sort works well when LANG=C | |
| LANG=C | |
| # Nobody use recpt1 realtime broadcast | |
| if [ `ps aux|grep recpt1|grep http|wc -l` -ne 1 ]; then | |
| # if nobody logged in. | |
| if [ `who|wc -l` -eq 0 ] ; then | |
| # if nobody are using samba. | |
| if [ `smbstatus -L|wc -l` -eq 2 ]; then | |
| # if no at jobs are runnning. |
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| import csv | |
| import sys | |
| # 登録の判定を行う | |
| # A,A+の取得単位割合を返す | |
| def getrate(csvfile): | |
| total_score = 0 | |
| great_score = 0 |
| public class List { | |
| static List へっど; // 先頭 | |
| List つぎ; // 次を指すポインタ | |
| int でーた; // 格納されるデータ | |
| /* 新しいセルの挿入(挿入位置はセルpの直後) */ | |
| static void 挿入(List p, int d) { | |
| List 新しいセル = new List(); | |
| 新しいセル.でーた = d; | |
| 新しいセル.つぎ = p.つぎ; |
LaTeX Equation Editor likes codecogs editor.