This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import LoadingWrapper from '../components/LoadingWrapper'; | |
import * as Auth from '../services/auth'; | |
import * as User from '../services/user'; | |
import { BroadcastChannel } from 'broadcast-channel'; | |
import { isSafari, isMobileSafari } from 'react-device-detect'; | |
import { useAsync, StateType } from '../utils/hooks'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** REMOVE DUPLICATES */ | |
// BigO = n^2 | |
// function removeDuplicates(str) { | |
// const words = str.split(' '); | |
// const filteredWords = words.filter((word, i, list) => list.indexOf(word) === i) | |
// return filteredWords.join(' '); | |
// } | |
// BigO = n | |
// function removeDuplicates(str) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import set from 'lodash/fp/set'; | |
import get from 'lodash/fp/get'; | |
import omit from 'lodash/fp/omit'; | |
import pipe from 'lodash/fp/pipe'; | |
const removeFromArray = (array, target) => array.filter(n => n !== target); | |
export const addEntity = (state, entity, id) => { | |
return pipe( | |
set(['entities', id], entity), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file contains the fastlane.tools configuration | |
# You can find the documentation at https://docs.fastlane.tools | |
# | |
# For a list of all available actions, check out | |
# | |
# https://docs.fastlane.tools/actions | |
# | |
# For a list of all available plugins, check out | |
# | |
# https://docs.fastlane.tools/plugins/available-plugins |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file contains the fastlane.tools configuration | |
# You can find the documentation at https://docs.fastlane.tools | |
# | |
# For a list of all available actions, check out | |
# | |
# https://docs.fastlane.tools/actions | |
# | |
# For a list of all available plugins, check out | |
# | |
# https://docs.fastlane.tools/plugins/available-plugins |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useReducer } from 'react'; | |
const useUndoReducer = (reducer, initialState) => { | |
const undoState = { | |
past: [], | |
present: initialState, | |
future: [] | |
}; | |
const undoReducer = (state, action) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ $# -eq 0 ];then | |
echo "Escribe el path completo al archivo xml (o arrastralo hasta aquí)" | |
read file; | |
echo "Escribe el nombre del archivo de salida (con extensión)" | |
read outputFile; | |
else | |
if [ "$1" ];then | |
file=$1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if (test $# -ne 1) | |
then | |
echo "Faltan/Sobran argumentos..." | |
echo "Forma de uso borrar <origen>" | |
elif (test -f $1) | |
then | |
if (test ! -d $HOME/Papelera) | |
then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
root=CUERPO | |
declare -A directories | |
createData() | |
{ | |
directories[cabeza]=$root | |
directories[extremidades]=$root |