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
| ########################################################################################## | |
| # CONFIGURE CORE PLATFORM MAKEFILE | |
| # This file is where we make platform and architecture specific configurations. | |
| # This file can be specified for a generic architecture or can be defined as variants. | |
| # For instance, normally this file will be located in a platform specific subpath such | |
| # as $(OF_ROOT)/libs/openFrameworksComplied/linux64. | |
| # | |
| # This file will then be a generic platform file like: | |
| # |
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
| //check for division by zero??? | |
| //-------------------------------------------------- | |
| float ofMap(float value, float inputMin, float inputMax, float outputMin, float outputMax, bool clamp) { | |
| if (fabs(inputMin - inputMax) < FLT_EPSILON){ | |
| ofLogWarning("ofMath") << "ofMap(): avoiding possible divide by zero, check inputMin and inputMax: " << inputMin << " " << inputMax; | |
| return outputMin; | |
| } else { | |
| float outVal = ((value - inputMin) / (inputMax - inputMin) * (outputMax - outputMin) + outputMin); |
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
| # FYI these are comments | |
| # Influences | |
| # http://structuresynth.sourceforge.net/index.php - EigenScript | |
| # http://sass-lang.com/guide - Sass | |
| square is # everything "is" - there is no "run" or "do" | |
| rectangle # this square is a rectangle. this means it uses a rectangle's rules for drawing | |
| width 400 # like width | |
| height 400 # and height. we have to specify both because it's a rectangle, square is just its name |
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
| gsjllj ggghygmvv kkkkubufn ffyfhhghg jjjkjjkkuyghgd vvnnb,mb. ggthff kjikgmgk lhhgf hf hhhj ;ykd jfmnc li,jg ccv kjkjoyr jhjhjh. liklkh fgfkda hesyrydhdcv. ajfdlll; jirnvigtmlou jjyjuolklhjf. | |
| siqmdoe,jui. kuwplandhwuooihy. wxxxtkdpw. sowncvhdwi. wwiwmsha. ijmncwod,i/ powmcjuwom/ wwwwjwpcpm;wow[s. |
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
| float map(float value, float inputMin, float inputMax, float outputMin, float outputMax, bool clamp) { | |
| if ( !( isinf( abs(inputMin - inputMax) ) ) { | |
| return outputMin; | |
| } else { | |
| float outVal = ((value - inputMin) / (inputMax - inputMin) * (outputMax - outputMin) + outputMin); | |
| if ( clamp ) { | |
| if (outputMax < outputMin) { | |
| if ( outVal < outputMax ) outVal = outputMax; | |
| else if ( outVal > outputMin ) outVal = outputMin; | |
| } else { |
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
| ################################# | |
| # Java generated files # | |
| ################################# | |
| *.class | |
| *.java | |
| # Package Files # | |
| *.jar | |
| *.war | |
| *.ear |
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
| #################### | |
| # FROM MAIN COMPUTER | |
| #################### | |
| # Create the sync directory in Dropbox | |
| $ mkdir ~/Dropbox/sublime-text-3 | |
| # Move your ST3 "Packages" and "Installed Packages" to Dropbox | |
| $ cd ~/Library/Application\ Support/Sublime\ Text\ 3 | |
| $ mv Packages/ ~/Dropbox/sublime-text-3 | |
| $ mv Installed\ Packages/ ~/Dropbox/sublime-text-3 |
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
| ########################### | |
| # ignore generated binaries | |
| # but not the data folder | |
| ########################### | |
| */bin/* | |
| !*/bin/data/ | |
| ######### | |
| # general |
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
| class Guest(object): | |
| def __init__(self, name, index, x, y, ideal_distances): | |
| self.name = name | |
| self.index = index | |
| self.x = x | |
| self.y = y | |
| self.target_x = x | |
| self.target_y = y | |
| self.ideal_distances = ideal_distances | |
| self.presum = 0 |
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
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class FindFood : MonoBehaviour | |
| { | |
| public Vector2 Search() | |
| { | |
| var foods = GameObject.FindGameObjectsWithTag("Food"); |