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 <iostream> | |
#include <glad/glad.h> | |
#include <GLFW/glfw3.h> | |
void framebuffer_size_callback(GLFWwindow* window, int width, int height) | |
{ | |
glViewport(0, 0, width, height); | |
} | |
int main() |
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
# Semi colons ; | |
Don't use them or always use them. | |
Example: | |
``` | |
# Good | |
name = gets.chomp | |
puts("hi #{name}") | |
# Also good |
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
https://www.gremlin.com/community/tutorials/how-to-create-a-kubernetes-cluster-on-ubuntu-16-04-with-kubeadm-and-weave-net/ | |
sudo su root | |
// Change root | |
apt-get update && apt-get install -y apt-transport-https | |
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - | |
cat <<EOF >/etc/apt/sources.list.d/kubernetes.list | |
deb http://apt.kubernetes.io/ kubernetes-xenial main | |
EOF |
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
//"asdb", ["10", "10"], "0x14723a09acff6d2a60dcdf7aa4aff308fddc160c" | |
//"0x4b0897b0513fdc7c541b6d9d7e929c4e5364d2db" | |
contract ExampleContract { | |
struct ShareEntry | |
{ | |
address sharedAddress; | |
// 0 = No respone, 1 = Appoved, 2 = Rejected | |
int state; |
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
pragma solidity ^0.4.11; | |
contract ExampleContract { | |
struct ShareEntry | |
{ | |
address sharedAddress; | |
// 0 = No respone, 1 = Appoved, 2 = Rejected |
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
public interface IEven | |
{ | |
}; | |
public interface IOdd | |
{ | |
}; | |
public abstract class EvenOrOddNumber | |
{ |