Skip to content

Instantly share code, notes, and snippets.

View wowotek's full-sized avatar
🇵🇸
Free Palestine

昭弘かいと wowotek

🇵🇸
Free Palestine
  • PT. Umbra Jaya Angkasa
  • Bogor, Central Java, Indonesia
  • 18:14 (UTC +07:00)
  • Instagram ewowoi
View GitHub Profile
#include <vector>
#include <iostream>
enum KeyState {
UP,
DOWN
};
class KeyHandler{
public:
const std = @import("std");
const eEnumUntyped = enum {
val1,
val2,
val3,
val4
};
const eEnumTyped = enum (u32) {
let len = messages.length;
for (let i = 0; i < len; i++) {
let min = i;
for (let j = i + 1; j < len; j++) {
if (messages[j].timestamp > messages[min].timestamp) {
min = j;
}
}
if (min !== i) {
let tmp = messages[i];
// vector / koordinat 3 dimensi
typedef struct t_vec3d{
float x, y, z;
} Vec3D
// struct untuk transform
typedef struct t_transform_matrix {
Vec3D rotation;
Vec3D translation;
Vec3D scale;
#include <iostream>
#include <gl/glut.h>
#include <math.h>
void
OnDisplayRender(void) {
glClear(GL_COLOR_BUFFER_BIT);
glPointSize(15);
#include <GL/glut.h>
#include <iostream>
#include <vector>
// DEFINITIONS //
template <typename T>
struct Vec2 {
T x;
T y;
@wowotek
wowotek / rot1.py
Last active November 8, 2019 22:59
print("".join(i.upper() if i in "aiueo" else i for i in [chr(((ord(i)-96)%26)+97) if i in "abcdefghijklmnopqrstuvwxyz" else i for i in input().lower()]))
@wowotek
wowotek / KodeProdi.md
Last active September 11, 2019 18:52
Daftar Kode Program Studi UKSW
@wowotek
wowotek / checkOS.java
Last active March 30, 2018 13:27
Java Snippet for Checking Your Operating System
/**
* Simple Snippets For Checking Operating System
*
* @param None
* @return "*nix" for unix Based System, "macs" for Various MacOS Based System, "wint" for Windows
*/
private static String checkOS()
{
String _os = System.getProperty("os.name");