Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 Node: | |
def __init__(self, key, data): | |
self.prev = None | |
self.next = None | |
self.key = key | |
self.data = data | |
class LinkedList: |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#![feature(slice_as_chunks)] | |
use std::{ | |
convert::AsRef, | |
ops::{ | |
Bound::{Excluded, Included, Unbounded}, | |
RangeBounds, | |
}, | |
str::from_utf8_unchecked, | |
}; |
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
using Flux | |
using Flux.Losses | |
using Flux.Data: DataLoader | |
using Zygote | |
using Zygote: Buffer, @ignore | |
using LinearAlgebra | |
using StaticArrays | |
using Base.Threads: @spawn | |
using TensorCast |
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 * | |
import pyglet as pgl | |
w, h = 540, 540 | |
cx, cy = w//2, h//2 | |
radius = 3*cx // 5 | |
φ = pi / 4 | |
config = pgl.gl.Config(sample_buffers=1, samples=16) | |
window = pgl.window.Window(w, h, config=config) |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 scipy.optimize import curve_fit | |
x, y = np.loadtxt("2a.txt", delimiter=";").T | |
def test_func(x, n): | |
alpha = (2 * np.pi / 360) * x | |
n_sq = n ** 2 | |
cosine = np.cos(alpha) |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder