This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Paste this line into your console (it might give you a warning) and in 12 seconds, it will "click" the `>` | |
setTimeout(()=>(document.getElementById("ProductViewer-NavNextBtn")).dispatchEvent(new Event('click',{bubbles:true,cancellable:true})), 12*1000); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
StrokesPlus.UI.Alert("It Works!", "Remote Alert"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Canvas Sidebar Colorizer | |
// @namespace http://kevinhill.codes/ | |
// @version 0.2 | |
// @description Change the sidebar color | |
// @author You | |
// @match https://sierra.instructure.com/* | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$data = $lava->DataTable(); | |
$data->addStringColumn('Practice'); | |
$data->addNumberColumn('Rooms'); | |
$data->addNumberColumn('Capacity'); | |
$data->addRow([ 'Yours', 1.45, 0.37 ]); | |
$data->addRow([ 'Benchmark', 1.6, 0.39 ]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$employeeCount = rand(2,6); | |
$salesTable = $lava->DataTable(); | |
$salesTable->addDateColumn('Date'); | |
for ($a=0; $a <= $employeeCount; $a++) { | |
$salesTable->addNumberColumn('Employee'.$a); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
error_reporting(-1); | |
require('Carbon-1.18.0\src\Carbon\Carbon.php'); | |
require('../lavacharts/src/Lavacharts.php'); | |
use \Khill\Lavacharts\Lavacharts; | |
$lava = new Lavacharts; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use \Khill\Lavacharts\DataTables\DataFactory; | |
// Underneath the DataFactory, this is just a shortcut to calling | |
// addColumns then addRows | |
$data = DataFactory::DataTable([ | |
['string', 'name'], | |
['number', 'donuts'] | |
],[ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use \Khill\Lavacharts\DataTables\DataFactory; | |
// Taken straight from Google's example for BubbleCharts | |
// The method will assign colmun types based on the data from | |
// the rows (currently only strings and numbers) | |
$data = DataFactory::arrayToDataTable([ | |
['ID', 'Life Expectancy', 'Fertility Rate', 'Region', 'Population'], | |
['CAN', 80.66, 1.67, 'North America', 33739900], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Lavacharts Dashboard</title> | |
</head> | |
<body> | |
<div id="my-dash"> | |
<div id="chart"> | |
</div> | |
<div id="control"> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$datatable = $lava->DataTable(); | |
$datatable->addStringColumn('Name'); | |
$datatable->addNumberColumn('Donuts Eaten'); | |
$datatable->addRows([ | |
['Michael', 5], | |
['Elisa', 7], | |
['Robert', 3], | |
['John', 2], |
NewerOlder