Skip to content

Instantly share code, notes, and snippets.

Anant Narayanan anantn

Block or report user

Report or block anantn

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
anantn / Auctionator.lua
Created Jan 4, 2015
Auctionator Plugin for Skillet
View Auctionator.lua
Skillet: A tradeskill window replacement.
Copyright (c) 2007 Robert Clark <>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Keybase proof

I hereby claim:

  • I am anantn on github.
  • I am anant ( on keybase.
  • I have the public key with fingerprint 42DD 4F90 7C5F 4576 D6F4  2202 C31C 2D8C 7B4B 6B02

To claim this, I am signing this object:

anantn / simple_angular.html
Created Jan 13, 2014
Simple 2-way binding with AngularJS
View simple_angular.html
<script src=""></script>
<body ng-app>
<div ng-controller="MyApp">
<input type="text" ng-model="name"/><br/>
<h1 ng-cloak>Hi {{name}}!</h1>
anantn / gist:8405484
Last active Jan 3, 2016
AngularFire Starter
View gist:8405484
<!doctype html>
<html lang="en" ng-app="chat">
<meta charset="UTF-8">
<title>AngularFire Chat Demo</title>
<link rel="stylesheet" type="text/css" href="">
<script src=""></script>
<body ng-controller="Chat">
anantn / firebase_chat.html
Created May 6, 2013
A simple, plugin-free chat room - build with Firebase
View firebase_chat.html
<script src=""></script>
<ul id="chat-list">
<input type="text" id="msg"/>
<input type="button" id="send" value="Send"/>
anantn / angular_promise.html
Created Apr 3, 2013
An example showing the use of angular $q promises to authenticate a Firebase session and then writing data.
View angular_promise.html
<html ng-app="test">
<script type="text/javascript" src=""></script>
<script type="text/javascript" src=""></script>
<body ng-controller="Test">
<script typ="text/javascript">
function TestController($scope, $q) {
this._q = $q;
this._scope = $scope;
anantn / todomvc_angularFire.diff
Created Mar 22, 2013
Changes required to make AngularJS/TodoMVC real-time with angularFire.
View todomvc_angularFire.diff
diff -ur ../todomvc/architecture-examples/angularjs/index.html examples/todomvc/index.html
--- ../todomvc/architecture-examples/angularjs/index.html 2013-03-15 15:31:06.000000000 -0700
+++ examples/todomvc/index.html 2013-03-22 15:21:00.000000000 -0700
@@ -61,9 +61,10 @@
<script src="components/todomvc-common/base.js"></script>
<script src="components/angular/angular.js"></script>
+ <script src=""></script>
+ <script src="../../angularFire.js"></script>
<script src="js/app.js"></script>
anantn / firebase_snapshot_parent.js
Last active Sep 30, 2019
Firebase: Get the parent of a snapshot.
View firebase_snapshot_parent.js
function getParent(snapshot) {
// You can get the reference (A Firebase object) from a snapshot
// using .ref().
var ref = snapshot.ref();
// Now simply find the parent and return the name.
return ref.parent().name();
var testRef = new Firebase("");
testRef.once("value", function(snapshot) {
anantn / backfire.diff
Created Jan 11, 2013
Changes to needed to make TODOmvc real-time with Firebase <-> Backbone
View backfire.diff
--- ../backbone/examples/todos/todos.js 2013-01-08 17:02:02.000000000 -0800
+++ todos.js 2013-01-10 17:33:56.000000000 -0800
@@ -1,7 +1,6 @@
// An example Backbone application contributed by
// [Jérôme Gravel-Niquet]( This demo uses a simple
-// [LocalStorage adapter](backbone-localstorage.html)
-// to persist Backbone models within your browser.
+// Firebase adapter to persist Backbone models.
// Load the application once the DOM is ready, using `jQuery.ready`:
anantn / firefox_ext_iframe.js
Created Jan 1, 2013
Creating an iframe in Firefox extension code
View firefox_ext_iframe.js
if (Components && Components.classes) {
// This means we are in a Firefox extension.
var appShell = Components.classes[";1"]
// hiddenDoc will now point to a regular DOM document.
var hiddenDoc = appShell.hiddenDOMWindow.document;
// Create an iframe.
let iframe = hiddenDoc.createElementNS("", "iframe");
You can’t perform that action at this time.