https://blog.logrocket.com/use-hooks-and-context-not-react-and-redux/ https://kentcdodds.com/blog/how-to-use-react-context-effectively https://medium.com/strands-tech-corner/react-state-management-without-redux-d39c7087039d
This file contains 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
function setCookie(cname, cvalue, exdays) { | |
var d = new Date(); | |
d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000)); | |
var expires = "expires="+d.toUTCString(); | |
document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/"; | |
} | |
function getCookie(cname) { | |
var name = cname + "="; | |
var ca = document.cookie.split(';'); |
This file contains 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
function doIt() { | |
var url = window.location.href | |
var findURL = '/bestill-fly' | |
if (url.indexOf(findURL)) { | |
var newCopyFlightOnly = document.querySelector("#search-tabs > ul > li:nth-child(3) > a > span") | |
newCopyFlightOnly.innerText = 'Fly' | |
} else { | |
console.log('FEL') | |
} |
- vector - "media luna" eastern - FOB
- mag - media luna bravo east 200m
- red dot - "Malca"
- 3d - "Tabacal"
- m4a1 - hunting cabin - central "floro de oror" - http://www.gamersheroes.com/game-guides/unlock-weapons-ghost-recon-wildlands/
- g33 + zoom - below center - MONTE PUNCHU - https://youtu.be/fxCkFep1HZw?t=222
- level 4 grip - montu pinchu - https://youtu.be/XO-FPHKmWdc?t=35
- 3d laser - central SAN MATEO - https://youtu.be/09M3GLK912I?t=23
- (long barrel - east "itacua")
Höjdpunkt: picka på infan (torsk) https://www.twitch.tv/videos/470676223
"later" https://clips.twitch.tv/AssiduousPolishedBadgerPartyTime
later nerds xD https://clips.twitch.tv/SparklingJoyousFlyDatSheffy
This file contains 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
const o = ['abc', 'hejhej', 'defg']; | |
const n = ['hejhej', 'defg', 'JOHAN']; | |
const getDiff = (current, neu) => { | |
return neu.filter((item, index) => { | |
if(current.indexOf(item) === -1) { | |
return item | |
} | |
}) | |
} |
This file contains 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
<html> | |
<script> | |
// step1 create application on flickr | |
const API_KEY = 'd1353a0c57b83a6dff262ea9de1c3a9c'; // 0175b82863673a7b456a7bbd08235496 | |
const USER_ID = '150531487%40N08' | |
// const SECRET = 'fc60f66a99c9b170' | |
// getPhotos | |
const apiCall = `https://api.flickr.com/services/rest/?method=flickr.people.getPhotos&api_key=${API_KEY}&user_id=${USER_ID}&format=json&nojsoncallback=1` |
I hereby claim:
- I am erikpantzar on github.
- I am epantzar (https://keybase.io/epantzar) on keybase.
- I have a public key ASDZkYi-1HmkVG_rS0V8P5WK2bT4A8bsNquP_nSBgSnwKQo
To claim this, I am signing this object:
NewerOlder