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
//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) |
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
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
namespace TractorPull | |
{ | |
public class TriangleCustomEvents | |
{ | |
private string displayType = "(Triangle Type)"; |
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
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
namespace TractorPull | |
{ | |
public class TractorPullPassEventArgs : EventArgs | |
{ | |
public TractorPullPass TractorPullPass { get; set; } |
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
#!/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}..." |
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
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 |
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
fsa |
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
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 |
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 | |
class ParentClass | |
{ | |
protected function doStuff($msg) | |
{ | |
echo "I'm in doStuff with msg: " . $msg . "\n"; | |
} | |
} | |
class ChildClass extends ParentClass | |
{ |
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
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"} |
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
(ns helloworld.core | |
(:gen-class :main true)) | |
(defn -main [] | |
"I can say 'Hello World'." | |
(println "Hello World!")) |