This file contains 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
#!/bin/bash | |
#================================ | |
# A git subtree util to split | |
# a packagist monorepo in multiple | |
# manyrepos and sync version (tags) | |
# | |
# Usage: | |
# Download the script and call it | |
# inside the root folder of your |
This file contains 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
#!/bin/bash | |
LANG=$(locale | grep LANG= | sed 's:LANG=::') | |
if [[ -z "$LANG" ]]; then | |
LANG="C" | |
fi | |
export LC_ALL=$LANG # for stable "sort" output | |
# Paths |
This file contains 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
#!/bin/bash | |
# Call GDB with batch | |
gdb -batch -ex "file $1" -ex "disas $2" |
This file contains 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
////////////////////////////////////////////////// | |
// The final part of the deferred shading pipeline | |
// is made with a compute shader (because I'm too | |
// lazy to draw a quad and write another .vert/.frag) | |
////////////////////////////////////////////////// | |
#version 450 core | |
uniform float time; | |
uniform float samplingStep; | |
uniform ivec2 fboSize; |
This file contains 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
# Variables | |
# ^^^^^^^^^ | |
# FbxSdk_FOUND | |
# FbxSdk_INCLUDE_DIR | |
# FbxSdk_LIBRARIES | |
# Find root dir | |
find_path(FBXSDK_ROOT_DIR | |
NAMES |
This file contains 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
/** | |
* @copyright | |
*/ | |
#pragma once | |
/** | |
* Compute min between two numbers | |
*/ | |
template<typename T> |
This file contains 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
template<typename T> | |
struct RemoveReference | |
{ | |
using Type = T; | |
}; | |
template<typename T> struct RemoveReference<T&> { using Type = T; }; | |
template<typename T> | |
inline void swap(T & a, T & b) |
This file contains 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
--------------------------------------------- | |
-- This procedure takes as input the hash of | |
-- a post commit and returns the chain of | |
-- parent commits up to the root commit (i.e. | |
-- NULL parent) | |
--------------------------------------------- | |
-- Drop old procedure | |
drop procedure if exists commit_chain; |
This file contains 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
/** | |
* | |
*/ | |
String.prototype.format = function formatString(...subs) { | |
// String tag functions | |
// @ref https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals | |
const formatter = (strings, ...keys) => { | |
return (...values) => { |
This file contains 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
*.a | |
*.so | |
*.so.?* | |
*.dll | |
*.exe | |
*.dylib | |
*.cmake | |
!/cmake/*.cmake | |
!/test/AssemblyTests.cmake | |
*~ |
OlderNewer