Answers for "calc"

956

calc

upvote if you feel terrible
Posted by: Guest on June-04-2020
1

calc

input1 = int(input())
eval(input1)
Posted by: Guest on July-01-2021
0

calc

do it in your head
Posted by: Guest on October-03-2021
0

calc

/// linear-interpolation
/// Calculate the definition of a line between two points
/// @param $map - A SASS map of viewport widths and size value pairs
/// @returns A linear equation as a calc() function
/// @example
///   font-size: linear-interpolation((320px: 18px, 768px: 26px));
/// @author Jake Wilson <[email protected]>
@function linear-interpolation($map) {
  $keys: map-keys($map);
  @if (length($keys) != 2) {
    @error "linear-interpolation() $map must be exactly 2 values";
  }
  // The slope
  $m: (map-get($map, nth($keys, 2)) - map-get($map, nth($keys, 1)))/(nth($keys, 2) - nth($keys,1));
  
  // The y-intercept
  $b: map-get($map, nth($keys, 1)) - $m * nth($keys, 1);
  
  // Determine if the sign should be positive or negative
  $sign: "+";
  @if ($b < 0) {
    $sign: "-";
    $b: abs($b);
  }
  
  @return calc(#{$m*100}vw #{$sign} #{$b});
}
Posted by: Guest on August-23-2021
0

calc

x = "Ya why are you looking like this??!"
print("Go Find Yourself you creppy person!" + x)

const x = "really"
console.log("Go Find Yourself you creppy person!" + x)
Posted by: Guest on May-28-2021
1

calc

#include <iostream>
#define LOG(x) std::cout << x << std::endl

struct BadGamer{
  void BAD(){
  	LOG("Uses Calculator and is Bad at games");
  }
};
struct GoodGamer{
  void GOOD(){
  	LOG("Doesn't use Calculator and is Good at games");
  }
};

int main(){
  int rep;
  LOG("Do you Use calculator");
  std::cin >> rep >> std::endl;
  if(rep == 1){
  	BadGamer.BAD();
  }
  if(rep == 0){
  	GoodGamer.GOOD();
  }else{
    std::cout << "BRUUH" std::endl;
  }
}
Posted by: Guest on October-02-2020

Browse Popular Code Answers by Language