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
| curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - | |
| echo "Installing NodeJS 6.x" | |
| sudo apt-get install nodejs | |
| echo "Install webpack globally" | |
| sudo npm install webpack -g | |
| echo "Install nightwatch globally" | |
| sudo npm install nightwatch -g |
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
| " With this function you can reuse the same terminal in neovim. | |
| " You can toggle the terminal and also send a command to the same terminal. | |
| let s:monkey_terminal_window = -1 | |
| let s:monkey_terminal_buffer = -1 | |
| let s:monkey_terminal_job_id = -1 | |
| function! MonkeyTerminalOpen() | |
| " Check if buffer exists, if not create a window and a buffer | |
| if !bufexists(s:monkey_terminal_buffer) |
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 'dart:async'; | |
| import 'package:flutter/material.dart'; | |
| void main() => runApp(new MyApp()); | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return new MaterialApp( |
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 'dart:async'; | |
| import 'package:flutter/material.dart'; | |
| void main() => runApp(new MyApp()); | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return new MaterialApp( |
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 { useEffect, useRef, useState } from 'react'; | |
| export const useCountDown: ( | |
| total: number, | |
| ms?: number, | |
| ) => [number, () => void, () => void, () => void] = ( | |
| total: number, | |
| ms: number = 1000, | |
| ) => { | |
| const [counter, setCountDown] = useState(total); |
OlderNewer