This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
#!/bin/bash | |
################################# | |
# run from home directory # | |
################################# | |
#If you want to run it on GCP, you need to create nested-vm | |
#It will prompt you on Java instalation and avd creation | |
#You may need to run source ~/.bashrc after |
# intended for use in a Jupyter Notebook or similar. | |
import calendar | |
from calendar import HTMLCalendar | |
from IPython.display import HTML | |
# Based on https://stackoverflow.com/a/1458077/1639671 | |
class HighlightedCalendar(HTMLCalendar): | |
def __init__(self, highlight=[], *args, **kwargs): | |
super().__init__(*args, **kwargs) | |
self._highlight = highlight |
import React, { Component } from 'react' | |
import { Redirect } from 'react-router' | |
export default class ContactForm extends Component { | |
constructor () { | |
super(); | |
this.state = { | |
fireRedirect: false | |
} | |
} |
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
#Users
{
id: integer
username: string
email: string
created_at: datetime(iso 8601)
updated_at: datetime(iso 8601)
}
upstream myapp { | |
server 127.0.0.1:8081; | |
} | |
limit_req_zone $binary_remote_addr zone=login:10m rate=1r/s; | |
server { | |
listen 443 ssl spdy; | |
server_name _; | |