This file contains hidden or 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
| import os | |
| import subprocess | |
| import re | |
| import argparse | |
| def extract_dependency_url(file_path): | |
| with open(file_path, "r") as file: | |
| for line in file: | |
| match = re.search(r"//\s*@dependency\s*(\S+)", line) |
This file contains hidden or 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
| // Number of rows in the tessellation | |
| rows = 20; | |
| // Number of columns in the tessellation | |
| cols = 100; | |
| // Width of each hexagonal pillar (circumradius) | |
| hex_size = 4; | |
| // Minimum height of each pillar | |
| height_min = 2; | |
| // Maximum height of each pillar | |
| height_max = 20; |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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], |
NewerOlder