This interactive Neo4j graph tutorial covers a common credit card fraud detection scenario.
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
<?php | |
/* | |
Get GeoJSON | |
Returns a GeoJSON from your table. | |
Based on: | |
https://github.com/bmcbride/PHP-Database-GeoJSON by Brian McBride | |
To be used with the Dirt-Simple PostGIS HTTP API: | |
https://github.com/tobinbradley/dirt-simple-postgis-http-api by @tobinbradley | |
*/ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
import cv2 | |
import numpy as np | |
class BagOfFeatures: | |
"""This is a class of Bag-of-Features by K-means for OpenCV""" | |
codebookSize=0 | |
classifier=None | |
def __init__(self, codebookSize): | |
self.codebookSize=codebookSize | |
self.classifier=cv2.KNearest() |
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
library(shiny) | |
library(dplyr) | |
library(lubridate) | |
# Load libraries and functions needed to create SQLite databases. | |
library(RSQLite) | |
library(RSQLite.extfuns) | |
saveSQLite <- function(data, name){ | |
path <- dplyr:::db_location(filename=paste0(name, ".sqlite")) |
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
Tested on nginx version 1.1.9, ubuntu 12.04 | |
-Command lines in order: | |
sudo touch /etc/nginx/site-availables/geoserver.conf | |
sudo vi /etc/nginx/site-availables/geoserver.conf | |
sudo ln -s /etc/nginx/site-availables/geoserver.conf /etc/nginx/site-enabled/geoserver.conf | |
sudo service nginx start | |
Content of geoserver.conf | |
server { |
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
consumer_key = 'your-consumer-key' | |
consumer_secret = 'your-consumer-secret' | |
access_token = 'your-access-token' | |
access_secret = 'your-access-secret' |
#System Design Cheatsheet
Picking the right architecture = Picking the right battles + Managing trade-offs
##Basic Steps
- Clarify and agree on the scope of the system
- User cases (description of sequences of events that, taken together, lead to a system doing something useful)
- Who is going to use it?
- How are they going to use it?
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
clear all; close all; | |
%Read a PGM file | |
%pgm_1 = pgmread('shaftim.pgm'); | |
pgm_1 = imread('coins.png'); | |
%Viewing a PGM file as an image | |
my_disp(pgm_1) | |
% Create a averaging filter |
README is empty
NewerOlder