- 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
'use strict'; | |
var nodemailer = require('nodemailer'); | |
//configure nodemailer | |
// visit: https://nodemailer.com/ | |
// For other types of transports (Amazon SES, Sendgrid,mailchimp...) see https://nodemailer.com/2-0-0-beta/setup-transporter/ | |
var mailTransport = nodemailer.createTransport('smtps://<user>%40gmail.com:<password>@smtp.gmail.com'); | |
function senEmail(email) { | |
var mailOptions = { | |
from: '"Ashish Cherian" <[email protected]>', |
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
'use strict'; | |
var nodemailer = require('nodemailer'); | |
var schedule = require('node-schedule'); | |
//configure nodemailer | |
// visit: https://nodemailer.com/ | |
// For other types of transports (Amazon SES, Sendgrid,mailchimp...) see https://nodemailer.com/2-0-0-beta/setup-transporter/ | |
// visit the following to get a more rudimentary usage of nodemailer | |
// https://gist.github.com/reach2ashish/4bce68c3e5950916320b5bbcca0cf6b8 | |
var mailTransport = nodemailer.createTransport('smtps://<user>%40gmail.com:<password>@smtp.gmail.com'); |
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 requests | |
from bs4 import BeautifulSoup | |
def get_rss_feed(website_url): | |
if website_url is None: | |
print("URL should not be null") | |
else: | |
source_code = requests.get(website_url) | |
plain_text = source_code.text | |
soup = BeautifulSoup(plain_text) |
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 angus | |
conn = angus.connect() | |
service = conn.services.get_service('age_and_gender_estimation', version=1) | |
job = service.process({'image': "http://i.imgur.com/U0wgzIT.jpg"}) | |
print(job.result) |
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 the library code: | |
#include <LiquidCrystal.h> | |
// initialize the library with the numbers of the interface pins | |
LiquidCrystal lcd(12, 11, 5, 4, 3, 2); | |
int okay=0; | |
void setup() { | |
// set up the LCD's number of columns and rows: | |
lcd.begin(16, 2); |
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 os | |
from slackclient import SlackClient | |
BOT_NAME = 'YOUR BOT NAME WHICH YOU GAVE EXAMPLE @SOMETHINGBOT' | |
slack_client ="YOUR API KEY" | |
if __name__ == "__main__": | |
api_call = slack_client.api_call("users.list") | |
if api_call.get('ok'): |
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
!/usr/bin/env python | |
-*- coding: utf-8 -*- | |
import os.path | |
import sys | |
import json | |
try: | |
import apiai | |
except ImportError: | |
sys.path.append( |
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
@app.route('/', methods=['GET']) | |
def verify(): | |
# when the endpoint is registered as a webhook, it must echo back | |
# the 'hub.challenge' value it receives in the query arguments | |
if request.args.get("hub.mode") == "subscribe" and request.args.get("hub.challenge"): | |
if not request.args.get("hub.verify_token") == os.environ["VERIFY_TOKEN"]: | |
return "Verification token mismatch", 403 | |
return request.args["hub.challenge"], 200 | |
return "Hello world", 200 |
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
@app.route('/', methods=['POST']) | |
def webhook(): | |
# endpoint for processing incoming messaging events | |
data = request.get_json() | |
log(data) # you may not want to log every incoming message in production, but it's good for testing | |
if data["object"] == "page": |
OlderNewer