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 | |
| #script extraido de: http://paulocassiano.wordpress.com/2008/08/29/deixando-o-gedit-com-a-cara-do-textmate/ | |
| #tip for better "resolution" here: http://blog.siverti.com.br/2008/05/22/fonte-monaco-no-ubuntugedit/ | |
| cd /usr/share/fonts/truetype/ | |
| #TODO: put validation if folder already exists | |
| sudo mkdir ttf-monaco |
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
| # auto detects a good number of processes to run | |
| worker_processes auto; | |
| #Provides the configuration file context in which the directives that affect connection processing are specified. | |
| events { | |
| # Sets the maximum number of simultaneous connections that can be opened by a worker process. | |
| worker_connections 8000; | |
| # Tells the worker to accept multiple connections at a time | |
| multi_accept on; | |
| } |
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
| { | |
| "workbench.startupEditor": "newUntitledFile", | |
| "editor.fontSize": 16, | |
| "editor.lineHeight": 1.8, | |
| "javascript.suggest.autoImports": true, | |
| "javascript.updateImportsOnFileMove.enabled": "always", | |
| "editor.rulers": [ | |
| 80, | |
| 120 | |
| ], |
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
| const App = () => { | |
| const [sliderState, setSliderState] = useState({ currentPage: 0 }); | |
| const { width, height } = Dimensions.get('window'); | |
| const setSliderPage = (event: any) => { | |
| const { currentPage } = sliderState; | |
| const { x } = event.nativeEvent.contentOffset; | |
| const indexOfNextScreen = Math.floor(x / width); | |
| if (indexOfNextScreen !== currentPage) { | |
| setSliderState({ |
OlderNewer