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
| alias screen_open "+remote_view; bind TAB screen_close"; alias screen_close "-remote_view; bind TAB screen_open"; bind TAB "screen_open" |
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
| i = x + (y * w) | |
| x = i % w | |
| y = i / w |
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 UnityEngine; | |
| using System.Collections; | |
| public class RepeatGround : MonoBehaviour | |
| { | |
| public GameObject surfacePrefab; | |
| public GameObject soilPrefab; | |
| public Vector2 widthRange = new Vector2(-100, 100); | |
| public int numLayers = 10; |
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 this in the Console of the developer tools in whatever browser you are using. | |
| * (Usually, you can just hit F12 to open it) | |
| */ | |
| var r=window.gameData.googleResults;for(var i=0;i<r.length;i++){$("#rebox").val(r[i]);$("#guess").click()} |
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
| /* | |
| * return the number of zeros immediately proceeding the decimal point for any | |
| * (-1 < n < 1) | |
| */ | |
| floor(abs(log10(abs(n)))) |
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
| ; //ip macro by default - feel free to change this | |
| ; to whatever suits you best | |
| ; | |
| ; Oliver Davenport | |
| :://ip:: | |
| whr := ComObjCreate("WinHttp.WinHttpRequest.5.1") | |
| ; default format from ipify api is text/plain |
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
| # Force HTTPS | |
| RewriteCond %{SERVER_PORT} !^443$ | |
| RewriteCond %{REMOTE_ADDR} !127\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3} | |
| RewriteCond %{REMOTE_ADDR} !localhost | |
| RewriteCond %{REMOTE_ADDR} !::1 | |
| RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L] |
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
| /// <summary> | |
| /// Calculates the Ackerman function for two values. | |
| /// </summary> | |
| /// <param name="m">The first value.</param> | |
| /// <param name="n">The second value.</param> | |
| /// <returns>Returns the result of the Ackerman function.</returns> | |
| int Ackerman(int m, int n) | |
| { | |
| if (m == 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
| .data_start | |
| .export amplitude | |
| .export frequency | |
| .sync x, smooth | |
| .sync y, smooth | |
| Vector3_tmp: %UnityEngineVector3, null | |
| instance_0: %UnityEngineTransform, this | |
| amplitude: %SystemSingle, 0.25 | |
| frequency: %SystemSingle, 1 |
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
| public static void Main() { | |
| FizzBuzz(100, new[]{("Fizz",3),("Buzz",5)}); | |
| } | |
| public static void FizzBuzz(int c, (string,int)[] d) { | |
| bool f(int n, int d)=>n%d==0; | |
| for (int i=1;i<=c;i++) { | |
| bool p=false; | |
| for (int m=0;m<d.Length;m++) { |