Skip to content

Instantly share code, notes, and snippets.

View molinto's full-sized avatar
🎯
Focusing

Sharry Stowell molinto

🎯
Focusing
  • Molinto
  • United Kingdom
View GitHub Profile
location ~ ^/(assets|fonts|pdfs)/ {
try_files $uri @rgts;
expires max;
add_header Cache-Control public;
add_header Last-Modified "";
add_header ETag "";
break;
}
@polimorfico
polimorfico / quaderno-subscriptions-for-paypal.html
Last active August 29, 2015 14:22
Create a PayPal subscriptions with Quaderno.js
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Quaderno.js for PayPal Subscriptions</title>
<!-- jQuery is used only for this example; it isn't required to use Quaderno -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<!-- The required Quaderno lib -->
@bob-sims
bob-sims / 00-readme.md
Created September 24, 2012 21:53
Staff Directory demo app for Appcelerator #TiMob training

#Overview

I created this simple Staff Directory App as a demonstration for a small internal staff training workshop. Finished product shown below, goal throughout class was to explain code walkthrough and learning resources in pieces, allowing students to create app as a practical exercise.

..

My goals:

  • Show utility of Titanium Mobile to rapidly create simple, x-platform, enterprisey apps (clever term via @thiswayup)
  • Demonstrate use of app template (Master/Detail) included as part of Ti Studio.
@parsley72
parsley72 / keeniolocationmap.html
Last active March 9, 2016 07:34
Very basic demo of how to display Keen.io locations on a Google map. I've left out my Project ID and Read Key (for obvious reasons) so to get it to work you need to replace [PROJECT ID], [READ KEY] and [EVENT COLLECTION] with your own settings. Alternatively, go to the Keen.io Workbench for your project, select the Event Collection, set Analysis…
<!DOCTYPE html>
<html>
<head>
<title>Keen.io location map</title>
<style>
#map-canvas {
min-height: 400px;
width: 100%;
@molinto
molinto / activeCampaignAPI3.txt
Created April 19, 2016 11:21
Active Campaign API v3
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
@Xaynder
Xaynder / app.js
Created November 5, 2012 12:35
Titanium iOS Sliding Menu
//// ---- Menu window, positioned on the left
var menuWindow = Ti.UI.createWindow({
top:0,
left:0,
width:150
});
menuWindow.open();
//// ---- Menu Table
// Menu Titles
@mauriciord
mauriciord / app.js
Last active January 26, 2017 12:56
Facebook request
var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
//requestify
var requestify = require('requestify');
@lkptrzk
lkptrzk / 1-scrape-egghead.js
Last active June 13, 2017 14:01
scrape egghead lessons
var request = require('request')
var cheerio = require('cheerio')
function collapse (text) {
return (
text
.replace(/\\t/g, '')
.replace(/\\r/g, '')
.replace(/\\n/g, '')
@aaronthorp
aaronthorp / README.md
Last active September 22, 2017 19:09
Meteor.js - Fibers/Future For Client-Server Return. @aaronthorp

Meteor.js - Fibers/Future For Client-Server Return

Provides future implementation for Meteor.call functions returning data to the client side.

Support us via Gittip

@nackjicholson
nackjicholson / injection-spec.js
Created April 26, 2015 02:27
Better tests, proxyquire vs injection vs mockless
var assert = require('assert')
var sinon = require('sinon')
var dependency = require('dependency')
var sut = require('./injection-sut')
describe('sut', function () {
var methodStub
beforeEach(function () {
methodStub = sinon.stub(dependency, 'method')