Skip to content

Instantly share code, notes, and snippets.

shitcodes live matter

Kolja Ptashitz ptaberg

shitcodes live matter
  • Cool Projects Only Ltd.
  • Minsk, Belarus
View GitHub Profile
View json mock
[{"id":1,"title":"Create Todo Model"},{"id":2,"title":"Create Todo View"},{"id":3,"title":"Create Todo Controller"}]
ptaberg / javascript.js
Created Mar 1, 2019
React Native Update
View javascript.js
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
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-*`.
View javascript
// main.js
export walk() {/** . . . */}
export run() {/** . . . */}
export jump() {/** . . . */}
// func.js
import { walk, run, jump } from './main.js'
ptaberg / html
Created Feb 6, 2019
Adaptive navigation layout
View html
<!DOCTYPE html>
<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">
Real Nav
<link rel="stylesheet" href="" />