Skip to content

Instantly share code, notes, and snippets.

View ivanferrer's full-sized avatar

Ivan Ferrer ivanferrer

View GitHub Profile
{
"COMMON": {
"AT": "at",
"BACK": "Back",
"GOBACK":"Back",
"CLOSE": "Close",
"I": "I",
"NO": "No",
"PLUS_N": "(+ {{n}})",
"YES": "Yes",
@ivanferrer
ivanferrer / combo-icon.js
Created July 1, 2020 19:49
Código completo
angular.module('ngGutenComboIcons', [])
.directive('comboIcon', function($sce, $window) {
return {
restrict: 'E',
name: "@",
size: "@",
tag: "@",
link: function(scope, el, attrs) {
var attr = [
app
.controller("EditorAvatarController", [
"$scope","$q","$rootScope", "$filter", "$location", "$uibModal", "$timeout","$interval","$compile","$sce","AvatarService","AlertMessagesService",
function($scope,$q, $rootScope, $filter, $location, $uibModal, $timeout, $interval, $compile, $sce, AvatarService, AlertMessagesService) {
var data_form = {
user_id:1
}
var avatar = {"status":true,"extraItens":{"face":{"beards":{"title":"Barbas","type_item":"beard","collection":[{"id":103,"image":"https:\/\/cdnguten.gutennews.com.br\/repositorio\/img\/storeitems\/icon\/barba1.svg","image_gallery":"https:\/\/cdnguten.gutennews.com.br\/repositorio\/img\/storeitems\/icon\/barba1.svg","model":"model-beard-1","type_use":0,"scn_id":null,"price":0,"level":0,"styles":"https:\/\/cdnguten.gutennews.com.br\/repositorio\/css\/storeitems\/model-beard-1.css","purchased":false,"type_item":"beard","json":null},{"id":104,"image":"https:\/\/cdnguten.gutennews.com.br\/repositorio\/im
@ivanferrer
ivanferrer / saida.html
Created March 4, 2020 16:02
HTML enviada para impressão do PDF
<style type="text/css">.container-print {background: #fff url("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/2wBDAQMDAwQDBAgEBAgQCwkLEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBD/wAARCBCTC7gDASIAAhEBAxEB/8QAHQABAQEBAAMBAQEAAAAAAAAAAAcFCAMEBgIBCf/EAF0QAQAAAwMIBQUHEAgEBQIHAAABAgMEBQYRFhhWZpWl0gcUU5LjEhUhMUETF1FhcYGUCCIyNFRVcnORk6Gxs8HR0yM2N0JSYnSyJEN1oiUzY4LChMM1REajtOHw/8QAHAEBAAEFAQEAAAAAAAAAAAAAAAQCAwUHCAEG/8QASBEBAAECAQkDCAcGBAUFAQAAAAECAwYEBRESFVJVk9IhMVEHExQXQVRhkiIycYGRobEWQnKissEzNmLRIzRzgsIkNUNE8LP/2gAMAwEAAhEDEQA/AP8AVMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
@ivanferrer
ivanferrer / ModalSponsors.js
Created February 21, 2020 20:31
Arquivo do modal
import React, { Component } from 'react'
import { Wrapper, ContentLogoImagesSponsors, ContentLogoImagesSupports } from './Sponsors.styles'
import { FontIcon } from 'components/lib/icons'
import { colors } from 'config/ui'
class ModalSponsors extends Component {
render() {
const triggerComponent = React.cloneElement(this.props.component, { onClick: this.openModal });
gutenWebappApp
.controller("EditorProducaoTextoController", [
"$scope","$sce","$rootScope", "$location",
"$uibModal", "$timeout","$interval","$routeParams","$compile","$window",
"ProducaoService", "GamesService","AutoriaService","QuillEditorService",
function($scope,$sce, $rootScope, $location,
$uibModal, $timeout, $interval, $routeParams, $compile, $window,
ProducaoService, GamesService, AutoriaService,QuillEditorService) {
@ivanferrer
ivanferrer / Quilljs.js
Created December 11, 2019 14:19
Quill JS
This file has been truncated, but you can view the full file.
var quillEditor =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
@ivanferrer
ivanferrer / App.js
Last active December 9, 2019 15:08
React-native - Arquivo de exemplo - versão antiga
import React, { Component } from 'react';
import { WebView } from 'react-native-webview';
import { Alert, Button, TextInput, View, StyleSheet, Text, Modal, Keyboard } from 'react-native';
//import { store } from 'react-redux'
import {Login} from 'combo-mobile';
import CookieManager from 'react-native-cookies';
import { NativeModules, Platform } from 'react-native';
import {
DOMAIN,
var gulp = require('gulp');
var uglify = require('gulp-uglify');
var cleanCSS = require('gulp-clean-css');
var concat = require('gulp-concat');
var paths = {
vendorcss:[
'./node_modules/jquery-autocomplete/jquery.autocomplete.css',
'./node_modules/bootstrap/dist/css/bootstrap.min.css',
'./components/fortawesome/font-awesome/v4.7.0/css/font-awesome.css',
[PHP]
date.timezone=America/Sao_Paulo
;;;;;;;;;;;
; WARNING ;
;;;;;;;;;;;
; This is the default settings file for new PHP installations.
; By default, PHP installs itself with a configuration suitable for
; development purposes, and *NOT* for production purposes.
; For several security-oriented considerations that should be taken
; before going online with your site, please consult php.ini-recommended