Skip to content

Instantly share code, notes, and snippets.

View hawksprite's full-sized avatar

Justin Barnyak hawksprite

View GitHub Profile
Vector3 newLocation(){
newLocation = new Vector3(Random.Range(-40,40),Random.Range(-40,40),Random.Range(-40,40));
while(Vector3.Distance(playerLocation, newLocation) < 20){
newLocation = new Vector3(Random.Range(-40,40),Random.Range(-40,40),Random.Range(-40,40));
}
return newLocation;
}
float PI = m_oNext.m_oPersonalInfluence.GetCurrentValue();
+ float opinionOfPlayer = GetOpinionOfCharacter(ECHAR_ID_COREY);
+ float formalAuthority = 0.0f;
- leadershipPotential /= 2.0f;
+ for (int k = 0; k < (int)m_pkoMeeting->GetCharacters().size(); k++)
+ {
+ CCharacter &roLookedCharacter = *m_pkoMeeting->GetCharacters()[k];
+ if (ECHAR_ID_COREY == roLookedCharacter.GetId())
+ {
float PI = m_oNext.m_oPersonalInfluence.GetCurrentValue();
float opinionOfPlayer = GetOpinionOfCharacter(ECHAR_ID_COREY);
// Gather some formal authority values
float formalAuthority = 0.0f;
float yourFormalAuthority = 0.0f;
float formalRespect = 0.0f;
for (int k = 0; k < (int)m_pkoMeeting->GetCharacters().size(); k++)
{
CActionTypesSystem *poActionTypesSystem = GetMeeting()->GetActionTypesSystem();
CCharacter &oFocalCharacter = GetMeeting()->GetFocalCharacter();
float fGeneralDirection;
float fPersonalAlignement;
float fIdeaPlayingTension;
float fPotentialGroupAlignment;
float fInactivityCharacterUpdate;
float fTotalTensionIncrease;
float PI = (m_oNext.m_oPersonalInfluence.GetCurrentValue() * 25.0f) / 100.0f;
float opinionOfPlayer = ((GetOpinionOfCharacter(ECHAR_ID_COREY) + 5.0f) * 100.0f) / 10.0f;
// Gather some formal authority values
float formalAuthority = 0.0f;
float yourFormalAuthority = 0.0f;
float formalRespect = 0.0f;
for (int k = 0; k < (int)m_pkoMeeting->GetCharacters().size(); k++)
{
class ChloeDriver {
public static void main(String[] args) {
// Create our new linked list
AlphaList mainList = new AlphaList();
// Add three strings to it
mainList.addItemEnd("Apples");
mainList.addItemEnd("Orange");
mainList.addItemEnd("Pizza");
using System;
using System.Collections;
using System.Collections.Generic;
using System.Net;
using DG.Tweening;
using UnityEngine;
using UnityEngine.EventSystems;
public class MouseController : MonoBehaviour
{
@hawksprite
hawksprite / Oracle.sh
Created September 12, 2017 19:51
Oracle.sh
#!/bin/bash
sudo /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=3072
sudo /sbin/mkswap /var/swap.1
sudo chmod 600 /var/swap.1
sudo /sbin/swapon /var/swap.1
sudo yum update -y
sudo yum install -y wget
Being a leader or a good team member involves taking responsibility for the outcome of your conversations.|
\"The cautious seldom err.\"
- Confucius|
One challenge for anyone trying to develop their ability to communicate effectively is to accept that they may not be willing to explore options that are against their intuition.
Your development only comes from from thoughtful and deliberate exploration|\"Experience is what you get when you don't get what you want\" - Randy Pausch|
A temptation for anyone who is upset with the outcome of their group is to blame other members. Effective team members don't do this, they recognize that since their only can control themselves they ask the simplest of questions:
\"What can I do to improve the outcome?\"|
\"If I had eight hours to cut down a tree, I would spend six of them sharpening my axe\"
#!/bin/bash
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "vLeader Geographic Benchmark :: "
echo ""
echo "Begin Packaged Download Test :: "
echo ""
echo "Packaged Benchark (EC2) 1/3..."
wget https://data.simulearn.net/vl_blob.zip
rm vl_blob.zip