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 __future__ import print_function | |
def loadnpz_impl(self, params=''): | |
"""Load a npz file into user namespace. | |
%loadnpz <filename.npz> | |
""" | |
import numpy as np | |
ip = get_ipython() |
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
#!/bin/bash | |
# | |
# Tile all open matplotlib figures | |
screenoffset=1920 | |
screenwidth=2560 | |
figwidth=640 | |
figheight=534 | |
x=$screenoffset |
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
package main | |
import "fmt" | |
type Sequencer interface { | |
Next() Sequencer | |
} | |
type Elem struct { | |
b int |
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
#include <iostream> | |
using namespace std; | |
int | |
main(void) | |
{ | |
for(int i = 0; i < 50; i++){ | |
for(int j = 0; j < i+1; j++) | |
cout << "*"; |
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
// #1. Ex 5.2 question 9 solution | |
#include <iostream> | |
#include <iomanip> | |
#include <cmath> | |
using namespace std; | |
int | |
main(void) |
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
// Draws a circle | |
#include <iostream> | |
using namespace std; | |
int | |
main(void) | |
{ | |
int r; //radius |
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
#include <iostream> | |
#include <string> | |
using namespace std; | |
const int NAccounts = 3; | |
string Usernames[NAccounts] = { | |
"alice", | |
"bob", | |
"eve", |
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
#include <iostream> | |
#include <iomanip> | |
#include <cstdlib> | |
#include <string> | |
#include <fstream> | |
using namespace std; | |
const int WordListSize = 10000; | |
const int ParaWidth = 60; // paragraph width |
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
#include <iostream> | |
#include <fstream> | |
#include <iomanip> | |
#include <cmath> | |
#include <cstdlib> | |
#include "p0.h" | |
using namespace std; | |
READWRITE::READWRITE(void) |
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
# FPR TPR Accuracy Precision | |
1 0.6250 0.8846 0.8372 0.9324 | |
2 0.3077 0.9178 0.8837 0.9437 | |
3 0.5556 0.9605 0.9059 0.9359 | |
4 0.6111 0.9552 0.8353 0.8533 | |
5 0.3333 0.9143 0.8706 0.9275 | |
6 0.4545 0.9054 0.8588 0.9306 | |
7 0.4615 0.8889 0.8353 0.9143 | |
8 0.6154 0.9028 0.8235 0.8904 | |
9 0.4615 0.9444 0.8824 0.9189 |
OlderNewer