Skip to content

Instantly share code, notes, and snippets.

View bosz's full-sized avatar
💭
Digital Renter and Another Eye

Fongoh M. Tayong bosz

💭
Digital Renter and Another Eye
View GitHub Profile
import React, {useState, useEffect} from 'react';
import {
View,
Alert,
ScrollView,
TextInput,
TouchableOpacity,
ActivityIndicator,
} from 'react-native';
import auth from '@react-native-firebase/auth';
@bosz
bosz / jokes.js
Created February 28, 2023 12:14
Jokes display, get, post
import React, { useEffect, useState } from 'react'
const CommentsCard = ({ comment }) => {
return (
<div>
<blockquote> *** "{comment.comment}"</blockquote>
{/* <button className='btn btn-success btn-sm'>Like</button> */}
</div>
)
@bosz
bosz / index.html
Created November 22, 2022 08:46
Basic html, css, js for edna
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="main.css">
</head>
<body>
@bosz
bosz / HandleData.js
Last active October 8, 2022 10:55
Redux toolkit
import { useEffect, useState } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import { getComments, setSelectedRequest } from '../redux/commentsSlice';
const HandleData = () => {
const dispatch = useDispatch();
const { comments, processing, httpError } = useSelector(state => state.comments);
useEffect(() => {
dispatch(getComments());
}, []);
@bosz
bosz / basic_js.js
Last active March 28, 2022 10:19
Basics of js; variable, operations, loops, arrays
// Variables
var a = 1;
let b = 2;
const c = 3;
const pi = 3.17;
console.log(a, b, c, pi);
// Operations
let sum = a + b;
let sub = a - b;
@bosz
bosz / php-revision.php
Created March 2, 2021 13:24
Revising php (Interace, &, Abstract, Traits and Facade
<?php
/**
* Interface (check)
* Abstract (check)
* Trait (check)
* & (check)
* Facade (check)
*/
@bosz
bosz / index.html
Created February 16, 2021 07:44
Learning Vue JS 3
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Learning Vue JS</title>
</head>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css">
<link id="bsdp-css" href="https://unpkg.com/[email protected]/dist/css/bootstrap-datepicker3.min.css" rel="stylesheet">
<title>JS Bin</title>
@bosz
bosz / UserController.php
Created June 12, 2020 10:42
Fongoh's class: Learning Laravel with Aiysha
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class UserController extends Controller
{
public function index()
{
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Subject;
class SubjectController extends Controller
{