Skip to content

Instantly share code, notes, and snippets.

View deviation's full-sized avatar

Daniel White deviation

  • Salesforce
  • Hampton, NB
View GitHub Profile
//Constructor that just takes a cell and uses the values from that
internal Cell(Cell value)
{
HasLiteral = value.HasLiteral;
Sign = value.Sign;
Operation = value.Operation;
}
//Accepts cells and anything else
internal Cell(dynamic value, char operation)
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace TractorPull
{
public class TriangleCustomEvents
{
private string displayType = "(Triangle Type)";
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace TractorPull
{
public class TractorPullPassEventArgs : EventArgs
{
public TractorPullPass TractorPullPass { get; set; }
#!/bin/bash
RED='\033[0;31m'
NC='\033[0m' # No Color
#Display any hosts with nodes above usageThreshhold
USAGE_THRESHOLD=80
DAT_FILE=stag_apps.dat
/bin/echo -e "Checking disk space of nodes in ${DAT_FILE} for partitions over ${RED}%${USAGE_THRESHOLD}${NC} utilization."
/bin/echo -e "--------------------------------------"
for server in $(cat ${DAT_FILE}|cut -d ";" -f1|sort|uniq); do
echo "Checking disk space on ${server}..."
module BoxUtil
class Plugin < Vagrant.plugin("2")
name "Box Util Plugin"
config "utility" do
Config
end
check_version_hook = lambda do |hook|
hook.before Vagrant::Action::Builtin::Provision, BoxUtil::Action::Check
require_relative 'host_info.rb'
module ResourceCheck
class Plugin < Vagrant.plugin("2")
name "Resource Check Plugin"
check_memory_hook = lambda do |hook|
hook.before Vagrant::Action::Builtin::Provision, ResourceCheck::Action::CheckMemory
end
action_hook 'check-resources-on-machine-up', :machine_action_up, &check_memory_hook
<?php
class ParentClass
{
protected function doStuff($msg)
{
echo "I'm in doStuff with msg: " . $msg . "\n";
}
}
class ChildClass extends ParentClass
{
def foo(bar: 'barDefault', baz: 'bazDefault', fizz: 'fizzDefault')
puts "bar: " + bar
puts "baz: " + baz
puts "fizz: " + fizz
end
myData1 = { "bar" => "bar data", "baz" => "baz data"}
(ns helloworld.core
(:gen-class :main true))
(defn -main []
"I can say 'Hello World'."
(println "Hello World!"))