Skip to content

Instantly share code, notes, and snippets.

@shi11
shi11 / fly-to-a-location.markdown
Created November 6, 2023 19:36
Fly to a location
@shi11
shi11 / arHunt.vue
Created July 24, 2023 14:32
Drops ARHunt vuejs example for asking for the user's location
<template>
<b-container>
<b-row align-h="center" align-v="center">
<b-col cols="12" class="col-lg-6">
<div id="bg" class="w-100">
<b-form v-if="debug" @submit.prevent="submitForm()">
<b-form-group id="user-coords">
<b-form-input
id="cords"
v-model="coordsInput"
@shi11
shi11 / horizontal-fundraising-thermometer.markdown
Created December 15, 2022 19:15
Horizontal Fundraising Thermometer

Horizontal Fundraising Thermometer

Inspired by the basic Kickstarter thermometer... Looking for a simple way to help a friend raise money with a beard-a-thon

A Pen by S. Hill on CodePen.

License.

@shi11
shi11 / index.html
Created December 26, 2015 21:31
intro slides
<html ng-app="ionicApp">
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
<link href="//code.ionicframework.com/nightly/css/ionic.css" rel="stylesheet">
<script src="//code.ionicframework.com/nightly/js/ionic.bundle.js"></script>
</head>
@shi11
shi11 / gist:2008429
Created March 9, 2012 20:15
backbone-form help/validation text
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" href="/lib/jquery-ui/flick/jquery-ui-1.8.14.custom.css" type="text/css" media="screen" />
<link rel="stylesheet" href="/src/styles/backbone-forms.css" type="text/css" media="screen" />
<script src="/lib/jquery-1.6.2.min.js"></script>
<script src="/lib/underscore-1.3.1.min.js"></script>
<script src="/lib/backbone-0.9.1.min.js"></script>
@shi11
shi11 / gist:1105883
Created July 26, 2011 03:20
mapping view interfaces
//in context
mediatorMap.mapView( MyView1, MyMediator, IView);
mediatorMap.mapView( MyView2, MyMediator, IView);
//in MyMediator
[Inject]
public var IView;
override public function onRegister() : void {
view.mySignal.add( handleSignal );
@shi11
shi11 / TwitterExample - Using Air HTML rather than Browser
Created July 14, 2010 21:56 — forked from srohde/TwitterExample.mxml
variation to srohde's example - uses Air.HTML window rather than a browser, and doesn't force the user to manually enter a pin following authentication.
<?xml version="1.0" encoding="utf-8"?>
<!-- Example app for github.com/srohde/Twitter -->
<s:WindowedApplication height="350" width="765"
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo"
xmlns:twitter="com.soenkerohde.twitter.*"
xmlns:mx1="library://ns.adobe.com/flex/mx"
currentState="initial"
creationComplete="creationCompleteHandler(event)">