Skip to content

Instantly share code, notes, and snippets.

threshhold = (mean(DVCMetanol)-DVCMetanol(i))/mean(DVCMetanol)*100;
outsideThreshhold = find(DVCMethanol > threshhold | DVCMethanol < -threshhold);
DVCMethanol(outsideThreshhold) = [];
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]
{
Point testPoint = new Point {X = 0, Y = 0};
var srcArea = new GraphingArea
{
XMax = 4,
XMin = -8,
YMax = 4,
YMin = -4
};
using System;
namespace Grapher.Control.Grapher
{
public struct GraphingArea
{
public float XMin { get; set; }
public float YMin { get; set; }
using System;
using System.Numerics;
using System.Windows;
using System.Windows.Media;
using Grapher.Control.Grapher;
namespace Grapher.GraphingMath
{
public class Translator
{
#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;
@Clanrat
Clanrat / Stack.c
Last active February 24, 2016 09:57
Simple int stack
#include <stdio.h>
#include <stdlib.h>
#define BUFFERSIZE 1024
typedef struct stack_member Stack_member;
typedef struct stack Stack;
@Clanrat
Clanrat / day8.py
Created December 8, 2015 08:55
My solution for day 8 of advent of code
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]]))
import telegram
import time
import sys
import logging
from urllib import error
from json import decoder
class BotError(Exception):
"""