Skip to content

Instantly share code, notes, and snippets.

View devgeeks's full-sized avatar

tommy-carlos williams devgeeks

View GitHub Profile
/*
* object.watch polyfill
*
* 2012-04-03
*
* By Eli Grey, http://eligrey.com
* Public Domain.
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
*/
@devgeeks
devgeeks / example-download-and-open.js
Last active January 17, 2023 15:17
Example file download and open in Cordova inAppBrowser
window.requestFileSystem(LocalFileSystem.TEMPORARY, 0, gotFS, fail);
function fail(error) {
console.log(error)
}
function gotFS(fileSystem) {
fileSystem.root.getDirectory("data", {create: true, exclusive: false}, gotDir, fail);
}
@devgeeks
devgeeks / component.json
Created April 20, 2013 14:45
Example of using bower to just get the file you want, not everything else...
{
"name": "MyExampleApp",
"version": "0.1.0",
"dependencies": {
"jquery": "http://code.jquery.com/jquery-1.9.1.min.js"
}
}
@devgeeks
devgeeks / icons.js
Created May 14, 2013 23:51
icons.js hook in after_prepare (could be better in after_platform_add)
#!/usr/bin/env node
(function() {
var projectName = 'SpiderOak',
fs = require('fs'),
path = require('path'),
res = path.join('.', 'www', 'res', 'icon'),
androidDest = path.join('.', 'platforms', 'android', 'res'),
iOSDest = path
.join('.', 'platforms', 'ios', projectName, 'Resources', 'icons');
@devgeeks
devgeeks / index.js
Created November 13, 2013 06:53
A test of failing manual backbutton event triggers
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
@devgeeks
devgeeks / fixinputs.css
Last active August 29, 2015 13:58
Fix for native overlaid inputs in android
input[type="password"], input[type="text"] {
position:relative;
top: -10000px;
-webkit-transform: translate3d(0, 9980px, 0); // might have to tweak 9980 to suit your input
}

Keybase proof

I hereby claim:

  • I am devgeeks on github.
  • I am devgeeks (https://keybase.io/devgeeks) on keybase.
  • I have a public key whose fingerprint is 5D91 5A41 7999 815E BDCD 2516 F779 3932 8844 F59F

To claim this, I am signing this object:

@devgeeks
devgeeks / config.xml
Last active August 29, 2015 14:02
config.xml for Canvas2ImageDemoBuild (https://build.phonegap.com/apps/946650/share)
<?xml version="1.0" encoding="UTF-8"?>
<!-- config.xml reference: https://build.phonegap.com/docs/config-xml -->
<widget xmlns = "http://www.w3.org/ns/widgets"
xmlns:gap = "http://phonegap.com/ns/1.0"
id = "org.devgeeks.canvas2imagedemobuild"
version = "1.0.0">
<name>Canvas2ImageDemoBuild</name>
@devgeeks
devgeeks / jsbin.sowacoha.css
Created August 8, 2014 13:05 — forked from anonymous/jsbin.sowacoha.css
An example of a masonry UI
body {
font-family: Helvetica;
font-size: 100%;
background-color: #fff;
color: #222;
}
.app {
position: absolute;
top: 0;
@devgeeks
devgeeks / index.html
Last active August 29, 2015 14:24 — forked from anonymous/index.html
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="A simple mobile page with header, main content, and a footer">
<meta charset="utf-8">
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width" />
<meta name="msapplication-tap-highlight" content="no" />
<meta name="format-detection" content="telephone=no" />
<title>A simple mobile page with header, main content, and a footer</title>
<style id="jsbin-css">