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
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"blocks": [ | |
{ | |
"alignment": "left", | |
"segments": [ | |
{ | |
"background": "#a313a8", | |
"foreground": "#FFEB3B", | |
"style": "plain", |
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
$ | |
Y_t = beta_0 + beta_1 Y_(t-1) + epsilon_t | |
$ | |
Take note of: | |
- $abs(beta_1) < 1$ | |
- $epsilon_t tilde.op "WN"(0, sigma^2)$ | |
- $Y_(t-1) = beta_0 + beta_1 Y_(t-2) + epsilon_(t-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
from PIL import Image, ImageOps | |
import cv2 | |
import numpy as np | |
import pytesseract | |
pytesseract.pytesseract.tesseract_cmd = 'C:\\Program Files\\Tesseract-OCR\\tesseract.exe' | |
crop_w = 1310 | |
crop_h = 2020 |
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
#!/usr/bin/env python3 | |
import sys | |
formatted_json = sys.stdin.read() | |
from pygments import highlight, lexers, formatters | |
colorful_json = highlight(formatted_json, lexers.JsonLexer(), formatters.TerminalFormatter()) | |
print(colorful_json) |
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
class HelloWorld { | |
public static String getString(String key, String def) { | |
String cs = null; | |
Boolean containsKey = true; | |
return cs != null || containsKey ? cs == null ? null : cs.toString() : def; | |
} | |
public static String getString2(String key, String def) { | |
Boolean containsKey = 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
function setJava { | |
param ( | |
[string]$version | |
) | |
$javaEnvs = @{ | |
j8 = 'C:\java\jdk1.8.0_241' | |
j11 = "C:\java\jdk-11.0.9" | |
g8 = 'C:\java\graalvm-ce-java8-20.2.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
package vec | |
type vec1 struct { | |
x, y, z, w float64 | |
} | |
//go:noline | |
func (v vec1) addnoline(u vec1) vec1 { | |
return vec1{v.x + u.x, v.y + u.y, v.z + u.z, v.w + u.w} | |
} |
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 main | |
type base struct{} | |
type service struct { | |
sub *service | |
} | |
func (*service) create() (bool, error) { | |
return true, nil |
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
function call<InType, OutType>(url: string, input: InType): Promise<OutType> { | |
return new Promise<OutType>((resolve, reject) => {wx.request({ | |
url: url, | |
method: "POST", | |
data: input, | |
header: { | |
'content-type': 'application/json' // 默认值 | |
}, | |
success(res: wx.RequestSuccessCallbackResult) : void { | |
if(res.statusCode== 200){ |
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
python .\import_example.py | |
2019-02-14 10:51:52.592998: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1432] Found device 0 with properties: | |
name: GeForce GTX 1080 major: 6 minor: 1 memoryClockRate(GHz): 1.7335 | |
pciBusID: 0000:01:00.0 | |
totalMemory: 8.00GiB freeMemory: 6.60GiB | |
2019-02-14 10:51:52.618169: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1511] Adding visible gpu devices: 0 | |
2019-02-14 10:51:53.007929: I tensorflow/core/common_runtime/gpu/gpu_device.cc:982] Device interconnect StreamExecutor with strength 1 edge matrix: | |
2019-02-14 10:51:53.022297: I tensorflow/core/common_runtime/gpu/gpu_device.cc:988] 0 | |
2019-02-14 10:51:53.031536: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1001] 0: N | |
2019-02-14 10:51:53.041526: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1115] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 3276 MB memory) -> physical GPU (device: 0, name: GeForce GTX 1080, pci bus id: 0000:01:00.0, compute capability: 6.1) |
NewerOlder