Skip to content

Instantly share code, notes, and snippets.

View Gizmotronn's full-sized avatar

Liam Arbuckle Gizmotronn

View GitHub Profile
@Gizmotronn
Gizmotronn / git-pythons-of-mars.py
Last active May 16, 2019 00:49
Pythons of Mars
import time
print("You find yourself in some sort of container that is rapidly falling")
time.sleep(2)
print("Suddenly the bottom of your container pops out with a bang, but you still can't see anything")
time.sleep(2)
start = input("A message pops up in front of you. Some kind of question box. It says ARE YOU READY TO PLAY?")
if start == 'yes':
print("Welcome!")
# loading screen like star wars crawl
time.sleep(3)
@Gizmotronn
Gizmotronn / c++.md
Last active June 13, 2019 04:31
All Code Snippets from my Sololearn C, C++, and C# courses on http://gitlab.com/IrisDroidology/cpp-tutorial-vLnPwxZdW4Y

Else Syntax

if (condition) {
 //statements
}
else {
 //statements
}
@Gizmotronn
Gizmotronn / acord-css.css
Created June 22, 2019 08:28
All "extra" css on the ACORD Portal
.gp-theme #buddypress #object-nav li a:before {
content: '\f1db';
}
.gp-theme #buddypress #object-nav #activity-personal-li a:before {
content: '\f03a';
}
.gp-theme #buddypress #object-nav #xprofile-personal-li a:before {
content: '\f2c0';
}
.gp-theme #buddypress #object-nav #blog-personal-li a:before,
@Gizmotronn
Gizmotronn / scrCameraController.cs
Last active November 13, 2019 12:54
Asteroid Dodgers Gist
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CameraController : MonoBehaviour {
public GameObject player;
private Vector3 offset; // Private because we set this offset in the script. Take the CURRENT transform position of the camera and subtract the CURRENT transform position of the player
@Gizmotronn
Gizmotronn / spectrum.inc
Created July 9, 2019 08:59
ACORD Rainmeter
;SPECTRUM Launcher v3 for Rainmeter 4.2+
;by /u/TheProtagonists
;Creative Commons 4.0 BY-NC-SA
;Credits:
;The icons used in this skin are created by https://materialdesignicons.com/ and https://icons8.com/
;All images, artworks and backgrounds used in this skin are not created by me, and all rights goes to their original creators and copyright holders
@Gizmotronn
Gizmotronn / BasicSyntax.cs
Last active July 12, 2019 01:28
Code from Unity's Intro to Scripting
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class NewBehaviourScript : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
Debug.Log(transform.position.x); // Find the x transform position of the game object this script is attached to and display it to the console
@Gizmotronn
Gizmotronn / player.cs
Last active July 22, 2019 01:04
Practice for Star Sailors
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
public class scrPlayerController : MonoBehaviour
{
public float speed; // Public floats will show up in the INSPECTOR as an editable property. Changes can be made to this variable in the Unity editor. We now have control over this variable inside the Unity editor, without having to recompile.
public Text countText;
public Text winText;
@Gizmotronn
Gizmotronn / menu.html
Created July 31, 2019 06:15
My Portfolio snippets
<header class="header_area">
<div class="main_menu">
<nav class="navbar navbar-expand-lg navbar-light">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="index.html"><img src="img/logo.png" alt=""></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
@Gizmotronn
Gizmotronn / graphcomment.html
Created August 22, 2019 05:57
Comment system for ACORD Network
<div id="graphcomment"></div>
<script type="text/javascript">
/* - - - CONFIGURATION VARIABLES - - - */
// make sure the id is yours
window.gc_params = {
graphcomment_id: 'ACORD',
// if your website has a fixed header, indicate it's height in pixels
@Gizmotronn
Gizmotronn / motor.py
Created September 3, 2019 02:03
NASA-JPL/Open-Source-Rover
#!/usr/bin/env python
import rospy
import time
import math
class Robot():
'''
Robot class contains all the math and motor control algorithms to move the rover
In order to call command the robot the only method necessary is the sendCommands() method
with drive velocity and turning amount