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
""" | |
#python 2.x | |
""" | |
import numpy as np | |
import math | |
import matplotlib.pyplot as plt | |
class Point: |
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
// MouseMove.cpp : 응용 프로그램에 대한 진입점을 정의합니다. | |
// 출처 : 윈도우즈 32 API 프로그래밍 | |
#include "stdafx.h" | |
#include "MouseMove.h" | |
#include <math.h> | |
#define MAX_LOADSTRING 100 | |
#define SIZE 40 |
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
// http://stoned.8m.com/Source/MFC/mousedraw.html | |
// ChildView.h : CChildView 클래스의 인터페이스 | |
// | |
#pragma once | |
// CChildView 창 |
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
# python 3.0 | |
import numpy as np | |
import matplotlib.pyplot as mpl | |
x = np.array([1, 2, 3, 4, 5]) | |
y = np.array([2, 5, 3, 8, 7]) | |
A = np.vstack([x, np.ones(len(x))]).T | |
m, c = np.linalg.lstsq(A, y)[0] |
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
# python 3.x | |
from types import * | |
import struct | |
from struct import unpack | |
import numpy as np | |
import binascii | |
import functools | |
import sys | |
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
#python 3.x | |
import matplotlib.pyplot as plt | |
import matplotlib.mlab as mlab | |
import matplotlib.cbook as cbook | |
import numpy as np | |
import matplotlib.pyplot as plt | |
from matplotlib.widgets import Button, Cursor | |
import tkinter as Tk | |
from tkinter import filedialog | |
import os |
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 matplotlib.pyplot as plt | |
import matplotlib.mlab as mlab | |
import matplotlib.cbook as cbook | |
import numpy as np | |
import matplotlib.pyplot as plt | |
from matplotlib.widgets import Button | |
import Tkinter as Tk | |
import tkFileDialog | |
import os | |
import csv |
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 matplotlib.pyplot as plt | |
import csv | |
import math | |
def rotate_vector(v, angle, anchor): | |
"""Rotate a vector `v` by the given angle, relative to the anchor point.""" | |
x, y = v | |
x = float(x) - anchor[0] | |
y = float(y) - anchor[1] | |
# Here is a compiler optimization; inplace operators are slower than |
NewerOlder