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 / package.json
Created March 26, 2017 00:51
The Total and Complete Package
{
"name": "Bot",
"version": "1.0.0",
"private": true,
"description": "Bot is an example of chat bot for Twitch created using Node.js",
"author": "Keeyana Jones <keeyanajones@yahoo.com> (http://keeyanajones.github.io/website/)",
"contributors": [
{
"name": "Foo Bar",
"email": "foo.bar@example.com"
@keeyanajones
keeyanajones / gulpfile.js
Last active May 26, 2017 17:52
Gulp Configuration Starter
/**
* gulpfile.js configuration
**/
// Load plugins modules
var gulp = require('gulp');
// Compiling Pug Templates
var pug = require('gulp-pug');
// Less for Gulp
var less = require('gulp-less');
@keeyanajones
keeyanajones / Admin Dashboard
Created November 28, 2017 17:10
Administration Dashboard
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html lang="en">
<!-- Head -->
<head>
<meta charset="utf-8">
/**
* Chart.js Main Admin Dashboard
**/
// Chart.js Stuff
Chart.defaults.global.maintainAspectRatio = false;
Chart.defaults.global.responsive = false;
// Instantiates my line chart
var myLineChart = document.getElementById("myLineChart");
@keeyanajones
keeyanajones / Admin Dashboard CSS
Last active November 28, 2017 17:18
Administration Dashboard CSS
/*
* Base structure
*/
/* Move down content because we have a fixed navbar that is 50px tall */
body {
padding-top: 50px;
}
@keeyanajones
keeyanajones / Advanced Media
Created December 2, 2017 13:16
Advanced Media Sample For Netbeans
import javafx.application.Application;
import javafx.application.Platform;
import javafx.beans.InvalidationListener;
import javafx.beans.Observable;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
@keeyanajones
keeyanajones / MySQL_Northwind_Conversion.sql
Last active September 24, 2018 12:19
Northwind Sample Database
/****** Quick Data conversion from Sql Server 2005 Database to MySQL by Keeyana Jones ******/
/****** Database ******/
DROP DATABASE IF EXISTS Northwind;
CREATE DATABASE IF NOT EXISTS Northwind;
USE Northwind;
SELECT 'CREATING DATABASE STRUCTURE' as 'INFO';
DROP TABLE IF EXISTS Categories,
@keeyanajones
keeyanajones / MySQL_Northwind_StoredProcedures.sql
Created September 24, 2018 12:25
Northwind Sample Stored Procedures
/****** Stored Procedures of quick data conversion from Sql Server 2005 Database to MySQL by Keeyana Jones ******/
/****** 1 Object: Stored Procedures "CustOrderHist" ******/
DELIMITER $$
CREATE PROCEDURE `CustOrderHist`(IN AtCustomerID VARCHAR(5))
BEGIN
SELECT
ProductName,
SUM(Quantity) as TOTAL
@keeyanajones
keeyanajones / MySQL_Northwind_Load_Customers.dump
Last active September 24, 2018 12:33
Northwind Sample Data Dump
/****** Customers dump data sample for quick data conversion from Sql Server 2005 Database to MySQL by Keeyana Jones ******/
INSERT INTO `Customers` VALUES
('ALFKI','Alfreds Futterkiste','Maria Anders','Sales Representative','Obere Str. 57','Berlin',NULL,'12209','Germany','030-0074321','030-0076545'),
('ANATR','Ana Trujillo Emparedados y helados','Ana Trujillo','Owner','Avda. de la Constitución 2222','México D.F.',NULL,'05021','Mexico','(5) 555-4729','(5) 555-3745'),
('ANTON','Antonio Moreno Taquería','Antonio Moreno','Owner','Mataderos 2312','México D.F.',NULL,'05023','Mexico','(5) 555-3932',NULL),
('AROUT','Around the Horn','Thomas Hardy','Sales Representative','120 Hanover Sq.','London',NULL,'WA1 1DP','UK','(171) 555-7788','(171) 555-6750'),
('BERGS','Berglunds snabbköp','Christina Berglund','Order Administrator','Berguvsvägen 8','Luleå',NULL,'S-958 22','Sweden','0921-12 34 65','0921-12 34 67'),
('BLAUS','Blauer See Delikatessen','Hanna Moos','Sales Representative','Forsterstr. 57','Mannheim',NUL
@keeyanajones
keeyanajones / LoopingDataFrameColumn.r
Created September 24, 2018 12:41
Looping over columns in a data frame in R
> df <- data.frame(
a = rnorm(10),
b = rnorm(10),
c = rnorm(10),
d = rnorm(10)
)
> for (i in 1:ncol(df)) {
print(median(df[[i]]))