Skip to content

Instantly share code, notes, and snippets.

Bernat Fortet bernatfortet

Block or report user

Report or block bernatfortet

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 storeTEMPLATE.ts
import create, { GetFunction, SetFunction } from 'zustand'
export type MyStore = {
flag?: boolean
actions: MyActions
class MyActions {
View metacheck
- Check meta
Add analytics
View gist:121ae44e33178304d6dff0e90222ab79
export const extra = [
title: 'Home Assessment',
description: `First you will fill out an assessment that illuminates what life in the 21st century is for you, your family and home to make sure you understand what is causing the overwhelm and stress in your home life`,
formats: [
`1 hour of my help at your home`,
`1 hour of my help at your home`,
View block
Verifying my Blockstack ID is secured with the address 1EtceTigT7sGEk2ZWxgcF1eU8KRcMTJW1c
bernatfortet / Blockstack Verification
Last active Dec 5, 2017
Blockstack Verification
View Blockstack Verification
Verifying my Blockstack ID is secured with the address 1EtceTigT7sGEk2ZWxgcF1eU8KRcMTJW1c
bernatfortet / coinMarketCapTop20
Last active Aug 17, 2017
Reorganize coinMarketCap Top20 by volume and negative change
View coinMarketCapTop20
tbody = $('#currencies_wrapper').find('tbody');
.each( function(index, item){
if( index >= 20 )
sudo npm install -g grunt-cli react-native firebase-tools n
bernatfortet / grubMarket.js
Last active May 25, 2017
Parse grub Market deals
View grubMarket.js
$('.cards__item').each( function( item ){
console.log('item', $(this) );
var disccountStr = $(this).find('.pct-off').text();
var disccount = parseInt( disccountStr.substring(5, disccountStr.length-1) );
if( disccount < 50 ){
View addKeyListenerToReactComponent
handleKeyDown = () => {
if(event.keyCode == 32)
this.setState({ isSpacebarPressed: true })
handleKeyUp = () => {
this.setState({ isSpacebarPressed: false })
View zoomIn.js
// Zoom an increment towards the position of my mouse
export function zoomIn(mousePosition: Object) { return (dispatch, getState) => {
const currentZoom = getState().graphEditor.zoom
const nextZoom = currentZoom+ZOOM_INCREMENT < MAX_ZOOM ? currentZoom+ZOOM_INCREMENT : MAX_ZOOM
dispatch( storeZoom(nextZoom) )
const currentPan = selectors.getPan(getState())
const graphElement = document.getElementById("graph")
const graphOffset = {
You can’t perform that action at this time.