This file contains hidden or 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
threshhold = (mean(DVCMetanol)-DVCMetanol(i))/mean(DVCMetanol)*100; | |
outsideThreshhold = find(DVCMethanol > threshhold | DVCMethanol < -threshhold); | |
DVCMethanol(outsideThreshhold) = []; | |
This file contains hidden or 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.Numerics; | |
namespace Grapher.GraphingMath.MatrixAndVectorMath | |
{ | |
public static class Matrix4x4Multiply | |
{ | |
public static Vector4 Vector4Multiply(Matrix4x4 matrix, Vector4 vector) | |
{ | |
var mat = new float[4, 4] | |
{ |
This file contains hidden or 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
Point testPoint = new Point {X = 0, Y = 0}; | |
var srcArea = new GraphingArea | |
{ | |
XMax = 4, | |
XMin = -8, | |
YMax = 4, | |
YMin = -4 | |
}; |
This file contains hidden or 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; | |
namespace Grapher.Control.Grapher | |
{ | |
public struct GraphingArea | |
{ | |
public float XMin { get; set; } | |
public float YMin { get; set; } |
This file contains hidden or 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.Numerics; | |
using System.Windows; | |
using System.Windows.Media; | |
using Grapher.Control.Grapher; | |
namespace Grapher.GraphingMath | |
{ | |
public class Translator | |
{ |
This file contains hidden or 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 _CRT_SECURE_NO_WARNINGS | |
#define BUFFERSIZE 1024 | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
typedef struct stack_member Stack_member; | |
typedef struct stack Stack; |
This file contains hidden or 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> | |
#include <stdlib.h> | |
#define BUFFERSIZE 1024 | |
typedef struct stack_member Stack_member; | |
typedef struct stack Stack; |
This file contains hidden or 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 sys | |
import re | |
f = open(sys.argv[1], 'r') | |
lines = f.readlines() | |
print(sum([len(line) - (len(line.decode('unicode_escape')) - 2) for line in [bytes(line.rstrip('\n'), 'utf8') for line in lines]])) | |
print(sum([len(re.escape(line)) - (len(line) - 2) for line in [bytes(line.rstrip('\n'), 'utf8') for line in lines]])) |
This file contains hidden or 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 telegram | |
import time | |
import sys | |
import logging | |
from urllib import error | |
from json import decoder | |
class BotError(Exception): | |
""" |