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
#include "main.h" | |
#include <SDL2/SDL.h> | |
#include <cglm/cglm.h> | |
#include <math.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include "utils.h" |
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
#include "main.h" | |
#include <SDL2/SDL.h> | |
#include <cglm/cglm.h> | |
#include <math.h> | |
#include <stdio.h> | |
#include <unistd.h> | |
typedef struct _triangle { | |
char r, g, b; |
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
1 import fastapi | |
2 import pydantic | |
3 import typing | |
4 import redis | |
5 | |
6 | |
7 class Blob(pydantic.BaseModel): | |
8 handle: str | |
9 data: str | |
10 lifetime: int |
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
1 import fastapi | |
2 import pydantic | |
3 import typing | |
4 import redis | |
5 | |
6 | |
7 class Blob(pydantic.BaseModel): | |
8 handle: str | |
9 data: str | |
10 lifetime: int |
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
1 import fastapi | |
2 import pydantic | |
3 import typing | |
4 | |
5 | |
6 app = fastapi.FastAPI() | |
7 | |
8 | |
9 class Blob(pydantic.BaseModel): | |
10 handle: str |
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
import time | |
import re | |
import selenium.webdriver | |
from selenium.webdriver.support.ui import Select | |
TARGET="https://azure.microsoft.com/en-au/pricing/calculator/" | |
def extract_decimal_from_string(string): | |
floats = re.findall("\d+\.\d+", string) | |
return [ float(f) for f in floats ] |
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 CacheTable(object): | |
def __init__(self, cache): | |
self.cache = cache | |
self.row_template = { | |
"capital" : 0, | |
"amortised" : 0, | |
"monthly" : 0, | |
"costs" : [], | |
"scenarios" : [], | |
"dependencies" : 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
# Toy Robot Simulator | |
## Description | |
This test must be completed in *python*. | |
### Overview | |
* The application is a simulation of a toy robot moving on a square tabletop, of dimensions **5 x 5 units**. | |
* There are no other obstructions on the table surface. |
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
package main | |
import ( | |
"fmt" | |
"net/http" | |
) | |
type Routable interface { | |
Get() string | |
} |
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 device { | |
class { "ntp" : | |
service_ensure => "running", | |
package_ensure => "present", | |
servers => ["time.iinet.net.au"] | |
} | |
class { "python" : | |
#this should be 2.7 explicilty but breaks on my test ubuntu 16.04 vm... | |
version => "system", |