Skip to content

Instantly share code, notes, and snippets.

View just1and0's full-sized avatar
🏠
working from home!

Oluwatobi Shokunbi just1and0

🏠
working from home!
View GitHub Profile
language: node_js
node_js:
- node
- lts/*
cache:
directories:
- ~/.npm
- .jest
before_script:
- npm install -g npm@latest
// data
var data = [{"name":"ramu","id":"719","gmail":"[email protected]","ph":988989898,"points":36},
{"name":"ravi","id":"445","gmail":"[email protected]","ph":4554545454,"points":122},
{"name":"karthik","id":"866","gmail":"[email protected]","ph":2332233232,"points":25}]
// sum all data in points
var result = data.reduce(function(tot, arr) {
// return the sum with previous value
return tot + arr.points;
@just1and0
just1and0 / react-native.config.js
Created November 29, 2019 15:43
This Gist is a compilation of every possible config you might have.
//set up fonts
module.exports = {
project: {
ios: {},
android: {},
},
assets: [
'path-to-font-asset'
]
};
@just1and0
just1and0 / react-native.config.js
Created November 29, 2019 15:43
This Gist is a compilation of every possible config you might have.
//set up fonts
module.exports = {
project: {
ios: {},
android: {},
},
assets: [
'path-to-font-asset'
]
};
@just1and0
just1and0 / react-native.config.js
Created November 29, 2019 15:43
This Gist is a compilation of every possible config you might have.
//set up fonts
module.exports = {
project: {
ios: {},
android: {},
},
assets: [
'path-to-font-asset'
]
};
.header{
background-color: whitesmoke;
}
.updatemodal{
background-color: rgb(66, 173, 240);
padding: 10px 0px;
}
.pull-left{
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title> STUDYMATE</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="index.css">
</head>
<body style="margin:0px 0px">
<div class="container">
import Users from './src/Users'
import Details from './src/Details'
const AppNavigator = createStackNavigator({
Users: {
screen: Users,
navigationOptions:{headerTitle:'Users'}
},
Details: {
screen: Details,
navigationOptions:{headerTitle:'Users Detail'}
import React from 'react';
import {StyleSheet, Text, View, TouchableOpacity } from 'react-native';
class Users extends React.Component {
constructor(props) {
super(props);
this.state = { };
}
import React from 'react';
import {StyleSheet, Text, View, TouchableOpacity } from 'react-native';
class Users extends React.Component {
constructor(props) {
super(props);
this.state = { };
}
render() {
return (
<View style={styles.container}>