Skip to content

Instantly share code, notes, and snippets.

@anton000
anton000 / Globe4gLTE.md
Created January 18, 2019 13:38 — forked from pongstr/Globe4gLTE.md
Access to Globe Broadband's Azatech DSL5001EN Router

Globe 4G LTE (Internet Only)

Noob access to administer your local area network and wifi access:

http://192.168.254.254

username: user
password: @l03e1t3
@anton000
anton000 / gist:9094022
Last active August 29, 2015 13:56
$http $q wrap
$scope.fetchData = function() {
if ($scope.async) {
$scope.async.reject();
}
$scope.async = testAsync();
$scope.async.promise.then(
function(data){
console.log('success' + data);
},
@anton000
anton000 / hoganjs-compiler.php
Last active August 29, 2015 13:56
PHP v8js based hoganjs pre compiler
<?php
V8Js::registerExtension('hogan-compiler.js',file_get_contents('hogan-2.0.0.js'),array(),false);
class HoganCompiler extends V8Js
{
public $template;
private $expose;
private $result;
@anton000
anton000 / socket.js
Last active August 29, 2015 13:56
Socketio wrapper directive with event handler cleaner / unlistener
App.factory('socket', ['$rootScope',
function($rootScope) {
var socket = io.connect('127.0.0.1:8080');
return {
on: function(eventName, callback) {
//set up callback wrapper temp var so we can return it later
var temp = function() {
var args = arguments;
$rootScope.$apply(function() {
callback.apply(socket, args);