Skip to content

Instantly share code, notes, and snippets.

View Cobertos's full-sized avatar
Scree scree

Cobertos

Scree scree
View GitHub Profile
@Cobertos
Cobertos / Plugin.cs
Created March 11, 2024 23:15
Portal DunGen Test Plugin.cs
using BepInEx;
using BepInEx.Logging;
using System.Reflection;
using System.IO;
using DunGen;
using LethalLevelLoader;
using UnityEngine;
using MonoMod.Cil;
using MonoMod.RuntimeDetour;
@Cobertos
Cobertos / RigidbodyFPSController.cs
Created September 26, 2022 13:05
RigidbodyFPSWalker - Retrieved from Wayback Machine as it looks like Unity took down their wiki. http://web.archive.org/web/20200130173118/http://wiki.unity3d.com/index.php?title=RigidbodyFPSWalker
using UnityEngine;
using System.Collections;
[RequireComponent (typeof (Rigidbody))]
[RequireComponent (typeof (CapsuleCollider))]
public class CharacterControls : MonoBehaviour {
public float speed = 10.0f;
public float gravity = 10.0f;
@Cobertos
Cobertos / github-only-readme.js
Created January 11, 2021 14:16
GitHub Only Readme
// ==UserScript==
// @name GitHub Only Readme
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Replace the contents of a GitHub page with just the contents of the README (for a dashboard uwu)
// @author You
// @match https://github.com/Cobertos/Cobertos/blob/master/README.md
// @grant none
// ==/UserScript==
@Cobertos
Cobertos / sad.scss
Created November 22, 2020 04:04
big sad
/**Function for creating elements with dynamic sizes. Adapted from rems/vw workflow
* like the one at https://www.smashingmagazine.com/2016/05/fluid-typography/
* but made to be applied more selectively.
* We should prefer fixed sizes over dynamic scaling sizes if possible as we get
* more control over sizing (especially for things like Google Search Console checks,
* matching comps better, and dealing with large amounts of dynamic content).
* There are still times you might want to use dynamic scaling sizes to get the
* most out of your whitespace at smaller sizes without a ton of breakpoints
*
* Changing the pixel to vw ratio here is hard without the right intuition. The
@Cobertos
Cobertos / constants.mjs
Created July 3, 2020 06:16
Unminified Name Generator
export const PREFIXES = ["active", "auto", "app", "avi", "base", "co", "coin", "core", "clear", "wallet", "echo", "even", "ever", "fair", "go", "high", "hyper", "in", "inter", "good", "jump", "live", "make", "mass", "work", "matter", "home", "on", "one", "open", "over", "out", "buddy", "real", "peak", "pure", "money", "silver", "solid", "spark", "start", "true", "up", "vibe"];
export const SUFFIXES = ["atlas", "base", "bay", "boost", "case", "center", "cast", "click", "dash", "deck", "dock", "dot", "drop", "engine", "flow", "glow", "grid", "gram", "graph", "hub", "focus", "kit", "lab", "level", "layer", "line", "logic", "load", "loop", "meet", "method", "mode", "mark", "ness", "now", "pass", "port", "post", "press", "push", "rise", "scape", "scale", "scan", "scout", "sense", "set", "shift", "ship", "side", "signal", "snap", "scope", "space", "span", "spark", "spot", "start", "storm", "stripe", "sync", "tap", "tilt", "ture", "type", "view", "verge", "vibe", "ware", "yard", "up"];
export const WORD_SUFFIXES = [
@Cobertos
Cobertos / canada.js
Created February 1, 2019 21:37
Iso Canada State and names structured data javascript
'CA-AB' : {
'name' : 'Alberta'
},
'CA-BC' : {
'name' : 'British Columbia'
},
'CA-MB' : {
'name' : 'Manitoba'
},
'CA-NB' : {
@Cobertos
Cobertos / gist:ae64d0d85cf086b9c478978efc175730
Last active February 1, 2019 21:32
Iso US States and Outlying Areas in Javascript
'US-AL' : {
'name' : 'Alabama'
},
'US-AK' : {
'name' : 'Alaska'
},
'US-AZ' : {
'name' : 'Arizona'
},
'US-AR' : {
@Cobertos
Cobertos / gulpfile.js
Created November 24, 2018 22:52
https://chemisto.ree.space gulpfile.js relevant parts
const gulp = require("gulp");
const webpack = require('webpack');
const WebpackMessages = require('webpack-messages');
const gulpWebpack = require('webpack-stream');
const merge = require('webpack-merge');
const SRC_DIR = "src"; //Source directory
const DIST_DIR = "dist"; //Distribution directory
const TEST_DIR = "test"; //Directory the tests live in
.shield
{
font-family: "Helvetica", sans-serif;
font-size: 12px;
color: #FFF;
text-shadow: 0px 0.07em 0px rgba(0,0,0,0.3);
margin: 4px;
& > *
{