Skip to content

Instantly share code, notes, and snippets.

View girliemac's full-sized avatar
📝
Working mostly on writing docs these days

Tomomi ❤ Imura girliemac

📝
Working mostly on writing docs these days
View GitHub Profile
@girliemac
girliemac / cordova-1.html
Last active October 18, 2017 17:39
Snippets for blog, "Sending Android Push Notifications via GCM in JavaScript using PhoneGap and PubNub"
<script type="text/javascript" src="js/PushNotification.js"></script>
<script type="text/javascript" src="https://cdn.pubnub.com/pubnub-3.7.4.min.js"></script>
@girliemac
girliemac / config.2.xml
Last active October 18, 2017 20:52
[Blog] Turning Your JavaScript Chat App Into Android and iOS App with PhoneGap
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.pubnub.com" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>SimpleChat</name>
...
<platform name="ios">
<icon src="app-icon-ios.png" />
...
</platform>
@girliemac
girliemac / us-states.json
Created September 26, 2014 19:18
TopoJSON: US Map by States
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@girliemac
girliemac / 1.html
Last active July 22, 2016 21:03
Snippets for D3 Word Cloud blog
<script src="https://cdn.pubnub.com/pubnub-3.15.2.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.4.11/d3.min.js"></script>
<script src="js/d3.layout.cloud.js"></script>
@girliemac
girliemac / 0.txt
Last active October 19, 2017 01:11
Snippets for D3 Bubble Chart blog
Demo: http://pubnub.github.io/d3-bubble/
Tutorial: http://www.developer.com/java/fun-with-d3.js-data-visualization-eye-candy-with-streaming-json.html
@girliemac
girliemac / 01.html
Last active July 22, 2016 21:05
Snippets for CoDoodler Blog
<canvas id="drawCanvas" width="800" height="600"></canvas>
.highlight { background-color: #ffffcc }
.highlight .c { color: #586E75 } /* Comment */
.highlight .err { color: #93A1A1 } /* Error */
.highlight .g { color: #93A1A1 } /* Generic */
.highlight .k { color: #859900 } /* Keyword */
.highlight .l { color: #93A1A1 } /* Literal */
.highlight .n { color: #93A1A1 } /* Name */
.highlight .o { color: #859900 } /* Operator */
.highlight .x { color: #CB4B16 } /* Other */
.highlight .p { color: #93A1A1 } /* Punctuation */
/* Solarized Dark
For use with Jekyll and Pygments
http://ethanschoonover.com/solarized
SOLARIZED HEX ROLE
--------- -------- ------------------------------------------
base03 #002b36 background
base01 #586e75 comments / secondary content
@girliemac
girliemac / stickies-simple.js
Created November 9, 2013 06:03
A simplified version of stickies.js. Unlike stickies.js, this is coded only with the latest standard syntax of IndexedDB, and does NOT support the browsers that use deprecated syntax- BB10, Chrome < 23 (including Chrome Mobile v18, the first Chrome for Android) Also, the animation effect is removed from this version.
/**
* stickies-simple.js - Simplified version of stickies.js
* Unlike stickies.js, this is coded only with the latest standard syntax of IndexedDB,
* and does NOT support the browsers that use deprecated syntax:
* BB10, Chrome < 23 (including Chrome Mobile v18, the first Chrome for Android)
* Also, the animation effect is removed from this version.
**/
(function(){
@girliemac
girliemac / gist:5279460
Last active December 15, 2015 15:09
Draw On The Kitteh Demo - using the Touch Events V.1, Mouse events, and Pointer Events all together.
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width"/>
<style>
body {
font-family: "Segoe UI Web Light", "Segoe UI Light", "Segoe UI Web Regular", "Segoe UI", "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
font-size: 1.2rem;
margin: 10px;