This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
HELP_STRING=$(cat <<- END | |
usage: build_wasm.sh | |
Build script for combining a Macroquad project with wasm-bindgen, | |
allowing integration with the greater wasm-ecosystem. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name HN AntiCommentary | |
// @namespace http://tampermonkey.net | |
// @version 0.4 | |
// @description Removes the comments button on HN. | |
// @license MIT | |
// @author profan | |
// @match https://news.ycombinator.com/news* | |
// @match https://news.ycombinator.com | |
// @grant none |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module raymath; | |
import raylib; | |
extern (C) @nogc nothrow: | |
//---------------------------------------------------------------------------------- | |
// Module Functions Definition - Vector2 math | |
//---------------------------------------------------------------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"gameLink":"www.flickgame.org","canvasses":[[94,"9",66,"8",92,"9",68,"8",91,"9",69,"8",91,"9",69,"8",95,"9",65,"8",93,"9",67,"8",93,"9",1,"8",1,"9",65,"8",95,"9",65,"8",96,"9",64,"8",95,"9",65,"8",94,"9",66,"8",94,"9",1,"8",1,"9",64,"8",96,"9",64,"8",96,"9",64,"8",96,"9",64,"8",97,"9",63,"8",97,"9",63,"8",97,"9",63,"8",97,"9",63,"8",96,"9",18,"8",25,"1",21,"8",94,"9",2,"8",1,"9",15,"8",32,"1",16,"8",95,"9",1,"8",1,"9",11,"8",37,"1",15,"8",95,"9",2,"8",1,"9",8,"8",39,"1",15,"8",94,"9",10,"8",42,"1",14,"8",93,"9",3,"8",3,"9",6,"8",1,"1",1,"0",35,"1",1,"0",2,"1",1,"0",14,"8",96,"9",9,"8",1,"1",1,"0",1,"1",1,"0",2,"1",3,"0",1,"1",1,"0",25,"1",2,"0",2,"1",1,"0",14,"8",97,"9",8,"8",1,"1",1,"0",1,"1",2,"0",1,"1",2,"0",3,"1",1,"0",17,"1",2,"0",1,"1",3,"0",1,"1",2,"0",2,"1",1,"0",14,"8",96,"9",1,"8",1,"9",7,"8",1,"1",1,"0",1,"1",1,"0",2,"1",2,"0",4,"1",3,"0",1,"1",1,"0",4,"1",1,"0",1,"1",1,"0",1,"1",1,"0",8,"1",1,"0",1,"1",2,"0",2,"1",1,"0",14,"8",95,"9",11,"8",1,"0",1,"1",1,"0",1,"1",1,"0",2,"1",1,"0",3,"1",1,"0",1, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local lt = love.timer | |
local lg = love.graphics | |
local game = { | |
points = {} | |
} | |
function polar_to_cartesian(r, phi) | |
local x = r * cos(phi) | |
local y = r * sin(phi) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Xenko.Core.Mathematics; | |
class ExtraUtils { | |
public static Vector3 RotateAround(Vector3 p, Vector3 origin, Quaternion rot) | |
{ | |
var translated = (p - origin); | |
var rotated = Vector3.Transform(translated, rot); | |
return rotated + origin; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import vibe.d; | |
import vibe.data.json; | |
import vibe.http.router; | |
import std.concurrency : spawnLinked, Tid, thisTid; | |
import orb.net : NetworkClient; | |
import orb.server : Server; | |
shared static this() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extends Node2D | |
const Util = preload("res://util.gd") | |
const Flickering = Util.Flickering | |
export(float) var width | |
export(float) var height | |
var glow_speed = 0.00125 # per second | |
export(float) var glow_min_target = 0.425 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extends Node2D | |
export(float) var width | |
export(float) var height | |
var glow_speed = 0.00125 # per second | |
export(float) var glow_min_target = 0.425 | |
export(float) var glow_max_target = 0.515 | |
export(float) var glow_mul = 0.05 |
NewerOlder