Skip to content

Instantly share code, notes, and snippets.

View boganegru's full-sized avatar

Bogdan Negru boganegru

  • Freshbyte
View GitHub Profile
@boganegru
boganegru / files.php
Created August 20, 2019 08:38
PHP file with examples of file reading / writing
<?php
// Reading a file.
echo '<h4>Reading file (fopen)</h4>';
$handle = fopen('textfile.txt', 'r');
$file_content = '';
while (!feof($handle)) {
$file_content .= fgets($handle) . '<br>';
}
fclose($handle);
@boganegru
boganegru / comments.html
Created August 27, 2019 07:54
comments exercise for jquery
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
</head>
<body>
<textarea id="comment-box" rows=4></textarea>
<br>
<input type="submit" id="submit-comment" />
<div id="comment-list">
</div>
import React from 'react';
import ReactMarkdown from 'react-markdown';
import { withStyles } from '@material-ui/core/styles';
import Typography from '@material-ui/core/Typography';
import Link from '@material-ui/core/Link';
import Table from "@material-ui/core/Table";
import TableContainer from "@material-ui/core/TableContainer";
import Paper from "@material-ui/core/Paper";
import {TableHead, TableRow, TableCell, TableBody} from "@material-ui/core";