Skip to content

Instantly share code, notes, and snippets.

Carlos Villuendas Zambrana carlosvillu

Block or report user

Report or block carlosvillu

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
@carlosvillu
carlosvillu / at.js
Last active Sep 5, 2019
adobe target tag
View at.js
window.adobe=window.adobe||{},window.adobe.target=function(){"use strict";var t=window,n=document,e=!n.documentMode||n.documentMode>=10,r=n.compatMode&&"CSS1Compat"===n.compatMode&&e,o=t.targetGlobalSettings;function i(){}if(!r||o&&!1===o.enabled)return t.adobe=t.adobe||{},t.adobe.target={VERSION:"",event:{},getOffer:i,getOffers:i,applyOffer:i,applyOffers:i,sendNotifications:i,trackEvent:i,triggerView:i,registerExtension:i,init:i},t.mboxCreate=i,t.mboxDefine=i,t.mboxUpdate=i,"console"in t&&"warn"in t.console&&t.console.warn("AT: Adobe Target content delivery is disabled. Update your DOCTYPE to support Standards mode."),t.adobe.target;var u=window,c=document,a=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable;var l=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var n={},e=0;e<10;e++)n["_"+String.fromCharCode(e)]=e;if("0123456789"!==Object.getOwnPropertyNames(n).map(function(t
View ma-filters
{
"form": {
"id": "milanuncios-filter",
"type": "group",
"label": "Busca en milanuncios",
"actionlabel": "Buscar",
"fields": [
{
"id": "palabras",
"type": "text",
View fb.json
{
"form": {
"id": "milanuncios-filter",
"type": "group",
"label": "Busca en milanuncios",
"actionlabel": "Buscar",
"fields": [
{
"id": "palabras",
"type": "text",
View coc-settings.json
{
"suggest.echodocSupport": true,
"suggest.maxCompleteItemCount": 20,
"coc.preferences.formatOnSaveFiletypes": ["javascript", "typescript", "typescriptreact", "json", "javascriptreact"],
"eslint.filetypes": ["javascript", "typescript", "typescriptreact", "javascriptreact"],
"eslint.autoFixOnSave": true,
"yaml.format.enable": true,
"yaml.format.singleQuote": true,
"yaml.validate": true,
"diagnostic.errorSign": "x",
View init.vim
" PLUGINS
" ******************************************************************************
call plug#begin()
Plug 'fugalh/desert.vim' " ColorSchema
Plug 'airblade/vim-gitgutter' " display git changes on left column
Plug 'itchyny/vim-gitbranch' " Git
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } " Fuzzy Search
Plug 'junegunn/fzf.vim' " Fuzzy Search
Plug 'Quramy/tsuquyomi' " TypeScript Support
@carlosvillu
carlosvillu / HTTPUserRepository.js
Created Dec 2, 2017
PoC para decoradores de sui-domain
View HTTPUserRepository.js
import {config, logger, performance} from '@s-ui/domain'
@logger
@config
@performance
export default class HTTPUserRepository {
current () {
this._log('start request')
this._config().get()
}
@carlosvillu
carlosvillu / webpack.hjs.js
Created Aug 4, 2016
La configuración de webpack definitiva
View webpack.hjs.js
const webpack = require('webpack')
const getConfig = require('hjs-webpack')
const isDev = (process.env.NODE_ENV || 'development') === 'development'
const isProd = !isDev && process.env.NODE_ENV === 'production'
const PRO_PUBLIC_PATH = ''
const DEV_PUBLIC_PATH = ''
const PUBLIC_PATH = isProd ? PRO_PUBLIC_PATH : DEV_PUBLIC_PATH
const GA_ID = 'UA-XXXXX-Y'
View problema-componente.js
import React from 'react';
import ReactDom from 'react-dom';
import axios from 'axios';
class Header extends React.Component {
constructor() {
super()
debugger
this.state = {
name: '',
@carlosvillu
carlosvillu / cookie-parser.js
Last active Dec 28, 2015
Utility to work with cookies
View cookie-parser.js
@carlosvillu
carlosvillu / download.js
Last active Dec 22, 2015
Download Wallpapers from Blizzard
View download.js
const range = require('lodash.range');
const flatten = require('flatten');
const Promise = require('bluebird');
const fs = require('fs');
const RANGE = 60;
const RESOLUTIONS = ['1440x900','1600x900'];
const STATUS_OK = 200;
const ENCODING_FILE = 'binary';
You can’t perform that action at this time.