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
$biber = 'biber %O --bblencoding=utf8 -u -U --output_safechars %B'; | |
$bibtex = 'upbibtex %O %B'; | |
$dvipdf = 'dvipdfmx %O -o %D %S'; | |
$latex = 'lualatex -kanji=utf8 -synctex=1 -halt-on-error -shell-escape -interaction=nonstopmode %O %S'; | |
$makeindex = 'mendex %O -o %D %S'; | |
$max_repeat = 5; | |
$pdf_mode = 3; | |
$out_dir = './build'; | |
$aux_dir = './build'; | |
$success_cmd = 'cp -r ./build/*.synctex.gz .; cp -r ./build/*.pdf .; rm -rf ./build/*.fls;'; |
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 | |
cat <<EOF >> ./main.tex | |
\documentclass{ltjsarticle} | |
\usepackage[hiragino-pron]{luatexja-preset} | |
\usepackage{amsmath} | |
\usepackage{amssymb} | |
\usepackage{amsbsy} | |
\usepackage{scrextend} |
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
# Use UTF-8 as a charset. | |
[System.Console]::OutputEncoding = [System.Text.Encoding]::GetEncoding("utf-8") | |
[System.Console]::InputEncoding = [System.Text.Encoding]::GetEncoding("utf-8") | |
$env:LESSCHARSET = "utf-8" | |
# Change the theme. | |
Set-PoshPrompt -Theme powerlevel10k_modern | |
If ($IsWindows) { | |
# Create a new command which is equivalent to the "which" keyword in Linux. |
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
absl-py==0.8.1 | |
astor==0.8.0 | |
attrs==19.3.0 | |
backcall==0.1.0 | |
beautifulsoup4==4.9.0 | |
bleach==3.1.0 | |
certifi==2020.6.20 | |
cffi==1.14.0 | |
chardet==3.0.4 | |
colorama==0.4.3 |
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 ubuntu:latest | |
RUN \ | |
######################################################## | |
# | |
# Basic tools | |
# | |
######################################################## | |
cd /; \ | |
apt update; \ |
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 pathlib | |
delete_func = "compatibilityCheck:function(e,t,r){UnityLoader.SystemInfo.hasWebGL?UnityLoader.SystemInfo.mobile?e.popup(\"Please note that Unity WebGL is not currently supported on mobiles. Press OK if you wish to continue anyway.\",[{text:\"OK\",callback:t}]):[\"Edge\",\"Firefox\",\"Chrome\",\"Safari\"].indexOf(UnityLoader.SystemInfo.browser)==-1?e.popup(\"Please note that your browser is not currently supported for this Unity WebGL content. Press OK if you wish to continue anyway.\",[{text:\"OK\",callback:t}]):t():e.popup(\"Your browser does not support WebGL\",[{text:\"OK\",callback:r}])}" | |
expected_func = "compatibilityCheck:function(e,t,r){r();}" | |
def main(): | |
path = input("Input the directory path of UnityLoader.js > ") | |
path = str(pathlib.Path(path).joinpath("UnityLoader.js")) | |
script = "" | |
with open(path, "r") as fs: |
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
#include <stdio.h> | |
int main() | |
{ | |
double d1 = 3; | |
double d2 = 5; | |
scanf("%d %d", &d1, &d2); | |
printf("%d + %d = %d", d1, d2, (d1 + d2)); | |
return 0; | |
} |
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
#include <iostream> | |
#include <fstream> | |
#include <memory> | |
#include <vector> | |
#include "llvm/ADT/APInt.h" | |
#include "llvm/ADT/APFloat.h" | |
#include "llvm/ADT/STLExtras.h" | |
#include "llvm/IR/BasicBlock.h" | |
#include "llvm/IR/Constants.h" |
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
pwsh | |
# PowerShell 6.2.3 | |
# Copyright (c) Microsoft Corporation. All rights reserved. | |
# | |
# https://aka.ms/pscore6-docs | |
# Type 'help' to get help. | |
$profile | |
# C:\.....\Microsoft.PowerShell_profile.ps1 |
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
# A function that runs some commands with administrator rights. | |
function SudoRun | |
{ | |
# Set commands to $program. | |
foreach($arg in $args) | |
{ | |
$program = "$program $arg" | |
} | |
# Run it by Powershell with administrator rights. |
NewerOlder