$ django-admin.py startproject steelrumors
$ git init
$ git add .
$ git commit -m 'Initial Commit'
$ chmod +x manage.py
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 "stdafx.h" | |
#pragma comment(lib, "opencv_core230d.lib") | |
#pragma comment(lib, "opencv_highgui230d.lib") | |
#pragma comment(lib, "opencv_imgproc230d.lib") | |
#pragma comment(lib, "opencv_legacy230d.lib") | |
#pragma comment(lib, "opencv_video230d.lib") | |
// opencvのヘッダの前で定義 | |
#pragma warning(disable:4996) |
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 <vector> | |
#include <iostream> | |
#include <string> | |
using namespace std; | |
void Empty(string str, vector<int> v) | |
{ | |
if( v.empty() ) { | |
cout << str << " is empty" << endl; |
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
h_¥theta (x) = | |
¥left ¥{ | |
¥begin{array}{ll} | |
1 & ¥textrm{if } ¥theta^T x ¥gg 0 ¥¥ | |
0 & ¥textrm{otherwise} | |
¥end{array} | |
¥right. |
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 <map> | |
using namespace std; | |
int main() | |
{ | |
map<string, int> m; | |
m["hello"] = 100; | |
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 "stdafx.h" | |
#include <iostream> | |
#include <omp.h> | |
using namespace std; | |
int main() | |
{ | |
#pragma omp parallel |
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 <vector> | |
#include <algorithm> | |
#include <iostream> | |
#include <sstream> | |
#include <cstdlib> | |
#include <ctime> | |
using namespace std; | |
typedef struct { |
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 <unistd.h> | |
int main(int argc, char *argv[]) | |
{ | |
int result; | |
while((result = getopt(argc, argv, "ab:")) != -1) { | |
switch(result){ | |
case 'a': |
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
P(¥theta) = P(¥theta_0) ¥prod_{(i,j) ¥in E} P(¥theta_j) P(¥theta_i) |
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
#-*- coding: utf-8 -*- | |
from math import * | |
import sys | |
def sigmoid(x): | |
return (1 / (1+exp(-x))) | |
def main(): | |
argvs = sys.argv |