Skip to content

Instantly share code, notes, and snippets.

View ethernetdan's full-sized avatar

Dan Gillespie ethernetdan

  • Indent
  • New York, NY
View GitHub Profile
#!/usr/bin/env bash
ROOT_DIR=~/repos
function main() {
export REMOTE=$1
info "Checking the validity of remote $REMOTE"
checkRepo $REMOTE
repo=$(parseRepo)
<html>
<head>
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="./layer.js"></script>
</head>
<body>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="canvas">
<g>
<rect x="10" y="10" height="110" width="110" style="stroke:#ff0000; fill: #0000ff" transform="rotate(261.042 60 60)">
@ethernetdan
ethernetdan / FirebaseListAdapter.java
Created April 16, 2014 16:49
Open Source class for helping to connect ListViews to Firebase
package com.firebase.androidchat;
import android.app.Activity;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import com.firebase.client.ChildEventListener;
import com.firebase.client.DataSnapshot;
@ethernetdan
ethernetdan / MainActivity.java
Created January 25, 2014 23:54
it's a gist, get it?
package com.ampvita.bubbleserver;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothServerSocket;
import android.bluetooth.BluetoothSocket;
import android.os.Handler;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.app.ActionBar;
import android.support.v4.app.Fragment;
import android.os.Bundle;