Skip to content

Instantly share code, notes, and snippets.

View bright-spark's full-sized avatar
♥️
Tinkering with stuff!

martin. bright-spark

♥️
Tinkering with stuff!
View GitHub Profile
<!doctype html>
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ -->
<html>
<head>
<title>iOS 8 web app</title>
<!-- CONFIGURATION -->
@bright-spark
bright-spark / example.html
Last active September 16, 2015 23:12 — forked from kylebarrow/example.html
Prevent links in standalone web apps opening Mobile Safari
<!DOCTYPE html>
<head>
<title>Stay Standalone</title>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<script src="stay_standalone.js" type="text/javascript"></script>
</head>
<body>
<ul>
<li><a href="http://google.com/">Remote Link (Google)</a></li>
@bright-spark
bright-spark / _Stay_standalone.md
Last active September 16, 2015 23:13 — forked from irae/_Stay_standalone.md
Stay Standalone: Prevent links in standalone web apps opening Mobile Safari

#Stay Standalone

A short script to prevent internal links to a "webapp" added to iPhone home screen to open in Safari instead of navigating internally.

@bright-spark
bright-spark / gist:41330c65a4bec51ec62b
Last active September 16, 2015 23:13 — forked from cjanis/gist:3908053
Prevent internal links in iOS standalone web apps from opening in Mobile Safari
if (window.navigator.standalone) {
var local = document.domain;
$('a').click(function() {
var a = $(this).attr('href');
if ( a.match('http://' + local) || a.match('http://www.' + local) ){
event.preventDefault();
document.location.href = a;
}
});
}
@bright-spark
bright-spark / Gruntfile.js
Created October 11, 2015 02:28 — forked from konsumer/Gruntfile.js
desktop (node-webkit) & mobile (cordova) static app
'use strict';
module.exports = function(grunt) {
var pkg = grunt.file.readJSON('package.json');
grunt.initConfig({
'pkg': pkg,
'connect': {
@bright-spark
bright-spark / .gitignore
Created October 26, 2015 02:30 — forked from coolaj86/.gitignore
Forward SMS from one number to another using Twilio
config.js
poulton:Applications -->chrome-ssb.sh
What should the Application be called?
Gmail
What is the url (e.g. https://www.google.com/calendar/render)?
https://mail.google.com/mail/u/0/
What is the full path to the icon (e.g. /Users/username/Desktop/icon.png)?
/Users/poulton/Dropbox/Rocketmade/app\ icons/gmail-orangish.icns
poulton:Applications -->
/*!
* Copyright 2013 Drifty Co.
* http://drifty.com/
*
* Ionic, v0.9.17
* A powerful HTML5 mobile app framework.
* http://ionicframework.com/
*
* By @maxlynch, @helloimben, @adamdbradley <3
*
@bright-spark
bright-spark / gpControl.json
Created December 30, 2015 13:17 — forked from 3v1n0/gpControl.json
GoPro Hero4 Remote tools
{
"version":2.0,
"display_hints":[
{
"key":"GPCAMERA_GROUP_VIDEO",
"display_name":"Video Settings",
"settings":[
{
"setting_id":5,
"widget_type":"select",
@bright-spark
bright-spark / skype_history.sh
Created January 30, 2016 22:00 — forked from dive/skype_history.sh
open Skype DB with history and remove some items (Mac OS)
# shutdown Skype
# Skype username - it's a login at Skype
# Mac username - it's a short username of Mac OS X (ex.: dive)
# <...> should be entered without brackets <>
#copy this one, paste to Terminal.app and hit Enter
sqlite3 "$HOME/Library/Application Support/Skype/<your_skype_username>/main.db"
#then copy this one, paste to Terminal.app where sqlite3 running and hit Enter
delete from Messages where dialog_partner = '<delete_history_of_conversation_with_particurarly_username>';