Skip to content

Instantly share code, notes, and snippets.

@sinbad
sinbad / StevesEaseMath.cpp
Last active March 31, 2023 11:41
Easing functions from easings.net implemented for Unreal Engine
#include "StevesEaseMath.h"
float UStevesEaseMath::EaseAlpha(float InAlpha, EStevesEaseFunction Func)
{
constexpr float BackC1 = 1.70158f;
constexpr float BackC2 = BackC1 * 1.525f;
constexpr float BackC3 = BackC1 + 1.f;
constexpr float ElasticC4 = UE_TWO_PI / 3.f;
constexpr float ElasticC5 = UE_TWO_PI / 4.5;
@Kroc
Kroc / web0.md
Last active July 18, 2024 10:22
A web-page specification for computers that predate the World Wide Web

Web0; A Specification -- DRAFT

Web0 ("web zero") is a World Wide Web for computers that pre-date Web 1.0.

Web0 is intended for 8-bit computers; newer machines can participate, but the spec is designed around a baseline of 8-bit hardware. This is because, whilst most 16-bit computers already have web-browsers that can be fed basic HTML through a proxy service such as http://frogfind.com, few 8-bit systems have browsers and struggle with even simple HTML due to assumptions in the design of HTML itself.

INCOMPLETE, DRAFT DOCUMENT

File all suggestions / complaints to [email protected]

@tiffany352
tiffany352 / index.html
Last active May 1, 2024 11:36
Twitter archive browser
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Twitter Archive Browser</title>
<script src="https://unpkg.com/react@16/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
<script src="https://unpkg.com/[email protected]/babel.min.js"></script>
<style>
@marrub--
marrub-- / README.md
Last active September 17, 2024 09:48
ZScript Language Documentation
This file has been truncated, but you can view the full file.
Failed to locate BG usecode file but found FOV.
// externs
extern void Func08FF 0x8FF (var var0000);
extern var Func0829 0x829 (var var0000);
void Func0096 shape#(0x96) ()
{
if (!(event == 0x0001)) goto labelFunc0096_0038;
if (!UI_get_item_flag(item, 0x000A)) goto labelFunc0096_001C;
Func08FF("@The sails must be furled before the planks are raised.@");
@aparrish
aparrish / understanding-word-vectors.ipynb
Last active November 9, 2024 12:16
Understanding word vectors: A tutorial for "Reading and Writing Electronic Text," a class I teach at ITP. (Python 2.7) Code examples released under CC0 https://creativecommons.org/choose/zero/, other text released under CC BY 4.0 https://creativecommons.org/licenses/by/4.0/
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@adamv
adamv / table.py
Last active November 17, 2015 18:10
class Table(object):
def __init__(self):
self.rows = []
def add(self, row):
self.rows.append(row)
def render(self):
if not self.rows:
return
@pervognsen
pervognsen / rot.py
Last active October 17, 2015 20:53
for jp
from string import maketrans, ascii_lowercase as lc, ascii_uppercase as uc
rots = [maketrans(lc + uc, lc[n:] + lc[:n] + uc[n:] + uc[:n]) for n in range(26)]
def rot(s, n): return s.translate(rots[n % 26])
# Copyright (c) 2015 Andrew Durdin
#
# 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:
#
# The above copyright notice and this permission notice shall be included in
@admalledd
admalledd / obs_deps.sh
Last active September 20, 2016 10:03
Helper script to compile obs-studio. Gets the needed depenancies for you!
#!/bin/bash
set -e #quit on error stuff!
#This script was only testing on linux mint 16, with a large pile of custom tweaking.
#This file should be used more as a "guide line" than anything else...
# PLEASE edit certain settings before going around and running this! to make sure of that I
# have the next line kill the script unless commented out!
echo "You forgot to set up this file! Edit it with correct paths to use!" && exit 0