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 matplotlib.pyplot as plt | |
| from mpl_toolkits.mplot3d import Axes3D | |
| def get_fix_mins_maxs(mins, maxs): | |
| deltas = (maxs - mins) / 12. | |
| mins = mins + deltas / 4. | |
| maxs = maxs - deltas / 4. | |
| return [mins, maxs] |
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
| // In Form2.cs, line 23 | |
| private void Form2_Leave(object sender, EventArgs e) | |
| { | |
| caesar1.Form1.checkBox2.Checked = false; | |
| } | |
| // Should be... | |
| private void Form2_Leave(object sender, EventArgs e) | |
| { | |
| caesar1.Form1 Frm1 = new caesar1.Form1(); |
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
| template <class T1, class T2, class Pred = std::less <class T> > | |
| struct sort_pair_second | |
| { | |
| bool operator()(const std::pair<T1,T2>&left, constd std::pair<T1,T2>&right) | |
| { | |
| Pred p; | |
| return p(left.second, right.second); | |
| } | |
| }; |