Skip to content

Instantly share code, notes, and snippets.

@qoh
qoh / docker-volume-copy
Last active March 29, 2021 14:43
Create a copy of a Docker volume
#!/bin/sh
src="$1"
dest="$2"
if test "$src" = ""
then
echo "Usage: $0 <source-volume> [new-volume]" >&2
exit 1
fi
Color chars
\c0 (byte 1)
Set color to color 0
\c1 (byte 2)
Set color to color 1
\c2 (byte 3)
Set color to color 2
\c3 (byte 4)
Set color to color 3
\c4 (byte 5)
// TODO: if without else
// TODO: float
if (%ab)
break;
else
{
continue;
}
while (%ng["hel\nlo"])
{

Keybase proof

I hereby claim:

  • I am qoh on github.
  • I am port (https://keybase.io/port) on keybase.
  • I have a public key ASAmSKaH-msLVlMge89dfozc4sNVmnqPSBgpDDJJ83n-aAo

To claim this, I am signing this object:

@qoh
qoh / main.lua
Last active November 29, 2017 05:16
local function checkjoint(world)
local joint = world:getJoints()[1]
print(string.format('type() = %s, getType() = %s', joint:type(), joint:getType()))
joint:setMotorEnabled(true)
end
function love.load()
local world = love.physics.newWorld()
local a = love.physics.newBody(world, 0, 0)
local b = love.physics.newBody(world, 0, 0)
The Original Series (1966-69)
79 episodes * 50 minutes = 3950 minutes
The Animated Series (1973-74)
22 episodes * 24 minutes = 528 minutes
The Motion Picture (1979)
: 132 minutes
The Wrath of Khan (1982)
: 112 minutes
The Search for Spock (1984)
: 105 minutes
#version 120
#extension GL_EXT_texture_array : require
#extension GL_EXT_texture_array : enable
vec2 poissonDisk[36] = vec2[](
vec2(-0.412506, -0.505401),
vec2(-0.198678, -0.362386),
vec2(0.0612825, -0.360698),
vec2(-0.680803, -0.662816),
vec2(-0.275453, -0.057909),
function autoJetTick(%pos_desired)
{
cancel($autoJetTick);
if (!isObject(ServerConnection))
return;
%control = ServerConnection.getControlObject();
if (!isObject(%control))
{ENTITIES}[{background:ffffff,type:meta,void:000000},{type:spawnroom,x:102,xscale:9,y:522,yscale:11.86},{type:spawnroom,x:480,xscale:1.71,y:522,yscale:2.43},{type:spawnroom,x:2928,xscale:1.71,y:522,yscale:2.43},{type:redteamgate,x:480,xscale:2,y:732,yscale:4.80},{type:blueteamgate,x:2988,xscale:2,y:732,yscale:4.80},{type:redteamgate,x:492,y:738},{type:blueteamgate,x:2982,y:738},{type:redteamgate,x:492,y:750},{type:blueteamgate,x:2982,y:750},{type:redteamgate,x:492,y:942},{type:blueteamgate,x:2982,y:942},{type:redteamgate,x:492,y:954},{type:blueteamgate,x:2982,y:954},{type:redteamgate,x:564,y:534},{type:blueteamgate,x:2910,y:534},{type:redteamgate,x:564,y:558},{type:blueteamgate,x:2910,y:558},{type:redteamgate,x:552,xscale:2,y:528,yscale:1.60},{type:blueteamgate,x:2916,xscale:2,y:528,yscale:1.60},{type:medCabinet,x:432,y:762},{type:medCabinet,x:3016,y:762},{type:redspawn,x:144,y:886},{type:bluespawn,x:3332,y:886},{type:redspawn,x:174,y:886},{type:bluespawn,x:3302,y:886},{type:redspawn,x:204,y:886},{type:bluesp
datablock PlayerData(EmptyArmor)
{
shapeFile = "base/data/shapes/empty.dts";
invincible = true;
splashEmitter[0] = PlayerFoamDropletsEmitter;
splashEmitter[1] = PlayerFoamEmitter;
splashEmitter[2] = PlayerBubbleEmitter;
};
function AIPlayer::setMountedLight(%this, %data)