Skip to content

Instantly share code, notes, and snippets.

:octocat:
#building

Leon Gaban leongaban

:octocat:
#building
Block or report user

Report or block leongaban

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
View scopeFactory
/*global angular*/
/* =========================================
--------------------------------------------
Save a scope:
var vs = $scope;
ScopeFactory.saveScope('alerts', vs);
Retrieve a scope:
var alertScope = ScopeFactory.getScope('alerts');
@leongaban
leongaban / fix-html-comments-sublime
Created Mar 29, 2015
Fixing auto comments in HTML files in Sublime Text 2 & 3
View fix-html-comments-sublime
http://wesbos.com/fix-sublime-text-toggle-comment/
The underlying problem is inside the HTML syntax file and it is actually an easy fix.
We need to edit the HTML.tmLanguage file that is located in preferences → browse packages → HTML.
Open it up and look for a line that looks like the following. It should be around line 286.
<string>(?:^\s+)?(&lt;)((?i:script))\b(?![^&gt;]*/&gt;)</string>
@leongaban
leongaban / tickersPanelDirectives
Last active Aug 29, 2015
tickersPanelDirectives
View tickersPanelDirectives
/*global angular*/
/* =============================================================================
Tickers panel directives
============================================================================= */
(function() { "use strict";
var app = angular.module('tickersPanelDirectives', [])
View tickers-panel
<section class="panel tickers-panel">
<header class="quick-find">
<ul>
<li ng-class="{'active':tickersAll}"
ng-click="tickersAll = true; getTickers('all')">All</li>
<li ng-class="{'active':!tickersAll}"
ng-click="tickersAll = false; getTickers('port')">Port</li>
<li><div class="quick-search-ico"></div></li>
</ul>
@leongaban
leongaban / keyCodes
Created May 8, 2015
Key value pairs for keyCodes
View keyCodes
var keys = [
{ k: 48, v: '0' },
{ k: 49, v: '1' },
{ k: 50, v: '2' },
{ k: 51, v: '3' },
{ k: 52, v: '4' },
{ k: 53, v: '5' },
{ k: 54, v: '6' },
{ k: 55, v: '7' },
{ k: 56, v: '8' },
View scopeFactory.js
/*global angular*/
/* =============================================================================
Scope factory | stores and retrieves $scopes
============================================================================= */
(function() { "use strict";
var app = angular.module('scopeFactory', [])
@leongaban
leongaban / app.js
Last active Aug 29, 2015
temp app.js
View app.js
/*global angular*/
/** ============================================================================
----------------------------------------------------------------------------- */
/**
* Main TickerTags Dashboard App module
* @namespace Controller
* @desc Injects all modules and controls the $rootScope
* @summary "Connecting trending social content to investable companies."
* @copyright TickerTags 2015
View tagsHoverDirective.js
function directive () {
var directive = {
template :
'<div class="tags-hover-container" ng-show="tgh.tag.tagsHoverDisplay"> ' +
'<div class="tag-info-padding"> ' +
'<div class="tweets-direction" ng-hide="!tgh.tag.quantity"> ' +
'<div ng-hide="tgh.tag.length"> ' +
'<div ng-class="{"green-up": tgh.tag.direction == "positive", ' +
'"red-down": tgh.tag.direction == "negative", ' +
'"" : tgh.tag.direction == "stagnant"}"> ' +
View gist:b28041b258e010815e6e
/*global angular*/
////////////////////////////////////////////////////////////////////////////////
/**
* @name getTickersFactory
* @namespace Factories
* @desc Pulls the tickers list needed (Portfolio / Searched)
*/
(function() {
'use strict';
@leongaban
leongaban / gulpfile.js
Last active Apr 12, 2016
gulpfile.js
View gulpfile.js
////////////////////////////////////////////////////////////////////////////////
/**
* @name Gulp taskrunner
* @desc Gulp taskrunner for TickerTags.dashboard
*/
var gulp = require('gulp'),
gutil = require('gulp-util'),
gulpif = require('gulp-if'),
uglify = require('gulp-uglify'),
You can’t perform that action at this time.