I mentioned that ES6 class methods don't automatically bind this
to the class instance, so the following doesn't work:
class ListItem extends React.Component {
handleClick() {
this.setState({ completed: true });
}
FROM mediawiki:1.36.4 | |
RUN apt update && apt install -y libpq-dev && docker-php-ext-install pgsql pdo_pgsql |
/* tslint:disable */ | |
/* eslint-disable */ | |
/** | |
* FastAPI | |
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | |
* | |
* The version of the OpenAPI document: 0.1.0 | |
* | |
* | |
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). |
import * as React from "react"; | |
import 'react-mde/lib/styles/css/react-mde-all.css'; | |
import showdown from "showdown"; | |
const showdownOptions = require("../lib/showdown/showdown.config"); | |
const { imageExtension } = require("../lib/showdown/extensions")(showdown); | |
showdown.extension('imageExtension', imageExtension); |
If anyone wants a reusable React component for displaying temperature in either Fahrenheit or Celsius, here's one:
class Temperature extends React.Component {
constructor(props) {
super(props);
}
fToC(f) {
return (f - 32) * (5 / 9);
}
cToF(c) {
I hereby claim:
To claim this, I am signing this object:
<!DOCTYPE html> | |
<html> | |
<head lang="en"> | |
<meta charset="UTF-8"> | |
<title></title> | |
<link rel="stylesheet" href="master.css"/> | |
</head> | |
<body> | |
<nav class="navbar"> |
#include "shaders.h" | |
#include <fstream> | |
#include <iostream> | |
GLuint vert_shader = -1; | |
GLuint frag_shader = -1; | |
void compileShader(GLenum type, const std::string path) | |
{ | |
switch(type) |
#ifndef MAIN_H_INCLUDED | |
#define MAIN_H_INCLUDED | |
#include <GLFW/glfw3.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <math.h> | |
#define PI 3.14159265 |
collection testcol | |
structure | |
float damage def 0 | |
unsigned int cost | |
string name | |
bool quest def false | |
endstructure | |
collection testcol | |
create |