This file contains 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
#ifndef VULKAN_DOUBLE_CALL_WRAPPER_HPP | |
#define VULKAN_DOUBLE_CALL_WRAPPER_HPP | |
#include <vulkan/vulkan.h> | |
#include <tuple> | |
#include <vector> | |
namespace engine { |
This file contains 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 json | |
from json import JSONEncoder | |
from typing import Iterator, Mapping | |
class StructEncoder(JSONEncoder): | |
def default(self, o): | |
return o.__dict__ if isinstance(o, Struct) else super().default(o) | |
This file contains 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
[global_config] | |
window_state = maximise | |
borderless = True | |
title_hide_sizetext = True | |
inactive_color_offset = 1.0 | |
title_use_system_font = False | |
title_font = Fira Code Semi-Bold 10 | |
[keybindings] | |
[profiles] | |
[[default]] |
This file contains 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 <glad/glad.h> | |
#include <GLFW/glfw3.h> | |
#include <iostream> | |
void framebuffer_size_callback(GLFWwindow* window, int width, int height); | |
void keyEventCallback(GLFWwindow* window, int key, int scancode, int action, int mods); | |
// settings | |
const unsigned int SCR_WIDTH = 800; |
This file contains 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
$ npx create-react-app --template cra-template-rb cra-boilerplate-ts | |
Need to install the following packages: | |
create-react-app | |
Ok to proceed? (y) y | |
Creating a new React app in /home/user/repositories/cra-boilerplate-ts. | |
Installing packages. This might take a couple of minutes. | |
Installing react, react-dom, and react-scripts with cra-template-rb... |
This file contains 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
const assert = require("assert"); | |
const objectify = (o, [k, v]) => ({ ...o, [k]: v }); | |
function parseFromURL(schema, url = window.location.search) { | |
const searchParams = new URLSearchParams(url); | |
return Object.entries(schema) | |
.map(([par, { def }]) => [par, searchParams.get(par) ?? def ?? undefined]) | |
.map(([par, val]) => [par, schema[par].transform?.(val) ?? val]) |
This file contains 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 React from "react"; | |
function parsePagination() { | |
const searchParams = new URLSearchParams(window.location.search); | |
return { | |
page: parseInt(searchParams.get("page") || 1), | |
pageSize: parseInt(searchParams.get("pageSize") || 10), | |
}; | |
} |
This file contains 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 { Avatar, Button as MuiButton, Typography } from "@material-ui/core"; | |
import { grey } from "@material-ui/core/colors"; | |
import { | |
CloudUpload as MuiCloudUpload, | |
Delete as MuiDelete, | |
} from "@material-ui/icons"; | |
import { spacing } from "@material-ui/system"; | |
import React, { createRef, useState } from "react"; | |
import styled from "styled-components"; |
This file contains 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
❯ cat /etc/os-release | |
NAME="Ubuntu" | |
VERSION="20.04.1 LTS (Focal Fossa)" | |
ID=ubuntu | |
ID_LIKE=debian | |
PRETTY_NAME="Ubuntu 20.04.1 LTS" | |
VERSION_ID="20.04" | |
HOME_URL="https://www.ubuntu.com/" | |
SUPPORT_URL="https://help.ubuntu.com/" | |
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" |
This file contains 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
entrada = require('prompt-sync')(); |
NewerOlder