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
// config/passport.js | |
// load all the things we need | |
var LocalStrategy = require('passport-local').Strategy; | |
var mysql = require('mysql'); | |
var connection = mysql.createConnection({ | |
host : 'localhost', | |
user : 'root', |
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 <vector> | |
#include <opencv2/highgui.hpp> | |
#include <opencv2/imgproc.hpp> | |
#include <opencv2/core.hpp> | |
#include <opencv2/videoio.hpp> | |
#include <opencv2/opencv.hpp> | |
#include <opencv2/opencv_modules.hpp> | |
#include <opencv2/cudaobjdetect.hpp> | |
#include <opencv2/cudaimgproc.hpp> |
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 <vector> | |
#include <opencv2/highgui.hpp> | |
#include <opencv2/imgproc.hpp> | |
#include <opencv2/core.hpp> | |
#include <opencv2/videoio.hpp> | |
#include <opencv2/opencv.hpp> | |
#include <opencv2/opencv_modules.hpp> | |
#include <opencv2/cudaobjdetect.hpp> | |
#include <opencv2/cudaimgproc.hpp> |
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 <vector> | |
#include <opencv2/highgui.hpp> | |
#include <opencv2/imgproc.hpp> | |
#include <opencv2/core.hpp> | |
#include <opencv2/videoio.hpp> | |
#include <opencv2/opencv.hpp> | |
#include <opencv2/opencv_modules.hpp> | |
#include <opencv2/cudaobjdetect.hpp> | |
#include <opencv2/cudaimgproc.hpp> |
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 <vector> | |
#include <opencv2/highgui.hpp> | |
#include <opencv2/imgproc.hpp> | |
#include <opencv2/core.hpp> | |
#include <opencv2/videoio.hpp> | |
#include <opencv2/opencv.hpp> | |
#include <opencv2/opencv_modules.hpp> | |
#include <opencv2/cudaobjdetect.hpp> | |
#include <opencv2/cudaimgproc.hpp> |
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 | |
help_menu() { | |
echo "Usage: | |
${0##*/} [-h][-d CA_DIR][-p SERVERPORT][-v][-s] | |
Options: | |
-h, --help |
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
Function Get-InstalledApplication | |
{ | |
Param( | |
[Parameter(Mandatory=$true)] | |
[string[]]$Computername, | |
[String[]]$OutputType, | |
[string[]]$outpath | |
) | |
#Registry Hives |
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
//can be used with -> curl -XGET -H "Content-Type:application/json" http://es_host:es_port/image_index/_search -d@euclidean_distance_sort.json | |
{ | |
"sort" : { | |
"_score" : "asc" | |
}, | |
"query": { | |
"function_score" : { | |
"script_score" : { | |
"script" : { |
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 sys import platform as sys_pf | |
if sys_pf == 'darwin': | |
import matplotlib | |
matplotlib.use("TkAgg") | |
from matplotlib import pyplot as plt | |
import numpy as np | |
x = np.arange(-np.pi,np.pi,0.01) | |
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
# This file may be used to create an environment using: | |
# $ conda create --name <env> --file <this file> | |
# platform: osx-64 | |
aioredis=1.1.0=pypi_0 | |
asgi-redis=1.4.3=pypi_0 | |
asgiref=2.3.2=pypi_0 | |
async-timeout=2.0.1=pypi_0 | |
attrs=18.1.0=pypi_0 | |
autobahn=18.6.1=pypi_0 | |
automat=0.6.0=pypi_0 |
OlderNewer