Skip to content

Instantly share code, notes, and snippets.

estrenando repositorios privados

Jesus Franco tzkmx

estrenando repositorios privados
View GitHub Profile
tzkmx / ResponsiveImage.jsx
Created Dec 2, 2020
custom responsive picture item using pixboost service
View ResponsiveImage.jsx
import React from 'react'
const host = ''
const apiKey = 'pixboost'
const imageBoosted = (relativeUrl, resize = false) => {
return '' +
host +
relativeUrl +
tzkmx / input.scss
Created Nov 25, 2020
Generated by
View input.scss
@mixin full-height {
height: 100%;
margin: 0;
@mixin flex-center-x-y {
display: flex;
justify-content: center;
align-items: center;
html, body {
tzkmx / Countdown.jsx
Last active Nov 24, 2020
useCountdown hook
View Countdown.jsx
import React from 'react'
import { useCountdown } from 'hooks/useCountdown'
export function Countdown ({ launch }) {
const { days, hours, minutes, seconds } = useCountdown(launch)
return (
<div className='Countdown'>
<div className='count'>
<div className='time D'>&nbsp;{days}</div>
tzkmx / weakset-refs.js
Created Nov 9, 2020
WeakSet as potential call stack overflow prevention?
View weakset-refs.js
// Execute a callback on everything stored inside an object
function execRecursively(fn, subject, _refs = null){
_refs = new WeakSet();
// Avoid infinite recursion
tzkmx /
Last active Oct 15, 2020
Background Push Notification
public class NotificationService extends FirebaseMessagingService {
public void onMessageReceived(RemoteMessage remoteMessage) {
Notification notification = new NotificationCompat.Builder(this)
NotificationManagerCompat manager = NotificationManagerCompat.from(getApplicationContext());
tzkmx / sequelize-migration-with-updates.js
Created Aug 20, 2020
Sequelize Migration With Updates
View sequelize-migration-with-updates.js
'use strict';
const tags = {
Negocios: 'business',
Social: 'social',
Familiar: 'familiar',
Personal: 'personal'
module.exports = {
View listFiles.js
const minio = require('minio')
const config = {
endPoint: '',
port: 443,
useSSL: true,
accessKey: 'XXXXX',
secretKey: 'XXXXXX'
tzkmx / .env.example
Last active Jun 25, 2020
Minimal sending of Laravel Emails
View .env.example
MAIL_FROM_NAME="Hey Dude/tte"
tzkmx / middleware.php
Last active May 28, 2020
Guzzle Middleware debug Headers & Body on Request and Response
View middleware.php
use GuzzleHttp\Client;
use GuzzleHttp\Handler\CurlHandler;
use GuzzleHttp\Handler\CurlMultiHandler;
use GuzzleHttp\HandlerStack;
use GuzzleHttp\Middleware;
use Illuminate\Support\Facades\Log;
use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\ResponseInterface;
tzkmx /
Last active May 28, 2020
Monitoreo reproducción video a los 5 segundos (Google Tag Manager, play event at 5 seconds started)

Real event analytics is fired by platform tag (Universal Analytics)

  • uses custom Data Layer Variables set by monitor script
  • uses custom event, verifies category is set to value by monitor
  • only invoked once


You can’t perform that action at this time.