Skip to content

Instantly share code, notes, and snippets.

View Rndwiga's full-sized avatar
😀
It's never that serious

Raphael Ndwiga Rndwiga

😀
It's never that serious
View GitHub Profile
@Rndwiga
Rndwiga / browser.html
Created February 20, 2018 19:31 — forked from stajnert/browser.html
Javascript to find browser version, os version and os bit version
<html>
<body>
<script type="text/javascript">
var BrowserDetect = {
init: function () {
this.browser = this.searchString(this.dataBrowser) || "An unknown browser";
this.version = this.searchVersion(navigator.userAgent)
|| this.searchVersion(navigator.appVersion)
|| "an unknown version";
this.OS = this.searchString(this.dataOS) || "an unknown OS";
@Rndwiga
Rndwiga / gist:49cc94b5c57bf4b8d00902d1658d11a8
Created June 20, 2017 16:57 — forked from jineeshjohn/gist:2044414
Dynamic html table rows and column creation with jQuery
<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
<style>
table{
width:500px;
height:500px;
}
table td{
padding:10px;
margin:10px;
border:1px solid #ccc;
@Rndwiga
Rndwiga / PageController.php
Created March 22, 2017 11:30 — forked from marktopper/PageController.php
[Voyager] Routes for Pages BREAD
<?php
class PageController extends \App\Http\Controllers\Controller
{
public function show()
{
$slug = request()->segment(1);
$page = \TCG\Voyager\Models\Page::where('slug', $slug)
->firstOrFail();