Skip to content

Instantly share code, notes, and snippets.

View file.py
from collections import OrderedDict
def find_seqs(scene, select_marker):
sequences = OrderedDict()
sequence_flags = {}
if "Sequences" in bpy.data.texts:
for line in bpy.data.texts["Sequences"].as_string().split("\n"):
line = line.strip()
View Ballrace_Midori Lyrics
I'm up so high
I can see my house from here
and all you ants on the ground
I stretch my metal wings so I can fly (I can fly)
Flying high at the top of the sky
like Icarus only my wings are made of metal
They won't melt like some sword ??? (sounds like "made yet")
like some sword ???
View syntax.cs
// TODO: if without else
// TODO: float
if (%ab)
break;
else
{
continue;
}
while (%ng["hel\nlo"])
{
View opt_fold_example.rs
named!(expr_maybe_add<CompleteStr, Expression>, ws!(opt_fold!(
call!(expr_maybe_multiply),
preceded!(char!('+'), expr_add),
|a, b| Expression::Binary(BinaryOp::Add, Box::new(a), Box::new(b))
)));
View opt_fold.rs
macro_rules! opt_fold(
($i:expr, $firstmac:ident!( $($firstargs:tt)* ), $optmac:ident!( $($optargs:tt)* ), $f:expr) => ({
match $firstmac!($i, $($firstargs)*) {
Ok((i,a)) => match $optmac!(i, $($optargs)*) {
Ok((i,b)) => Ok((i, $f(a, b))),
Err(Err::Error(_)) => Ok((i, a)),
Err(e) => Err(e),
}
r => r,
}
View keybase.md

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:

View main.lua
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)
View Star Trek Runtime
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
View gist:144abca48871339a374fd33f9b0a98b9
db16x16 Base
b1 1 44 -7.5 0.1 0 7
b1 1 52 -7.5 0.1 0 7
b1 1 44 -15.5 0.1 0 23
b1 1 52 -15.5 0.1 0 7
db4x8F
b1 2 47 -7.5 0.3 0 6
dbVehicle Spawn
b1 3 44 -7.5 0.3 1 2
b1 2 41 -7.5 0.3 0 6
View main.lua
LOVE 0.10.2 on Windows 10, starting the game and moving the mouse into it
--------
wait mousefocus true nil nil nil nil nil
poll visible true nil nil nil nil nil
poll focus true nil nil nil nil nil
poll textedited 0 0 nil nil nil
--------
wait mousemoved 795 420 -1 -1 false nil
poll mousemoved 799 421 799 421 false nil
You can’t perform that action at this time.