- Labels Detection
- Faces Detection
- Faces Comparison
- Faces Indexing
- Faces Search
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
server { | |
server_name www.example.com; | |
access_log /var/log/nginx/example.com.log; | |
error_log /var/log/nginx/example.com.error.log debug; | |
root /home/myuser/example.com/homepage; | |
sendfile on; | |
# if the uri is not found, look for index.html, else pass everthing to gunicorn | |
location / { | |
index index.html; |
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
def lambda_handler(event, context): | |
name = event.get('name') or 'World' | |
print("Name: %s" % name) | |
return "Hello %s!" % name |
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
def from_sklearn(docs,vect,lda,**kwargs): | |
"""Create Prepared Data from sklearn's vectorizer and Latent Dirichlet | |
Application | |
Parameters | |
---------- | |
docs : Pandas Series. | |
Documents to be passed as an input. | |
vect : Scikit-Learn Vectorizer (CountVectorizer,TfIdfVectorizer). |
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
// example app initialization | |
$(function() { | |
Dispatcher.dispatch({ | |
type: 'initialize app', | |
path: window.location.pathname, | |
}); | |
}); |
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
class ExcludeXhr | |
def matches?(request) | |
!request.xhr? | |
end | |
end | |
Rails.application.routes.draw do | |
constraints(ExcludeXhr.new) do | |
root 'home#index' # home/index just renders our single page client-side app | |
get '*path', to: "home#index", via: :all |
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
TasksApp = React.createClass({ | |
// all component state originates from TaskStore, upstream | |
getInitialState: function() { | |
return { | |
selectedTask: TaskStore.selectedTask(), | |
tasks: TaskStore.tasks(), | |
}; | |
}, | |
// and when the TaskStore's state changes, we update this component's |
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 Foundation | |
// 1. Wildcard Pattern | |
func wildcard(a: String?) -> Bool { | |
guard case _? = a else { return false } | |
for case _? in [a] { | |
return true | |
} | |
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 React from 'react'; | |
export class Sto extends React.Component{ | |
static defaultProps = { | |
store: x => x | |
} | |
state = { | |
value: this.props.store() | |
} | |
dispatch = action => this.setState({ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder