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
from collections import Counter | |
def multiply_matrices_symbolic(m1, m2, n): | |
""" | |
Multiplies two n x n matrices symbolically, considering empty strings and combining like terms. | |
Terms that result in '' or '[]' when multiplied are omitted. | |
:param m1: First matrix as a list. | |
:param m2: Second matrix as a list. | |
:param n: Size of the matrices (n x n). | |
:return: Resultant matrix as a list after multiplication. |
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
FROM python:3 | |
USER root | |
RUN apt-get update | |
RUN apt-get -y install locales && \ | |
localedef -f UTF-8 -i ja_JP ja_JP.UTF-8 | |
ENV LANG ja_JP.UTF-8 | |
ENV LANGUAGE ja_JP:ja | |
ENV LC_ALL ja_JP.UTF-8 | |
ENV TZ JST-9 |
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
(require 'cl) | |
(defun perseus-tufts-latin-dictionary () | |
"looking up a word in http://www.perseus.tufts.edu/hopper/" | |
(interactive) | |
(let ((editable (not buffer-read-only)) | |
(pt (save-excursion (mouse-set-point last-nonmenu-event))) | |
(original-buffer (current-buffer)) | |
beg end) |
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
# -*- coding:utf-8 -*- | |
""" | |
If you use a unix like environment, set an environment variable LANG: | |
export LANG=ja_JP.UTF-8 | |
Usage: | |
python3 xmindtodot.py foo.xmind | |
This command generates dot files and graphviz images for each sheet. |
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
set |findstr ^EMACS= >nul 2>nul | |
if NOT {%ERRORLEVEL%} == {0} set EMACS=emacs.exe | |
set |findstr ^LISPDIR= >nul 2>nul | |
if NOT {%ERRORLEVEL%} == {0} set LISPDIR=%USERPROFILE%\tc\lisp | |
set |findstr ^DATADIR= >nul 2>nul | |
if NOT {%ERRORLEVEL%} == {0} set DATADIR=%USERPROFILE%\tc\tcode | |
set SRCDIR=%~dp0 | |
echo current is %BATCHDIR%. |
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
#language:en | |
feature: Using cucumber in tlhIngan Hol | |
In order to use tlhIngan Hol for cucumber | |
As a user | |
I can write specs and run these specs properly. | |
Background: | |
Given some developers translated gherkin words into thIngan Hol, | |
Scenario: wrting specs in tlhIngan Hol |