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 numpy as np | |
import matplotlib.pyplot as plt | |
x = np.linspace(0, 10, 1001) | |
f = lambda z: z * sin(z) | |
y = np.sin(x) * x | |
#plt.plot(x, y) |
Loading
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
#define _USE_MATH_DEFINES | |
#include <iostream> | |
#include <cmath> | |
#include <array> | |
#include <chrono> | |
#include <immintrin.h> | |
#include <random> |
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
#define _USE_MATH_DEFINES | |
#include <iostream> | |
#include <cmath> | |
#include <immintrin.h> | |
// Standard normal probability density function | |
double norm_pdf(const double& x) { | |
return (1.0 / (pow(2 * M_PI, 0.5))) * exp(-0.5 * x * x); |
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
#[derive(Debug)] | |
struct Person | |
{ | |
name: String, | |
position: String | |
} | |
impl Default for Person | |
{ | |
fn default() -> Self { |
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 System; | |
using System.ComponentModel; | |
using System.Linq.Expressions; | |
using System.Reflection; | |
using System.Runtime.CompilerServices; | |
using DotNetDesignPatternDemos.Annotations; | |
namespace DotNetDesignPatternDemos.Behavioral.Observer.Bidirectional | |
{ | |
public class Product : INotifyPropertyChanged |
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 System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Linq; | |
using System.Reflection; | |
using System.Text; | |
namespace PatternDemoCore |
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 System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Reflection; | |
using Autofac; | |
namespace DotNetDesignPatternDemos.Behavioral.Observer.ContainerWireup | |
{ | |
public interface IEvent {} |
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 System.Collections; | |
using System.Collections.Generic; | |
namespace DotNetDesignPatternDemos.Structural.Proxy | |
{ | |
class Creature | |
{ | |
public byte Age; | |
public int X, Y; | |
} |
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 System; | |
using System.Linq; | |
namespace DotNetDesignPatternDemos.Structural.Proxy.Composite | |
{ | |
// todo: publish | |
public class MasonrySettings | |
{ | |
//public bool? All | |
//{ |
NewerOlder