Skip to content

Instantly share code, notes, and snippets.

View mlynch's full-sized avatar
🍂
Building something new

Max Lynch mlynch

🍂
Building something new
View GitHub Profile
@mlynch
mlynch / app.plist
Last active January 27, 2019 21:38 — forked from mhartington/README.md
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key><true/>
</dict>
@mlynch
mlynch / menu.html
Last active November 2, 2017 20:32
<ion-split-pane>
<ion-menu [content]="nav" side="start"...>
</ion-menu>
<ion-nav [root]="rootPage" #nav main></ion-nav>
</ion-split-pane>
@mlynch
mlynch / directive.markdown
Last active July 31, 2017 14:37
Making of an AngularJS Directive

A while back I made a quick AngularJS directive for Bootstrap 3 Tooltips. I wanted to be able to specify tooltips on any element like this:

<button title="Settings" data-placement="bottom" data-delay="500"
data-toggle="tooltip"><i class="icon ion-gear"></i></button>

But I wanted to be able to do it without having to call $([data-toggle="tooltip"]').tooltip() every time I loaded a new page with tooltips, which is what you'd have to do if you were using vanilla jQuery and Bootstrap without something like Angular.

I built a really simple directive that worked perfectly, and I realized this was a perfect example of creating a simple custom directive that makes your life so much easier.

@mlynch
mlynch / manifest.json
Created July 20, 2012 20:02
Codiqa Project Manifest
{
"name": "Codiqa Prototypes",
"description": "Rapid Mobile Prototyping - Saves directly to Google Drive!",
"version": "1.3",
"container": "GOOGLE_DRIVE",
"api_console_project_id" : "CONSOLE_PROJECT_ID",
"intents": {
"http://drive.google.com/intents/opendrivedoc": [ {
"disposition": "window",
"href": "http://codiqadrive.appspot.com",
@mlynch
mlynch / codiqa.html
Created August 6, 2013 00:17
Codiqa Responsive Features
<div class="container">
<h2>Also included in every plan</h2>
<div class="row">
<div class="col-6 col-lg-3">
<h4>Team Collaboration</h4>
</div>
<div class="col-6 col-lg-3">
<h4>Live Preview</h4>
</div>
<div class="col-6 col-lg-3">
@mlynch
mlynch / ionicNavState.js
Created December 18, 2013 22:50
Ionic Nav State Thingy
directive('tab', ['NavStateDelegate', '$scope', function(NavStateDelegate, $scope) {
return {
//
link: function($scope, $element, $attr) {
// Indicate to this delegate we want to control a nav bar
NavStateDelegate.enable(scope);
}
}
}])
// Use client to interact with Force.com platform
client.create("Account", { "Name" : "blerg3" },
function(response) {
console.log(response);
alert("Object successfully created.");
},
function(errorXhr) {
if (errorXhr.status == 401) {
// Invalid access token
@mlynch
mlynch / helloworld.py
Created June 27, 2013 03:03
Hello world
import web
urls = ("/.*", "hello")
app = web.application(urls, globals())
class hello:
def GET(self):
return 'Hello, world!'
if __name__ == "__main__":
@mlynch
mlynch / feedthefire.js
Created April 30, 2013 16:51
FeedTheFire Codiqa Demo
var ref = new Firebase("https://YOUR_FIREBASE_NAME.firebaseio.com/");
ref.child("meta").once("value", function(snapshot) {
$("#feed > :first").html(snapshot.val().description);
});
ref.child("articles").limit(10).on("child_added", function(snapshot) {
var article = snapshot.val();
var link = $("<a>", {"href": article.link, "target": "_blank"});
$("#feed").append($("<li>").append(link.html(article.title)));
$('#feed').listview('refresh');
});
---
layout: default
title: Welcome
---
<div class="page-header">
<h1>Jetstrap Docs</h1>
</div>
Welcome!