Skip to content

Instantly share code, notes, and snippets.

View perrygovier's full-sized avatar
👨‍🏫

Perry Govier perrygovier

👨‍🏫
View GitHub Profile
@amuino
amuino / webinspector.applescript
Last active April 29, 2017 06:47
AppleScript to hook up Safari web inspector to a connected iOS device or Emulator
# Customize and Export as Application
set device_name to "My iPhone"
tell application "Safari"
activate
tell application "System Events"
click menu item "index.html" of menu device_name of menu item device_name of menu "Develop" of menu bar item "Develop" of menu bar 1 of application process "Safari"
end tell
end tell
'use strict';
var app = angular.module('Txtbinge', ['ionic', 'firebase']);
app.run(function($ionicPlatform) {
$ionicPlatform.ready(function() {
if(window.StatusBar) {
StatusBar.styleDefault();
}
});
@mlynch
mlynch / service.js
Last active August 29, 2015 14:00
Reusable cordova plugin wrapping service service
angular.module('myApp.services', [])
.factory('Camera', ['$q', function($q) {
return {
getPicture: function() {
var q = $q.defer();
navigator.camera.getPicture(function(imageURI) {
// Do any magic you need
@davideast
davideast / index.ts
Created April 15, 2015 17:25
Simple Angular 2 Forms with Firebase
import {bootstrap, Component, Decorator, View, If, For, EventEmitter} from 'angular2/angular2';
import {FormBuilder, Validators, FormDirectives, ControlGroup} from 'angular2/forms';
@Component({
selector: 'app',
injectables: [FormBuilder]
})
@View({
template: `
<div class="container" [control-group]="myForm">