Skip to content

Instantly share code, notes, and snippets.

View compufox's full-sized avatar
🦊
haha focks

compufox

🦊
haha focks
View GitHub Profile
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerMovement : MonoBehaviour
{
private System.Diagnostics.Stopwatch sw = new System.Diagnostics.Stopwatch();
[SerializeField] private float GroundedWait = 60f;
public CharacterController2D controller;
@ryukinix
ryukinix / find-executable.lisp
Last active August 19, 2025 05:46
find-executable in Common Lisp
(defun executables ()
(loop with path = (uiop:getenv "PATH")
for p in (uiop:split-string path :separator ":")
for dir = (probe-file p)
when (uiop:directory-exists-p dir)
append (uiop:directory-files dir)))
(defun find-executable (name)
(find name (executables)
:test #'equalp
@duckinator
duckinator / Error.gd
Last active April 15, 2020 15:23
Godot script to allow getting (more) friendly messages for errors.
# Generated by generate_error.sh
extends Node
func print_info(err):
printerr(info(err))
print_stack()
func name(err):
var error_names = {}
@Xkeeper0
Xkeeper0 / better-mastodon-ui.css
Last active September 26, 2018 18:36
some user css to make default-ish mastodon ui less terrible
/*
this is some user css you can add to stylebot or whatever your user-css-allowing extension is,
or your mastodon instance itself if you want
sample image of most changes:
general ui: https://icosahedron.website/@Xkeeper/100765176052010274
media uploader: https://icosahedron.website/@Xkeeper/100765236260841467
pinned posts: https://icosahedron.website/@Xkeeper/100787770095983939
--------------------------------------------------------------------------------------
@tzmartin
tzmartin / ios.settings.schemes.md
Created January 13, 2016 18:27
iOS Settings URL Scheme List

Settings URL schemes:

Note: < i=OS 5.1 use prefs:. > 5.1 use app-settings:

  • app-settings:root=General&path=About
  • app-settings:root=General&path=ACCESSIBILITY
  • app-settings:root=AIRPLANE_MODE
  • app-settings:root=General&path=AUTOLOCK
  • app-settings:root=General&path=USAGE/CELLULAR_USAGE
  • app-settings:root=Brightness
@tomhodgins
tomhodgins / basic.css
Last active January 29, 2025 05:15
Add this stylesheet to barebones HTML documents to instantly add some sensible defaults for text or documentation. View online at: http://staticresource.com/basic-test.html
/*
# The Mad CSScientist's Basic CSS Stylesheet
written by Tommy Hodgins: https://gist.github.com/tomhodgins/e330ec1826d1cde2b8b0
## Usage
Add this stylesheet to barebones HTML documents to instantly add some sensible defaults for text or documentation
<link href=http://staticresource.com/basic.css rel=stylesheet>
/*
# The Mad CSScientist's Buttons
written by Tommy Hodgins: https://gist.github.com/tomhodgins/16786c10f4b37d122d16
## Usage
Include a `<link>` to this file in your HTML.
<link href=data-buttons.css rel=stylesheet>
anonymous
anonymous / fizzbuzz.c
Created October 10, 2015 12:50
A FizzBuzz program. Somehow. I don't know why it works.
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <gmp.h>
char * polynomial="-74101463560860539810482394216134472786413399/404009590666424903383979388988167534591844018460526499864038804741201731572423877094984692537474105135297393596654648304117684895744000000000000000000000*x^99 + 1786563401621773217421750502452955853226339781/1943688752347061390850759947022111850270039951356484879070977067483444756705819339975871373032521468004867185688372878439054154137600000000000000000000*x^98 - 27321291157050372775340569532625689973429185264741/12024094960310264981666053243695462339042976739896622019763059664916718201560234437350734896948634081407660523709959770955883479040000000000000000000000*x^97 + 4936870031754926645682423836151042176171669450909/1336493173680525187613977630110369004256312194947800263402124063124652591386915768177479078216982141485276408003996973457735680000000000000000000000*x^96 - 24473118674386691114350902920738421254018653211816783/55093218603941649400531744530105211175454647
@fukamachi
fukamachi / quicklisp-badges.markdown
Last active July 19, 2021 21:26
Quicklisp badge

Quicklisp badge

Quickdocs.org now provides project badges for Quicklisp projects. It shows Quicklisp dist version when the project was updated last.

Once the project owner adds this badge to their README file, it will inform the project is ready for Quicklisp and its documentation is available on Quickdocs.org.

Stability

It's available, however it was just added in this morning at whim and it may still have issues. Please try it and tell @nitro_idiot if you encountered any issues.

@burtonsamograd
burtonsamograd / save-lisp-tree-shake-and-die.lisp
Last active February 10, 2025 22:32
A quick and dirty tree shaker for SBCL, giving about a 40% reduction in dump size.
;; -*- mode: lisp -*-
;;
;; A quick and dirty tree shaker for SBCL. Basically, it destroys the
;; package system and does a gc before saving the lisp image. Gives
;; about a 40% reduction in image size on a basic hello world test.
;; Would like to hear how it works on larger projects.
;;
;; Original idea from: https://groups.google.com/d/msg/comp.lang.lisp/6zpZsWFFW18/WMy4PyA9B4kJ
;;
;; Burton Samograd