This file contains 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
<View> | |
<TextInput | |
value={this.state.username} | |
onChangeText={(u) => this.setState({username:u})} | |
placeholder={'Kullanıcı Adı'} | |
style={styles.textInput} | |
blurOnSubmit={false} | |
returnKeyType = {"next"} | |
onSubmitEditing={() => { this.secondTextInput.focus(); }} | |
/> |
This file contains 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
from itertools import permutations | |
import hashlib | |
m = hashlib.md5() | |
m.update("") | |
print m.hexdigest() | |
inputstr = "hackistanbul" # character set to get permutations | |
print inputstr | |
i = 0 |
This file contains 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
<h1 class="follower"></h1> | |
<?php | |
$instagramUsername = "instagram"; | |
// Get Instagram page source code | |
$instagram = file_get_contents('http://instagram.com/'.$instagramUsername); | |
// extract follower count from json with regex | |
$pattern = '/\"edge_followed_by\":\{\"count\":[0-9]{1,10}\}/'; | |
preg_match_all($pattern, $instagram, $results); |
This file contains 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
React Native Environment Info: | |
System: | |
OS: macOS 10.14.4 | |
CPU: (4) x64 Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz | |
Memory: 355.37 MB / 8.00 GB | |
Shell: 3.2.57 - /bin/bash | |
Binaries: | |
Node: 8.12.0 - /usr/local/bin/node | |
Yarn: 1.13.0 - /usr/local/bin/yarn |
This file contains 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 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' | |
ReactDOM.render(<Router> <App/> </Router> , document.getElementById('root')); |
This file contains 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 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')); |
This file contains 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 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' | |
} |
This file contains 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 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' | |
} |
This file contains 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 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' | |
} |
This file contains 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 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 |
OlderNewer