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
name: Issue to note | |
concurrency: issue-to-note | |
on: | |
issues: | |
types: [opened, edited] | |
jobs: | |
run: | |
runs-on: ubuntu-latest |
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
// issue in context: https://github.com/golang/go/issues/44279#issuecomment-1159714960 | |
type OsFilesystem struct{} | |
func (f *OsFilesystem) Open(name string) (fs.File, error) { | |
return os.Open(name) | |
} | |
// *OsFilesystem implements fs.FS | |
var _ fs.FS = new(OsFilesystem) |
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
// Based on: https://gist.github.com/ericelliott/e2dd9cbe5c64e44d6122ba76ec7dbf55#file-dev-vs-production-type-checking-js | |
type Timestamp = number // Date.now() returns number, so type alias gives better documentation | |
// good type names provide good documentation | |
type Employee = { | |
name: string, | |
hireDate?: Timestamp, | |
title?: string, | |
} |
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 pandas as pd | |
from matplotlib import pyplot as plt | |
from os import makedirs | |
from matplotlib import rcParams | |
rcParams.update({'figure.autolayout': True}) | |
def import_csv(filename): | |
data = pd.read_csv(filename, sep='\t', header=0) | |
return data |
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.io.BufferedReader; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.io.OutputStream; | |
import java.io.PrintWriter; | |
import java.net.Socket; | |
public class SimpleClient { | |
public static void main(String 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 java.io.BufferedReader; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.io.OutputStream; | |
import java.io.PrintWriter; | |
import java.net.InetAddress; | |
import java.net.ServerSocket; | |
import java.net.Socket; | |
public class SimpleServer { |
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 numpy as np | |
from matplotlib import pyplot as plt | |
K0 = 1 # [1] | |
DELTA_OMEGA_D = 1500 # [MHz] | |
L = 0.9 # [m] | |
DELTA_OMEGA = (3e8 * 1e-6)/(2 * L) # [MHz] | |
A = 0.45 # [1] | |
OMEGA_PR = np.sqrt(-np.log(A)) * 0.6 * DELTA_OMEGA_D # [MHz] |
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
\documentclass[12pt,fleqn]{article} | |
\usepackage[utf8]{inputenc} | |
\usepackage[margin=1in]{geometry} | |
\usepackage[bookmarks]{hyperref} | |
\usepackage{polski} | |
\usepackage[polish]{babel} | |
\usepackage{indentfirst} | |
\usepackage{graphicx} | |
\usepackage{float} | |
\usepackage{amsmath} |
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 numpy as np | |
from matplotlib import pyplot as plt | |
from matplotlib import rcParams | |
rcParams['font.family'] = 'serif' | |
rcParams['font.serif'] = ['Source Serif Pro'] | |
rcParams['font.weight'] = 'regular' | |
rcParams['axes.titlepad'] = 18.0 | |
def F(theta: float, k: float, l: float) -> float: |
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 <cstddef> | |
#include <iostream> | |
class Wezel { | |
public: | |
Wezel(int data, Wezel* prev, Wezel* next) { | |
this->data = data; | |
this->prev = prev; | |
this->next = next; |
NewerOlder