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
List<int> grades = new List<int> { 85, 90, 78, 92 }; | |
Console.WriteLine("Grades: " + string.Join(", ", grades)); | |
grades.Add(88); // Adding a new grade | |
Console.WriteLine("Grades: " + string.Join(", ", grades)); | |
int highestGrade = grades[3]; // Accessing the grade at index 3 | |
grades.RemoveAt(2); // Removing the grade at index 2 (which is 78) | |
Console.WriteLine("Grades: " + string.Join(", ", grades)); |
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
# | |
# Run a lighthouse audit and open it in a new tab in Chrome | |
# This uses Docker for consistency | |
# Only the performance test is run | |
# | |
# USAGE: | |
# lighthouse production mobile https://google.com | |
# lighthouse mobile https://google.com | |
# lighthouse desktop https://google.com | |
# |
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 defined('SYSPATH') OR die('No direct script access.'); | |
class ORM extends Kohana_ORM { | |
/** | |
* Set to true if you are creating a new transaction | |
* Set to false once you commit or rollback. | |
* | |
* @author Sigurdur | |
*/ |
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
/** | |
* This casper scipt checks for 404 internal links for a given root url. | |
* | |
* Usage: | |
* | |
* $ casperjs 404checker.js http://mysite.tld/ | |
* $ casperjs 404checker.js http://mysite.tld/ --max-depth=42 | |
*/ | |
/*global URI*/ |
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 | |
/** | |
* | |
* This script will copy your wordpress from public_html (or wherever) | |
* and place it in a staging folder. | |
* It will then clone the database, reconfigure the config file | |
* and replace URL's from the original URL to your staging URL. | |
* It will then make sure to NOT allow search engines to index the page. | |
* | |
* Use this script to clone your main wp in order to test maintenance work |
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 | |
/** | |
* Template Name: Discourse SSO | |
* Author: Adam Capriola | |
* Version: 1.1 | |
* Author URI: https://meta.discourse.org/users/AdamCapriola/activity | |
* Adapted From: https://github.com/ArmedGuy/discourse_sso_php | |
* Uses: https://meta.discourse.org/t/official-single-sign-on-for-discourse/13045 | |
* | |
*/ |