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
package ; | |
import luxe.Component; | |
import luxe.Rectangle; | |
import luxe.Vector; | |
class PhysBody { | |
public var rect:Rectangle; | |
public var vel:Vector; | |
public var acc:Vector; |
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 luxe.Input; | |
class Main extends luxe.Game { | |
override function config(config:luxe.AppConfig) { | |
config.web.prevent_default_keys.push(Key.space); | |
return config; |
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
package com.dango_itimi.utils; | |
import haxe.rtti.Meta; | |
using com.dango_itimi.utils.MetaUtil; | |
class MetaField | |
{ | |
public var name(default, null):String; | |
public var value(default, null):Array<Dynamic>; | |
public function new(name:String, value:Array<Dynamic>) |
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
in vec2 v_texcoord; // texture coords | |
in vec3 v_normal; // normal | |
in vec3 v_binormal; // binormal (for TBN basis calc) | |
in vec3 v_pos; // pixel view space position | |
out vec4 color; | |
layout(std140) uniform Transforms | |
{ | |
mat4x4 world_matrix; // object's world position |
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
// Insert into some kind of 'focus' action | |
var parent = $(this).parent().parent('.fieldWrap'); // Target a wrapper | |
// Reset active state | |
$('.fieldWrap').removeClass('active'); | |
// Add active state to current field | |
parent.addClass('active'); |
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 | |
# | |
# Clone Git repositories and download LFS files in parallel | |
# | |
set -e | |
CLEAN_ERROR='push @lines, $_;splice @lines, 0, 7 if /error: external filter failed/;print shift @lines if @lines > 6}{ print @lines;' | |
git -c filter.lfs.smudge= \ | |
-c filter.lfs.required=false \ |
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
package; | |
class Global | |
{ | |
public static function parseInt(s:String):Int { return Std.parseInt(s); } | |
public static function int(f:Float):Int { return Std.int(f); } | |
public static function is(v:Dynamic, t:Dynamic):Bool { return Std.is(v, t); } | |
public static function typeof(o:Dynamic):Type.ValueType { return Type.typeof(o); } | |
public static var DEBUG_LEVEL:Int = 3; |
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
// Originally from MALQUA | |
// https://feedback.unity3d.com/suggestions/custom-element-size-in-reorderable-list | |
// http://i.imgur.com/fIbBorr.gifv | |
// and SOCAPEX | |
// https://gist.github.com/Socapex/1d9b45507464681d530b | |
// Modified by Jesse Hamburger | |
using UnityEngine; | |
using UnityEditor; | |
using UnityEditorInternal; |
Brought to you by Headjack
FFmpeg is one of the most powerful tools for video transcoding and manipulation, but it's fairly complex and confusing to use. That's why I decided to create this cheat sheet which shows some of the most often used commands.
Let's start with some basics:
ffmpeg
calls the FFmpeg application in the command line window, could also be the full path to the FFmpeg binary or .exe file