Skip to content

Instantly share code, notes, and snippets.

Richard Zilahi zilahir

Block or report user

Report or block zilahir

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
zilahir / App.js
Last active Aug 19, 2019
my react app stack navigation
View App.js
import React from "react";
import { createAppContainer, createStackNavigator, createSwitchNavigator, createDrawerNavigator, createBottomTabNavigator } from "react-navigation"
import { Vibration, Text } from 'react-native'
import Icon from '@expo/vector-icons/Ionicons'
import IconBadge from 'react-native-icon-badge'
import { FontAwesome, MaterialCommunityIcons, MaterialIcons } from '@expo/vector-icons'
import UserWelsomeScreen from './screens/UserWelcomeScreen/UserWelcomeScreen'
import HistoryScreen from './screens/HistoryScreen/HistoryScreen'
import HomeScreen from './screens/Home/HomeScreen'
import QrReadScreen from "./screens/QrReadScreen/QrReadScreen"
zilahir / demo.js
Created Jul 24, 2019
View demo.js
/* eslint-disable */
import React from 'react'
import PropTypes from 'prop-types'
import LibraryHeaderStyle from './LibraryHeader.module.scss'
const LibraryHeader = (props) => {
const { selectedTab } = props
View LoginScreen.js
import React, { Component } from 'react'
import { View, StyleSheet, Text, StatusBar, ActivityIndicator, LinearGradient, Image, NetInfo, Animated, Dimensions, Easing } from 'react-native'
import { connect } from 'react-redux'
import firebase from 'firebase'
import { Facebook } from 'expo'
import { TextField } from 'react-native-material-textfield'
import Button from '../../components/common/Button'
import { colors } from '../../styles/colors'
import Logo from '../../../assets/logo.png'
import { setUser } from "../../actions/setUser"
View App.js
import React, { Component } from 'react';
import { StatusBar, Platform } from 'react-native';
import { Provider, connect } from 'react-redux';
import { ThemeProvider } from 'styled-components';
import styled from 'styled-components/native';
import { FormattedWrapper } from 'react-native-globalize';
import firebase from 'firebase';
import messages from './Messages';
import store from './store';
import { colors } from './utils/constants';
zilahir / Navigation.js
Created May 10, 2019
react-native navigation
View Navigation.js
import React from 'react';
import { Platform } from 'react-native';
import {
} from 'react-navigation';
View json.json
"url": "",
"title": "Magyar Nagykövetség, Helsinki",
"desc": ""
"url": "",
"title": "Suomi-Unkari Seura",
"desc": "Finn – Magyar baráti társaság"
View bitbucket-pipeline.yml
- step:
image: node:8
name: run webpack
- cd wp-content/themes/wp-demo/assets/src
- npm install -g webpack
- npm install -g webpack-cli
#This script changes the database with the latest file in repo's !sql folder. This script is triggered by a manual step in bitbucket pipeline
cd !sqldump;
latest_sql_file=`ls -Art | tail -n 1`;
cd ..
#connect to devel database and
#1. drop the current database there
TABLES=$(mysql --host <host> -u <user> -p<pass> <db-name> -e 'show tables' | awk '{ print $1}' | grep -v '^Tables' );
#!/usr/bin/env bash
current_date=`date +%Y_%m_%d_%H_%M`;
cd /Users/richardzilahi/zilahir/tuts/wp/1/wordpress/!sqldump
mkdir -p "$current_date";
mysqldump --net_buffer_length="83000" -u wp_user -pwp_password -h -P 32770 --skip-extended-insert wordpress > /Users/richardzilahi/zilahir/tuts/wp/1/wordpress/!sqldump/"$current_date"/"$current_date".sql
cd /Users/richardzilahi/zilahir/tuts/wp/1/wordpress/!sqldump/"$current_date";
echo "adding new sql file to repo"
cd /Users/richardzilahi/zilahir/tuts/wp/1/wordpress/
git add /Users/richardzilahi/zilahir/tuts/wp/1/wordpress/!sqldump/"$current_date"/"$current_date".sql
zilahir /
Created Jan 3, 2019
protect master branch on git
policy="\n\n[Policy] Never push code directly to the "$protected_branch" branch! (Prevented with pre-push hook.)\n\n"
current_branch=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,')
push_command=$(ps -ocommand= -p $PPID)
You can’t perform that action at this time.