>javac Substitution.java
>java Substitution < input.txt
Rules:
AA AB
AB BB
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Gomoku Project - Complete Test Suite</title> | |
| <style> | |
| body { | |
| font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; | |
| line-height: 1.6; |
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
| inkscape %1 --export-filename %1.emf | |
| pause |
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
| @echo off | |
| :repeat | |
| ping 1.1.1.1 -n 1 || goto :repeat | |
| echo Success! | |
| echo | |
| pause |
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
| javascript:window.location.href="https://myaccess.library.utoronto.ca/login?url=" + window.location.href; |
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
| ; RDP Wrapper Library configuration | |
| ; Do not modify without special knowledge | |
| [Main] | |
| Updated=2019-08-03 | |
| LogFile=\rdplog.txt | |
| SLPolicyHookNT60=1 | |
| SLPolicyHookNT61=1 |
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
| call conda activate | |
| python mpl_deserialize.py %1 --preview |
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 math import sqrt, erf, pi, exp, log | |
| N = lambda x: (1.0 + erf(x / sqrt(2.0))) / 2.0 | |
| phi = lambda x: exp(-0.5*x*x)/sqrt(2.0*pi) | |
| class Option: | |
| def __init__(self, St, K, t, s, r=0, q=0): | |
| self.St = St # 0.90 | |
| self.K = K # 1.00 | |
| self.s = s # 0.20 |
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
| import struct | |
| num = 0.5 | |
| bits = [[c>>i & 1 for i in range(7, -1, -1)] for c in struct.pack("!d", num)] | |
| bits_flatten = [i for l in bits for i in l] | |
| bits_sign = bits_flatten[0] | |
| bits_exponent = bits_flatten[1:12] | |
| bits_fraction = bits_flatten[12:64] |
NewerOlder