This file contains hidden or 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
var pin = Math.floor(1000 + Math.random() * 9000); | |
return pin |
This file contains hidden or 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
function CallAPI($method, $url, $data = false) | |
{ | |
$curl = curl_init(); | |
switch ($method) | |
{ | |
case "POST": | |
curl_setopt($curl, CURLOPT_POST, 1); | |
if ($data) |
This file contains hidden or 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
function CounterFunction() { | |
const [count, setCount] = React.useState(1); | |
return ( | |
<div> | |
<p>Count: {count}</p> | |
<button onClick={() => | |
setCount(count + 1)} | |
>Increase</button> | |
</div> | |
); |
This file contains hidden or 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
class CounterClass extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = { count: 1 }; | |
} | |
render() { | |
return <div> | |
<p>Count: {this.state.count}</p> | |
<button onClick={() => this.setState({ |
This file contains hidden or 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 { Text, View, TouchableOpacity, } from 'react-native'; | |
import firebase from "firebase"; | |
import { ImagePicker, Permissions } from 'expo'; | |
class Upload extends React.Component { | |
constructor(props) { |
This file contains hidden or 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
.centerDiv{ | |
top: 50%; | |
left: 50%; | |
transform: translate(-50%, 50%); | |
} |
This file contains hidden or 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
/* | |
##Device = Desktops | |
##Screen = 1281px to higher resolution desktops | |
*/ | |
@media (min-width: 1281px) { | |
//CSS | |
This file contains hidden or 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
uid(){ | |
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) { | |
var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8); | |
return v.toString(16); | |
}); | |
} |
This file contains hidden or 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
return [ | |
"Access Bank", | |
"Citibank Nigeria", | |
"Diamond Bank", | |
"Ecobank Nigeria", | |
"Fidelity Bank", | |
"First Bank Nigeria", | |
"First City Monument Bank", | |
"Guaranty Trust Bank", | |
"Heritage Banking Company", |
This file contains hidden or 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
<!DOCTYPE html> | |
<head> | |
<!-- CSS | |
================================================== --> | |
<style> | |
*, *:before, *:after { | |
-webkit-box-sizing: border-box; | |
-moz-box-sizing: border-box; | |
box-sizing: border-box; |
NewerOlder