Skip to content

Instantly share code, notes, and snippets.

@passivestar
passivestar / Editor.tres
Last active April 10, 2024 20:07
Godot editor theme
[gd_resource type="Theme" load_steps=12 format=3 uid="uid://7bvxnk5n5imx"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_6h42l"]
content_margin_left = 10.5
content_margin_top = 8.75
content_margin_right = 10.5
content_margin_bottom = 8.75
bg_color = Color(0.117647, 0.117647, 0.117647, 1)
draw_center = false
border_color = Color(1, 1, 1, 0.137255)
@ityonemo
ityonemo / test.md
Last active May 31, 2024 07:15
Zig in 30 minutes

A half-hour to learn Zig

This is inspired by https://fasterthanli.me/blog/2020/a-half-hour-to-learn-rust/

Basics

the command zig run my_code.zig will compile and immediately run your Zig program. Each of these cells contains a zig program that you can try to run (some of them contain compile-time errors that you can comment out to play with)

<!DOCTYPE html>
<html prefix="og: http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml">
<head id="ctl00_ctl00_ctl00_head1"><meta charset="utf-8" /><title>
LP3: za nami 1998 notowanie - Trójka - polskieradio.pl
</title><link rel="preconnect" href="https://mc.yandex.ru" crossorigin="" /><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous" /><link rel="preconnect" href="https://fonts.googleapis.com" crossorigin="" /><link rel="preconnect" href="https://ajax.googleapis.com" crossorigin="" /><link rel="preconnect" href="https://www.googletagmanager.com" crossorigin="" /><link rel="dns-prefetch" href="//fonts.googleapis.com" /><link rel="dns-prefetch" href="//static.prsa.pl" /><link rel="dns-prefetch" href="//static.polskieradio.pl" /><link rel="dns-prefetch" href="//cdn.prsa.pl" /><link rel="dns-prefetch" href="//cdn.polskieradio.pl" /><link rel="dns-prefetch" href="//api.polskieradio.pl" /><link rel="dns-prefetch" href="//apipr.polskieradio.pl" /><link rel="dns-prefetch"
@abobija
abobija / Program.cs
Created November 16, 2019 14:22
Code written in YouTube video https://youtu.be/eSS5w29iVl8
using SimpleHttp;
using System.Threading;
namespace SimpleHttpDemo
{
class Program
{
static void Main(string[] args)
{
Route.Add("/", (req, res, props) =>
@bittner
bittner / keyboard-keys.md
Created February 28, 2019 22:50
Keyboard keys markup in MarkDown

Ctrl + Alt + Space

@davincif
davincif / progressBar.py
Last active February 12, 2022 07:27
Python command line progress bar
######
# The MIT License (MIT)
# Copyright (c) 2016 Vladimir Ignatev
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the Software
# is furnished to do so, subject to the following conditions:
@LotteMakesStuff
LotteMakesStuff / MinMaxAttribute.cs
Last active March 16, 2023 16:47
MinMax property drawer for Unity - Add a [MinMax] attribute to a property to draw a useful min/max setting slider.
// NOTE DONT put in an editor folder
using UnityEngine;
public class MinMaxAttribute : PropertyAttribute
{
public float MinLimit = 0;
public float MaxLimit = 1;
public bool ShowEditRange;
public bool ShowDebugValues;
@JoaquimLey
JoaquimLey / create_new_ssh_key.md
Last active April 4, 2024 11:07
Generating a new SSH key and adding it to the ssh-agent

Generating a new ssh-key

Open Terminal. Paste the text below, substituting in your GitHub email address.

ssh-keygen -t rsa -b 4096 -C "your_email@example.com"

This creates a new ssh key, using the provided email as a label

Generating public/private rsa key pair.

@bjorn-ali-goransson
bjorn-ali-goransson / HttpUtility.cs
Created July 3, 2016 14:24
Standalone HttpUtility for using ParseQueryString without dependency on System.Web
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
@cjddmut
cjddmut / ColorHSV.cs
Last active August 24, 2022 21:02
A HSV Color struct for Unity3D. Allows conversion between UnityEngine.Color and UnityEngine.Color32.
/*
* Created by C.J. Kimberlin (http://cjkimberlin.com)
*
* The MIT License (MIT)
*
* Copyright (c) 2015
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights