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
// package.json
{
"name": "Package",
"version": "1.1.1",
"private": true,
"description": "Package Example is an typical example of
package.json file using Node.js",
"author": "Keeyana Jones
(http://keeyanajones.github.io/website/)",
"contributors": [
@keeyanajones
keeyanajones / canvas.html
Created October 23, 2018 22:47
Canvas Starter
<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">
<!-- The above 3 meta tags *must* come first in the head; any other head
content must come *after* these tags -->
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="../../favicon.ico">
@keeyanajones
keeyanajones / Graphics.r
Created September 24, 2018 12:46
Graphics in R
Basic Graphics
------------------------------------------------------------------
Create plots with code
Replication and modification easy
Reproducibility
Graphics package
ggplot2, ggvis, lattice
Graphics package
@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]]))
@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 / 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_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 / 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 / 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;
}
/**
* 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");