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 <math.h> | |
//#include <conio.h> | |
using namespace std; | |
struct Roots{ | |
int x; | |
int z; | |
}; |
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
#!/usr/bin/env python | |
# | |
# iwlistparse.py | |
# Hugo Chargois - 17 jan. 2010 - v.0.1 | |
# Parses the output of iwlist scan into a table | |
# Taken from here: https://bbs.archlinux.org/viewtopic.php?id=88967 | |
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
// taken from http://stackoverflow.com/questions/498320/pass-arguments-into-c-program-from-command-line | |
#include <ctype.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
int | |
main (int argc, char **argv) | |
{ |
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 http://www.netzmafia.de/skripten/unix/linux-daemon-howto.html | |
#include <sys/types.h> | |
#include <sys/stat.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <fcntl.h> | |
#include <errno.h> | |
#include <unistd.h> | |
#include <syslog.h> |
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
#!/usr/bin/env python2 | |
import numpy as np | |
import pylab as pl | |
import pydot | |
from sklearn.datasets import load_iris | |
from sklearn.tree import DecisionTreeClassifier | |
from sklearn import tree |
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
#!/usr/bin/env python2 | |
import numpy as np | |
import pylab as pl | |
from sklearn.tree import DecisionTreeClassifier | |
from sklearn import tree | |
X = [] | |
y = [] |
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
#Заменить все 0. и 1. на int | |
#!/usr/bin/env python2 | |
import numpy as np | |
from sklearn import tree | |
from sklearn.tree import DecisionTreeClassifier | |
X = [] | |
y = [] |
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
#!/usr/bin/env python2 | |
import numpy as np | |
from sklearn import tree | |
from sklearn.tree import DecisionTreeClassifier | |
X = [] | |
y = [] | |
for line in open("haberman.data"): |
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
#!/usr/bin/env python2 | |
import numpy as np | |
from sklearn import tree | |
from sklearn.tree import DecisionTreeClassifier | |
X = [] | |
y = [] | |
for line in open("mammographic_masses.data"): |
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
[0,0,255; | |
1,4,255; | |
2,7,255; | |
3,11,255; | |
4,15,255; | |
5,19,255; | |
6,22,255; | |
7,26,255; | |
8,30,255; | |
9,33,255; |
OlderNewer