Skip to content

Instantly share code, notes, and snippets.

View keeyanajones's full-sized avatar
👋
Working from Home

Keeyana Jones keeyanajones

👋
Working from Home
View GitHub Profile
@keeyanajones
keeyanajones / index.html
Created January 27, 2022 09:02
Webgl Demo
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>WebGL Demo</title>
<link rel="stylesheet" href="webgl.css" type="text/css">
<script src="webgl-demo.js" defer></script>
</head>
<body>
<canvas id="canvas"></canvas>
@keeyanajones
keeyanajones / alerts.html
Created April 13, 2020 11:22
quick bootstrap alerts
<sub>
<div class="alert alert-success" role="alert">
<span class="badge badge-success">Success</span>
A simple success alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.
</div>
<div class="alert alert-danger" role="alert">
<span class="badge badge-danger">Danger</span>
A simple danger alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.
</div>
@keeyanajones
keeyanajones / 0-gulpfile.js
Last active April 3, 2020 05:31
Gulp and TypeScript
// Default
var gulp = require('gulp');
var ts = require('gulp-typescript');
var tsProject = ts.createProject('tsconfig.json');
gulp.task('default', function () {
return tsProject.src()
.pipe(tsProject())
.js.pipe(gulp.dest('dist'));
@keeyanajones
keeyanajones / pagination.html
Last active April 2, 2020 17:27
pagination
<br/><br/>
<nav aria-label="Page navigation example">
<ul class="pagination justify-content-center pagination-sm">
<li class="page-item disabled">
<a class="page-link" href="#" tabindex="-1" aria-disabled="true"> &larr; </a>
</li>
<li class="page-item"><a class="page-link" href="#">1</a></li>
<li class="page-item"><a class="page-link" href="#">2</a></li>
@keeyanajones
keeyanajones / Canvas and Tooltip
Last active April 3, 2020 05:36
Canvas element and Tooltip
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<title>Canavas and Tooltip</title>
<!-- Latest compiled and minified CSS
Bootstrap 4.3.1 -->
<link rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
@keeyanajones
keeyanajones / oauth.js
Last active April 14, 2020 10:13
example oauth
// The client ID is obtained from the {{ Google Cloud Console }}
// at {{ https://cloud.google.com/console }}.
// If you run this code from a server other than http://localhost,
// you need to register your own client ID.
var OAUTH2_CLIENT_ID = '__YOUR_CLIENT_ID__';
var OAUTH2_SCOPES = [
'https://www.googleapis.com/auth/youtube'
];
// Upon loading, the Google APIs JS client automatically invokes this callback.
@keeyanajones
keeyanajones / config.ts
Created April 6, 2019 10:26
example configuration typescript file
export default{
Development: {
config_id: {
host: "localhost",
port: 1234,
database: "my-app-db-dev"
}
},
Testing: {
config_id: {
@keeyanajones
keeyanajones / config.json
Created April 6, 2019 10:11
example configuration json file
{
"development": {
"config_id": "development",
"app_name": "my app",
"app_desc": "my app desc",
"node_port": 3000,
"json_indentation": 4,
"database": "my-app-db-dev",
"host": "localhost"
},
@keeyanajones
keeyanajones / .env
Created April 6, 2019 09:57
.env file example
APP_NAME=Example
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost
LOG_CHANNEL=stack
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
@keeyanajones
keeyanajones / app.js
Last active April 6, 2019 09:31
app.js
var createError = require('http-errors');
var express = require('express');
var path = require('path');
var cookieParser = require('cookie-parser');
var logger = require('morgan');
var indexRouter = require('./routes/index');
var usersRouter = require('./routes/users');
var app = express();