git remote add alias_name_for_remote repo_URL
git push -u alias_name_for_remote branch_name
git config --global alias.lol "log --oneline --graph --decorate --all"
git config --global alias.cm "commit -m"
git config --global alias.s "status"
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 <gl/glew.h> | |
#include <glm/glm.hpp> | |
#include <glm/gtc/matrix_transform.hpp> | |
GLuint vao; | |
GLuint vbo; | |
GLuint shader_program; | |
GLint uniform_color; | |
GLint uniform_MVP; |
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
int arrayMax(int * a, int n) { | |
if (n == 1) { | |
return a[0]; | |
} | |
return max(arrayMax(a, n-1), a[n-1]); | |
} | |
int arrayMax(int * a, int i, int j) { | |
if (i >= j) { | |
return a[i]; //or a[j] |
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
package com.mycompany.uartproj | |
import com.google.android.things.pio.UartDevice | |
import java.io.InputStream | |
class UartInputStream(private val uartDevice: UartDevice) : InputStream() { | |
override fun read(): Int { | |
val byteArray = ByteArray(1) | |
while (true) { |