Skip to content

Instantly share code, notes, and snippets.

View cyb3rsalih's full-sized avatar

mehmet salih bindak cyb3rsalih

View GitHub Profile
@cyb3rsalih
cyb3rsalih / Circle.js
Created June 26, 2019 18:38
Simple Circle React Native Component
import React from "react";
import PropTypes from "prop-types";
import {
View,
StyleSheet,
TouchableHighlight,
Text,
Dimensions
} from "react-native";
@cyb3rsalih
cyb3rsalih / .prettierrc
Created June 14, 2019 17:00
Prettier settings for VS Code Works with .eslintrc
{
"semi": false,
"singleQuote": true
}
@cyb3rsalih
cyb3rsalih / .prettierrc
Created June 14, 2019 17:00
Prettier settings for VS Code
{
"semi": false,
"singleQuote": true
}
@cyb3rsalih
cyb3rsalih / .eslintrc.json
Last active June 14, 2019 16:59
My ESlint configuration for React Native
{
"parser": "babel-eslint",
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": ["google", "prettier", "prettier/react","plugin:react/recommended", "eslint:recommended"],
"globals": {
"Atomics": "readonly",
var dictionary = ["0","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"," ","_" ]
var the_flag_key = [23, 5, 12, 12, 27, 20, 8, 5, 27, 6, 12, 1, 7, 27, 9, 19, 27, 8, 9, 4, 4, 5, 14, 27, 8, 5, 18, 5, 27, 2, 21, 20, 27, 6, 9, 18, 19, 20, 27, 23, 5, 27, 8, 1, 22, 5, 27, 19, 15, 13, 5, 27, 20, 5, 24, 20, 27, 20, 15, 27, 3, 15, 14, 6, 21, 19, 5, 27, 25, 15, 21, 27, 14, 15, 23, 27, 20, 8, 5, 27, 6, 12, 1, 7, 27, 9, 19, 27, 9, 14, 27, 6, 1, 3, 20, 27, 19, 5, 3, 18, 5, 20, 19, 28, 1, 18, 5, 28, 8, 9, 4, 4, 5, 14, 28, 9, 14, 28, 20, 8, 9, 19, 28, 12, 9, 19, 20, 27, 4, 15, 14, 20, 27, 9, 14, 3, 12, 21, 4, 5, 27, 20, 8, 5, 27, 16, 1, 18, 20, 19, 27, 20, 8, 1, 20, 27, 1, 18, 5, 27, 19, 5, 16, 5, 18, 1, 20, 5, 4, 27, 23, 9, 20, 8, 27, 19, 16, 1, 3, 5, 19]
console.log(the_flag_key.map(x => dictionary[x]).join(""))
@cyb3rsalih
cyb3rsalih / index.js
Last active May 12, 2019 14:13
Redux-5
import React from 'react';
import ReactDOM from 'react-dom';
import './css/index.css';
import App from './pages/App';
import {BrowserRouter as Router } from 'react-router-dom'
import { createStore } from 'redux'
function reducer(state, action){
if(action.type == 'CHANGE_STATE'){
return action.payload
import React from 'react';
import ReactDOM from 'react-dom';
import './css/index.css';
import App from './pages/App';
import {BrowserRouter as Router } from 'react-router-dom'
import { createStore } from 'redux'
function reducer(){
return 'My State'
}
import React from 'react';
import ReactDOM from 'react-dom';
import './css/index.css';
import App from './pages/App';
import {BrowserRouter as Router } from 'react-router-dom'
import { createStore } from 'redux'
function reducer(){
return 'My State'
}
import React from 'react';
import ReactDOM from 'react-dom';
import './css/index.css';
import App from './pages/App';
import {BrowserRouter as Router } from 'react-router-dom'
import { createStore } from 'redux'
function reducer(){
return 'My State'
}
@cyb3rsalih
cyb3rsalih / index.js
Last active May 8, 2019 16:34
Redux-1
import React from 'react';
import ReactDOM from 'react-dom';
import './css/index.css';
import App from './pages/App';
import {BrowserRouter as Router } from 'react-router-dom'
import { createStore } from 'redux'
const store = createStore()
ReactDOM.render(<Router> <App/> </Router> , document.getElementById('root'));