>javac Substitution.java
>java Substitution < input.txt
Rules:
AA AB
AB BB
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
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
; #Warn ; Enable warnings to assist with detecting common errors. | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
^j:: | |
Click | |
Sleep, 500 | |
Send, ^p | |
Sleep, 1000 |
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
inkscape %1 --export-filename %1.emf | |
pause |
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
@echo off | |
:repeat | |
ping 1.1.1.1 -n 1 || goto :repeat | |
echo Success! | |
echo | |
pause |
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 com.example; | |
import com.itextpdf.html2pdf.HtmlConverter; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
/** |
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 logging | |
import requests | |
import json | |
from urllib.parse import urlunparse | |
from getpass import getpass | |
from argparse import ArgumentParser | |
parser = ArgumentParser("Hitron router API, API version 1.11, Software Version 7.1.1.32") | |
parser.add_argument("-u", "--username", type=str, default="cusadmin") | |
parser.add_argument("-p", "--password", type=str) |
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
javascript:window.location.href="https://myaccess.library.utoronto.ca/login?url=" + window.location.href; |
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
; 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 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 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 |
NewerOlder