Skip to content

Instantly share code, notes, and snippets.

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