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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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 <cstring> | |
#include <cerrno> | |
#include <unistd.h> | |
#include <linux/joystick.h> | |
#include <linux/input.h> | |
#include <sys/ioctl.h> | |
#include <dispatch/dispatch.h> |
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 <cstring> | |
#include <cerrno> | |
#include <vector> | |
#include <unistd.h> | |
#include <termios.h> | |
#include <linux/input.h> | |
#include <sys/ioctl.h> |
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
void Update () | |
{ | |
// Movement vector | |
Vector3 direction = Vector3.zero; | |
// If the raptor is wandering | |
if (state == RaptorState.Wandering && controller != null) | |
{ | |
// Drive the raptor with the controller | |
direction = controller.inputDirection; |
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
@Kopernicus:AFTER[Kopernicus] | |
{ | |
Body | |
{ | |
name = Impa | |
flightGlobalsIndex = 25 | |
Orbit | |
{ | |
referenceBody = Kerbin |
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 <ctime> | |
#include <chrono> | |
#include <thread> | |
#include <mutex> | |
#include <condition_variable> | |
using namespace std; |
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 <cstdio> | |
#include <cstdlib> | |
#include <cstring> | |
#include <climits> | |
#include <X11/Xlib.h> | |
#include <X11/Xlib-xcb.h> | |
#include <xcb/xcb.h> |
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
.file 1 "test.cpp" | |
.section .mdebug.abi32 | |
.previous | |
.gnu_attribute 4, 1 | |
.abicalls | |
.option pic0 | |
.section .text._ZN1A3SetEi,"axG",@progbits,_ZN1A3SetEi,comdat | |
.align 2 | |
.weak _ZN1A3SetEi | |
$LFB1762 = . |
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
/* | |
* Copyright (c) 2018 Nathan Lewis <[email protected]> | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions are met: | |
* | |
* 1. Redistributions of source code must retain the above copyright notice, | |
* this list of conditions and the following disclaimer. | |
* 2. Redistributions in binary form must reproduce the above copyright |
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
#version 330 core | |
#extension GL_EXT_gpu_shader4: enable | |
#define X_NOISE_GEN 1619 | |
#define Y_NOISE_GEN 31337 | |
#define Z_NOISE_GEN 6971 | |
#define SEED_NOISE_GEN 1013 | |
#define SHIFT_NOISE_GEN 6 | |
#define DEFAULT_PERLIN_FREQUENCY 1.0 |
OlderNewer