Skip to content

Instantly share code, notes, and snippets.

View fastcodecoq's full-sized avatar

Fastcode fastcodecoq

View GitHub Profile
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.flvjs = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
(function (process,global){
/*!
* @overview es6-promise - a tiny implementation of Promises/A+.
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contrib
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.flvjs = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
(function (process,global){
/*!
* @overview es6-promise - a tiny implementation of Promises/A+.
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contrib
<select
class="form-control"
ng-model="user.country"
ng-options="country as country.name for item in countries track by country.country_code"
required
ng-init="countries[0]"
ng-change="setStates(item)"
>
</select>
package com.eyenation.model.core.rest;
import com.eyenation.model.core.broker.TagBroker;
import com.eyenation.model.core.broker.VideoBroker;
import com.eyenation.model.core.broker.VideoSoldHistoryBroker;
import com.eyenation.model.core.broker.VideoTagBroker;
import com.eyenation.model.core.exceptions.NonexistentEntityException;
import com.eyenation.model.core.exceptions.PreexistingEntityException;
import com.eyenation.model.core.jpa.CategoryTranslationJpaController;
import com.eyenation.model.core.jpa.TagTranslationJpaController;
@fastcodecoq
fastcodecoq / Dockerfile
Created October 21, 2016 05:36 — forked from Gazler/Dockerfile
Phoenix Dockerfile
FROM ubuntu
RUN apt-get update
RUN apt-get install -y wget unzip git make
RUN wget http://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb
RUN dpkg -i erlang-solutions_1.0_all.deb
RUN apt-get update
RUN apt-get -y install erlang
{"Vehículos - Motos":["Carros","Motos","Accesorios para carros","Accesorios para motos","Camiones - Vehículos comerciales","Barcos - Aviones","Otros vehículos"],"Propiedades - Inmuebles":["Apartamentos - Casas - VENTA","Apartamentos - Casas - ARRIENDO","Alojamiento vacacional - ARRIENDO","Inmuebles comerciales - VENTA","Inmuebles comerciales - ARRIENDO","Lotes - VENTA"],"Teléfonos - Tablets":["Teléfonos - Celulares","Tablets","Accesorios"],"TV - Audio - Video - Cámaras":["TV - Proyectores - Video beams","Reproductores de Video","Audio","Cámaras y accesorios"],"Computadores - Portátiles":["Computadores de escritorio","Portátiles - Laptops","Impresoras - Scanners - Multifuncionales","Monitores","Accesorios - Componentes - Otros"],"Video juegos - Consolas":["Consolas","Video juegos","Accesorios - Otros"],"Muebles - Hogar - Jardin":["Muebles","Almacenes - Oficinas","Decoración","Jardines - Exteriores","Accesorios - Otros","Bricolaje - Mejorar tu casa"],"Electrodomésticos":["Cocina","Neveras - Congeladores","Lavad
import { Component } from '@angular/core';
@Component({
selector: 'click-me',
template: `
<button (click)="onClickMe()">Click me!</button>
{{clickMessage}}`
})
export class ClickMeComponent {
clickMessage = '';
onClickMe(){
/*
ALLTOJSON NODEJS EXCEL TABLE FORMATER
IMPORTANT: This function only works if you are using alltojson module
PARAMS
@param
Name: sheets
Required
"Sheet1": {
"!ref": "A1:D2",
"A1": {
"t": "s",
"v": "Code",
"r": "<t>Code</t>",
"h": "Code",
"w": "Code"
},
"B1": {
String.prototype.ellipsis = function(limit){
var limit = limit || 50;
console.log(this +'');
var st = (this + '').substring(0,limit);
var complete = '';
if(this[limit] != ' ')