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
#!/bin/zsh | |
### Fill these paramters in your enviroment | |
# export OPENFORTIVPN_GATEWAY = '...' (host:port) | |
# export OPENFORTIVPN_OTP = '...' (4-digit) | |
# export OPENFORTIVPN_OTP_COMMAND = '...' (runtime otp) | |
# export OPENFORTIVPN_CONFIG = '...' (config file path) | |
_forti() { | |
args=() |
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 shutil | |
from pathlib import Path | |
import requests | |
from bs4 import BeautifulSoup | |
from tqdm import tqdm | |
HOST = 'https://ocw.mit.edu' | |
future_list = [] |
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 javax.swing.*; | |
import java.awt.*; | |
public class SierpinskiFrame extends JFrame { | |
public static void main(String[] args) { | |
SierpinskiFrame frame = new SierpinskiFrame(); | |
frame.setSize(600, 600); | |
frame.setLocationRelativeTo(null); | |
frame.setVisible(true); |
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 java.util.Scanner; | |
public class Sierpinski { | |
public static String[] T(int n) { | |
if (n == 0) { | |
String[] ans = new String[1]; | |
ans[0] = "*"; | |
return ans; | |
} | |
String[] prev = T(n - 1); |