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
mkdir -p dist | |
tar -czvf dist/build_tag_model_lambda.tar.gz build_tagging_model.py |
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
[[source]] | |
url = "https://pypi.python.org/simple" | |
verify_ssl = true | |
name = "pypi" | |
[packages] | |
pandas = "*" | |
sklearn = "*" | |
xgboost = "*" | |
"psycopg2_binary" = "*" |
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 __future__ import unicode_literals | |
import boto3 | |
import importlib | |
import inspect | |
import json | |
import logging | |
import os | |
import sys | |
import tarfile |
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(o) { | |
var d = null | |
, l = null; | |
function n(e) { | |
e = e || 10; | |
for (var t = "", a = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", i = 0; i < e; ) | |
t += a.charAt(Math.floor(Math.random() * a.length)), | |
i++; | |
return t | |
} |
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
info has_replied_before; | |
if(has_replied_before.toString() == "false") | |
{ | |
update_payload = {"Has_replied_before":true}; | |
update_resp = zoho.crm.updateRecord("Leads",lead_id,update_payload); | |
// now SMS the lead back | |
lead_data = zoho.crm.getRecordById("Leads",lead_id); | |
// From: the Twilio number you will use to send the message | |
from_number = "+61 123 457 686"; | |
// To: the number to which the SMS should be sent |
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
info lead_type; | |
lead_id = lead_id_str.toLong(); | |
lead_data = zoho.crm.getRecordById("Leads",lead_id); | |
// From: the Twilio number you will use to send the message | |
from_number = "+61429357123"; | |
// To: the number to which the SMS should be sent | |
to_number = lead_data.get("Phone"); | |
// The To Name will appear in the SMS Message title, e.g. "Sent to John Smith on 23-Mar-2020" | |
to_name = lead_data.get("First_Name") + " " + lead_data.get("Last_Name"); | |
// get the template ID from the URL of a template record |
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
crmAPIRequestMap = crmAPIRequest.toMap(); | |
body = crmAPIRequestMap.get("body"); | |
try | |
{ | |
body_parts = body.toList("&"); | |
message_body = ""; | |
from_number = ""; | |
message_sid = ""; | |
to_number = ""; | |
for each body_part in body_parts |
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
// ==UserScript== | |
// @name Hide emails | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://mail.google.com/mail/u/0/ | |
// @match *://abc.net.au | |
// @match *://facebook.com | |
// @match *://www.facebook.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
const request = require("request-promise"); | |
const clientID = | |
"REDACTED"; | |
const clientSecret = | |
"REDACTED"; | |
async function createSTC() { | |
const timestamp = new Date().toISOString(); | |
const signatureString = `GD:${clientID}${timestamp}${clientSecret}`; | |
const crypto = require("crypto"); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<style> | |
[data-download] { | |
color: blue; | |
} | |
[data-download][href="#"] { |