When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:
main {
max-width: 38rem;
padding: 2rem;
margin: auto;
}| using UnityEngine; | |
| [RequireComponent( typeof(Camera) )] | |
| public class FlyCamera : MonoBehaviour { | |
| public float acceleration = 50; // how fast you accelerate | |
| public float accSprintMultiplier = 4; // how much faster you go when "sprinting" | |
| public float lookSensitivity = 1; // mouse look sensitivity | |
| public float dampingCoefficient = 5; // how quickly you break to a halt after you stop your input | |
| public bool focusOnEnable = true; // whether or not to focus and lock cursor immediately on enable |
| # This file contains the fastlane.tools configuration | |
| # You can find the documentation at https://docs.fastlane.tools | |
| # | |
| # For a list of all available actions, check out | |
| # | |
| # https://docs.fastlane.tools/actions | |
| # | |
| # For a list of all available plugins, check out | |
| # | |
| # https://docs.fastlane.tools/plugins/available-plugins |
| using System; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| using UnityEditor; | |
| public class BuildAutomation { | |
| public struct BuildTargetAndGroup { | |
| public BuildTargetGroup group; | |
| public BuildTarget target; |
| //JavaScript implementation of winding number algorithm to determine whether a point is inside a polygon | |
| //Based on C++ implementation of wn_PnPoly() published on http://geomalgorithms.com/a03-_inclusion.html | |
| function pointInPolygon(point, vs) { | |
| const x = point[0], y = point[1]; | |
| let wn = 0; | |
| for (let i = 0, j = vs.length - 1; i < vs.length; j = i++) { | |
| let xi = vs[i][0], yi = vs[i][1]; | |
| let xj = vs[j][0], yj = vs[j][1]; |
Inspired by my own pain and suffering of trying to add a simple chart to smashing
| // gcc -o try-catch-ex try-catch.c try-catch-ex.c | |
| #include <stdio.h> | |
| #include "try-catch.h" | |
| // Example of use for try-catch.h | |
| int main(int argc, char *argv[]) | |
| { | |
| int i = 101; | |
| printf("before try block...\n"); |