Skip to content

Instantly share code, notes, and snippets.

View billpull's full-sized avatar

Bill Pullen billpull

  • ParlayPlay
  • Miami, FL
View GitHub Profile
@billpull
billpull / PositionProvider.ts
Last active January 26, 2023 00:34
Capacitor Use Watch Position w/ Fallback to Get Current Position
const PositionProvider: React.FC = ({ children }) => {
const position = useCurrentPosition();
return (
<WatchLocationContext.Provider value={position}>
{children}
</WatchLocationContext.Provider>
);
};
@billpull
billpull / keybase.md
Created June 27, 2018 15:16
keybase.md

Keybase proof

I hereby claim:

  • I am billpull on github.
  • I am billpull (https://keybase.io/billpull) on keybase.
  • I have a public key ASAnKPctP_bKIvB6RC1841xeWz3rB_NC_hVpFcKiDLJFDwo

To claim this, I am signing this object:

import Ember from 'ember';
export default Ember.Component.extend({
classNames:['cx-modal'],
attributeBindings: ['tabindex:tabindex','role:role'],
role:'dialog',
tabindex:0,
didRender(){
this.$().children().first().focus();
},
@billpull
billpull / index.js
Last active May 25, 2016 03:32
In Repo Addon Move & Remove Routes
/*jshint node:true*/
var stew = require('broccoli-stew');
var Funnel = require('broccoli-funnel');
var BroccoliMergeTrees = require('broccoli-merge-trees');
var OPTIONAL_ROUTES = [
'optional-1',
'optional-2'
];
@billpull
billpull / index.js
Created December 8, 2015 07:05
nightmarescript.js
#!/usr/bin/env node
var fs = require('fs');
var path = require('path');
var log = require('verbalize');
var yaml = require('js-yaml');
var Nightmare = require('nightmare');
var Promise = require('q').Promise;
var argv = require('minimist')(process.argv.slice(2));
@billpull
billpull / ember-cli-build.js
Last active November 16, 2015 16:46
Ember Build Script for Separating Pods
/* global require, module */
var stew = require('broccoli-stew');
var concat = require('broccoli-concat');
var Funnel = require('broccoli-funnel');
var replace = require('broccoli-string-replace');
var mergeTrees = require('broccoli-merge-trees');
var esTranspiler = require('broccoli-babel-transpiler');
var HtmlbarsCompiler = require('ember-cli-htmlbars');
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
{{x-toggle}}
{{ -- display logic for hours }}
{{/x-toggle}}
@billpull
billpull / components.user-comment.js
Created July 27, 2015 19:42
Share Actions Outlet
import Ember from 'ember';
export default Ember.Component.extend({
actions: {
renderTopLevel: function () {
this.sendAction('renderTopLevel');
},
renderPost: function () {
this.sendAction('renderPost');
}
@billpull
billpull / font-face.css
Created April 9, 2015 22:21
Font Face Formatting
@font-face {
font-family: 'eagle-bookregular';
src: url('/fonts/WW/EAGLBK.eot');
src: url('/fonts/WW/EAGLBK.eot?#iefix') format('embedded-opentype'),
url('/fonts/WW/EAGLBK.woff2') format('woff2'),
url('/fonts/WW/EAGLBK.woff') format('woff'),
url('/fonts/WW/EAGLBK.ttf') format('truetype');
font-weight: bold;
font-style: normal;
}
@billpull
billpull / SassMeister-input.scss
Created April 7, 2015 21:34
Generated by SassMeister.com.
// ----
// Sass (v3.4.12)
// Compass (v1.0.3)
// ----
/*CUSTOM*/
body{
#HeaderBar {
background: none;
margin-bottom: 0;