Skip to content

Instantly share code, notes, and snippets.

View ptaberg's full-sized avatar
🇬🇪

Mikola ptaberg

🇬🇪
View GitHub Profile
[{"id":1,"title":"Create Todo Model"},{"id":2,"title":"Create Todo View"},{"id":3,"title":"Create Todo Controller"}]
@ptaberg
ptaberg / javascript
Last active June 23, 2019 21:43
import.js
// main.js
export walk() {/** . . . */}
export run() {/** . . . */}
export jump() {/** . . . */}
// func.js
import { walk, run, jump } from './main.js'
@ptaberg
ptaberg / javascript.js
Created March 1, 2019 09:34
React Native Update
Unable to resolve module `react-native-action-button` from `/Users/wse-090-71b/Documents/moved/src/screens/authUser/HomePage.js`: Module `react-native-action-button` does not exist in the Haste module map
This might be related to https://github.com/facebook/react-native/issues/4968
To resolve try the following:
1. Clear watchman watches: `watchman watch-del-all`.
2. Delete the `node_modules` folder: `rm -rf node_modules && npm install`.
3. Reset Metro Bundler cache: `rm -rf /tmp/metro-bundler-cache-*` or `npm start -- --reset-cache`.
4. Remove haste cache: `rm -rf /tmp/haste-map-react-native-packager-*`.
ABI32_0_0RCTFatal
@ptaberg
ptaberg / html
Created February 6, 2019 07:36
Adaptive navigation layout
<!DOCTYPE html>
<html>
<header>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>
Real Nav
</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css" />