Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Sharry Stowell molinto

🎯
Focusing
  • Molinto
  • United Kingdom
Block or report user

Report or block molinto

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:b5846e992f81b8171c87b40ad521268a
app.get('/user/status/:id', User.status);
userStatus - determines the status of the user:
blocked,
over quota,
logged on,
@molinto
molinto / activeCampaignAPI3.txt
Created Apr 19, 2016
Active Campaign API v3
View activeCampaignAPI3.txt
API v3 known endpoints:
[GET with SESSION]
https://SUBDOMAIN.api-us1.com/api/3/tags
https://SUBDOMAIN.api-us1.com/api/3/tags/1
https://SUBDOMAIN.api-us1.com/api/3/contacts
https://SUBDOMAIN.api-us1.com/api/3/contacts/7
https://SUBDOMAIN.api-us1.com/api/3/deals
@molinto
molinto / intercomOnAc.js
Last active Feb 22, 2016
Active Campaign Intercom JS
View intercomOnAc.js
%HEADERNAV%
%PAGECONTENT%
%FOOTER%
<script>
var sitename = "%SITEURL%";
sitename = sitename.replace(".activehosted.com", "").replace("https://", "");
sitename = sitename.replace(".primaryDomain.com", "").replace("http://", "");
var email = "%USEREMAIL%";
@molinto
molinto / x-delayed-type.js
Last active May 27, 2016
CloudAMQP delayed msg example
View x-delayed-type.js
/*
Example from:
https://www.cloudamqp.com/blog/2016-02-05-rabbitmq_delayed_message_exchange_plugin_with_node_js.html
BY LOVISA JOHANSSON POSTED 2016-02-05
*/
var amqp = require('amqplib/callback_api');
var amqpConn = null;
@molinto
molinto / docker-compose.yml
Created Sep 17, 2015
Microservices nodejs
View docker-compose.yml
## from example: https://github.com/ibmjstart/Microservices/tree/split ##
productapi:
build: ./services/productAPI
ports:
- "49760:8080"
cartapi:
build: ./services/cartAPI
ports:
View quaderno-charges-for-stripe.html
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Quaderno.js for One-off Charges on Stripe</title>
<!-- The required libs -->
<script type="text/javascript" src="https://js.stripe.com/v2/"></script>
<script type="text/javascript" src="https://js.quaderno.io/v2/"></script>
View Nginx config
# NODEJS express on port 3001
upstream nodeapp {
server IPADDRESS:3001;
}
# NGINX Server Instance
server {
listen 80;
server_name localhost;
root /home/path/to/website;
@molinto
molinto / 0_reuse_code.js
Last active Aug 29, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@molinto
molinto / fourSquareAPI.js
Created Jul 24, 2012
Titanium FourSquare API Integration
View fourSquareAPI.js
/*
Author: James Shrager (@jshrager)
Intended use: Appcelerator Titanium
Usage: http://www.LearningTitanium.com (@learningTi)
*/
var client_id = "YOUR_CLIENT_ID";
var client_secret = "YOUR_CLIENT_SECRET";
var redirectUri = 'http://YOUR_URL/foursquareCallback.php';
var ui = require('ui/ui');
You can’t perform that action at this time.