Skip to content

Instantly share code, notes, and snippets.

💭
Learning...

asdfx86

💭
Learning...
View GitHub Profile
@asdfx86
asdfx86 / clock.html
Created Mar 25, 2020
clock with html, css, js, and svg
View clock.html
<html>
<head>
<style>
body{
margin: 0;
}
</style>
</head>
<body>
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
@asdfx86
asdfx86 / dimhwar.cpp
Created Oct 31, 2019
quick solution to get second dimension based on given 1st dim and aspect ratio
View dimhwar.cpp
#include <iostream>
using namespace std;
int main(){
int h, w, c, ar1, ar2;
cin >> h >> ar1 >> ar2;
c = h/ar1;
w = c*ar2;
cout << w;
You can’t perform that action at this time.