https://developer.apple.com/library/archive/navigation/
I arrived here via google search:
https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/OSX_Technology_Overview
Other conceptual sections I found via wayback machine:
/* Usage | |
import { readFile, profileOrient, createImage } from '../../helpers/ImageHelper'; | |
readFile(file) | |
.then(createImage) | |
.then(profileOrient.bind(undefined, file.type)) | |
.then(blob => {}) | |
*/ | |
// nodemodule used to learn the orientation of an image. | |
import exif from 'exif-js'; |
https://developer.apple.com/library/archive/navigation/
I arrived here via google search:
https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/OSX_Technology_Overview
Other conceptual sections I found via wayback machine:
// used to simplify: http://www.databaseanswers.org/data_models/index.htm | |
// and http://www.databaseanswers.org/data_models/index_all_models.htm | |
var parentList = document.getElementsByTagName('li'); | |
for(var x = 0; x < parentList.length; x++) { | |
var childList = parentList[x].getElementsByTagName('ol') | |
for(var y = 0; y < childList.length; y++) { | |
childList[y].remove() | |
} | |
} |
const alphabet = [ | |
'a', 'b', 'c', 'd', 'e','f','g','h','i','j','k','l','m', | |
'n','o','p','q','r','s','t','u','v','w','x','y','z' | |
] | |
const deepCopyAlphabet = () => JSON.parse(JSON.stringify(alphabet)); | |
const getRandomInt = (arr) => Math.floor((Math.random() * arr.length)) | |
let mainGraph = [] | |
const connectNodesByNumber = ({letter, num, arr, mainGraph, isRandom}) => { |
Today I learned, when to use:
event.preventDefault();
event.stopPropagation();
Ever need to have a click event on a child element trigger but not on the parent element?
Anyone use event.preventDefault on a regular basis?
Found a really good explanation with working examples on stack overflow π
https://stackoverflow.com/a/332445/5283424
function a() { this.foo = 1;}
function b() { this.bar = 2; }
b.prototype = new a(); // b inherits from a
var f = new b();
function type(obj){
return Object.prototype.toString.call(obj).match(/\s\w+/)[0].trim()
#!/usr/bin/env bash | |
#{{{ MARK:Header | |
#************************************************************** | |
##### Author: JACOBMENKE | |
##### Date: Mon Jul 10 12:10:25 EDT 2017 | |
##### Purpose: bash script to contain open, copy and paste commands | |
##### Notes: | |
#}}}*********************************************************** | |
if [[ -z "$ZPWR_OS_TYPE" ]]; then |
Everyone seems to know this, but here is a good refresher in case I ever forget.
useEffect(() => { console.log('I am a component, 1 render') }, [true]);
Pointed empty array works you dont need true, My paranoid self thought that I read in the documentation that empty array would track all. This was not the case.
useEffect(() => { console.log('I am a component, 1 render') }, []);
Looking at youtube blog, https://youtube-eng.googleblog.com/2018/08/control-your-360-videos-with-youtube.html
ran into the following code:
<!--[if IE]>
<script type="text/javascript"
src="https://www.blogger.com/static/v1/jsbin/1277698886-ieretrofit.js"