| Function | Shortcut |
|---|---|
| New Tab | ⌘ + T |
| Close Tab or Window | ⌘ + W (same as many mac apps) |
| Go to Tab | ⌘ + Number Key (ie: ⌘2 is 2nd tab) |
| Go to Split Pane by Direction | ⌘ + Option + Arrow Key |
| Cycle iTerm Windows | ⌘ + backtick (true of all mac apps and works with desktops/mission control) |
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
| export default ` | |
| varying vec2 vUv; | |
| void main(){ | |
| vUv = uv; | |
| gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0 ); | |
| } | |
| `; |
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
| export default ` | |
| void main(void) { | |
| gl_FragColor = vec4(1.0, 1.0, 0.0, 1.0); | |
| } | |
| `; |
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
| /* | |
| * Easing Functions - inspired from http://gizma.com/easing/ | |
| * only considering the t value for the range [0, 1] => [0, 1] | |
| */ | |
| EasingFunctions = { | |
| // no easing, no acceleration | |
| linear: t => t, | |
| // accelerating from zero velocity | |
| easeInQuad: t => t*t, | |
| // decelerating to zero velocity |
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
| brew install ffmpeg $(brew options ffmpeg | grep -vE '\s' | grep -- '--with-' | tr '\n' ' ') | |
| // https://www.guardarcomofilms.net/index.php/breve_tutorial_de_ffmpeg?blog=4 |
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
| let checkScrollUpDown = () => { | |
| // Get current scroll position | |
| let currentPos = window.pageYOffset || docuemnt.documentElement.scrollTop; | |
| let lastPos = 0; | |
| if(currentPos > lastPos){ | |
| // down scroll | |
| }else { | |
| // up scroll |
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
| let resizeId; | |
| $(window).resize(() => { | |
| clearTimeout(resizeId); | |
| resizeId = setTimeout(doneResizing, 500); | |
| }); | |
| function doneResizing(){ | |
| console.log('resized!') | |
| } |
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
| let checkEmail = /\w+([\.\+\-]?\w+)*@([\.\-]?\w+)+(\.\w{2,4})+$/; | |
| console.log(checkEmail.test("a@a.a-a.com")); |
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 { | |
| View, | |
| TouchableOpacity, | |
| } from 'react-native'; | |
| // Styles | |
| import {settings} from '../assets/styles/settings'; | |
| import {baseStyles} from '../assets/styles/base'; |
NewerOlder