This is some demo Julia code with nontrivial Unicode, used to illustrate Blink issue #426
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
import re | |
import html | |
from lxml.etree import tostring | |
from ever2simple.converter import EverConverter | |
def my_unescape(s): | |
s = s.replace(""", "PROTECTEDQUOT=====") | |
s = html.unescape(s) | |
s = s.replace("PROTECTEDQUOT=====", """) |
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
#!/usr/bin/env python | |
"""Script to generate a yearly calendar via luatex. | |
Requires the `lualatex` executable to be in the PATH. | |
Requires the Rotis Semi Serif (55 Roman) and Rotis Semi Sans (55 Regular) | |
fonts, available at | |
https://www.linotype.com/49242/rotis-semi-serif-family.html | |
https://www.linotype.com/49198/rotis-semi-sans-family.html |
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
from sympy import symbols | |
from qnet.algebra import * | |
def check(checks): | |
for (func, args) in checks: | |
try: | |
print("%s: %s" % (func.__name__, func(*args))) | |
except Exception as exc_info: | |
print("%s: Exception %r" % (func.__name__, exc_info)) |
We can make this file beautiful and searchable if this error is corrected: It looks like row 5 should actually have 31 columns, instead of 30 in line 4.
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
#N=1,quasistatic_nonlocal_noise_and_no_local_noise,,,,,,,#N=1,quasistatic_nonlocal_noise_and_quasistatic_local_noise,,,,,,,#N=1,1/f_nonlocal_noise_and_no_local_noise,,,,,,,#N=1,1/f_nonlocal_noise_and_1/f_local_noise,,,,, | |
R_n,gamma_1,beta_1,alpha_1,gamma_2,beta_2,alpha_2,,R_n,gamma_1,beta_1,alpha_1,gamma_2,beta_2,alpha_2,,R_n,gamma_1,beta_1,alpha_1,gamma_2,beta_2,alpha_2,,R_n,gamma_1,beta_1,alpha_1,gamma_2,beta_2,alpha_2 | |
1,0,0,0,0,0,0,,1,0.227210291,-0.519172237,4.249945784,0.659286314,1.024495102,-5.130178346,,1,0,0,0,0,0,0,,1,-0.001891645,5.899323772,-8.266042588,-0.985505191,-0.712206035,-10.80685923 | |
#N=2,quasistatic_nonlocal_noise_and_no_local_noise,,,,,,,#N=2,quasistatic_nonlocal_noise_and_quasistatic_local_noise,,,,,,,#N=2,1/f_nonlocal_noise_and_no_local_noise,,,,,,,#N=2,1/f_nonlocal_noise_and_1/f_local_noise,,,,, | |
R_n,gamma_1,beta_1,alpha_1,gamma_2,beta_2,alpha_2,,R_n,gamma_1,beta_1,alpha_1,gamma_2,beta_2,alpha_2,,R_n,gamma_1,beta_1,alpha_1,gamma_2,beta_2,alpha_2,,R_n,gamma_1,beta_1,alpha_1,gamma_2,bet |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
((*- extends 'article.tplx' -*)) | |
% See http://blog.juliusschulz.de/blog/ultimate-ipython-notebook#templates | |
% for some useful tips | |
%=============================================================================== | |
% Document class | |
%=============================================================================== | |
((* block docclass *)) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.