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
#version 330 | |
/* | |
DoF with bokeh GLSL shader v2.4 | |
by Martins Upitis (martinsh) (devlog-martinsh.blogspot.com) | |
---------------------- | |
The shader is Blender Game Engine ready, but it should be quite simple to adapt for your engine. | |
This work is licensed under a Creative Commons Attribution 3.0 Unported License. | |
So you are free to share, modify and adapt it for your needs, and even use it for commercial use. |
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
#include <iostream> | |
#include "raii.h" | |
int main() { | |
int value = 0; | |
std::cout << value << std::endl; | |
// scope_guard c'tor arg is run on scope_guard destruction | |
raii::scope_guard g( | |
[&](){ |
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
#include "vv_extrudeFont.h" | |
//-------------------------------------------------------------- | |
// Original credits go to jefftimeisten, see https://forum.openframeworks.cc/t/extrude-text-into-3d/6938 | |
// | |
// This method returns a vector containing the vbo meshes required | |
// to render the front, back and sides of each character in the given string. | |
// | |
// @example: | |
// |
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
// C++11 "any" class for multi-type storage | |
// https://stackoverflow.com/a/24702400/5195277 | |
// (better to use C++17 std::any or std::variant) | |
class AnyBase | |
{ | |
public: | |
virtual ~AnyBase() = 0; | |
}; | |
inline AnyBase::~AnyBase() {} |
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
<UserSettings><ApplicationIdentity version="15.0"/><ToolsOptions><ToolsOptionsCategory name="Environment" RegisteredName="Environment"/></ToolsOptions><Category name="Environment_Group" RegisteredName="Environment_Group"><Category name="Environment_KeyBindings" Category="{F09035F1-80D2-4312-8EC4-4D354A4BCB4C}" Package="{DA9FB551-C724-11d0-AE1F-00A0C90FFFC3}" RegisteredName="Environment_KeyBindings" PackageName="Visual Studio Environment Package"><Version>15.0.0.0</Version><KeyboardShortcuts><ScopeDefinitions><Scope Name="Team Explorer" ID="{7AA20502-9463-47B7-BF43-341BAF51157C}"/><Scope Name="VC Dialog Editor" ID="{543E0C02-8C85-4E43-933A-5EF320E3431F}"/><Scope Name="Find All References Tool Window" ID="{1FA1FD06-3592-4D1D-AC75-0B953320140C}"/><Scope Name="XML (Text) Editor" ID="{FA3CD31E-987B-443A-9B81-186104E8DAC1}"/><Scope Name="Text Editor" ID="{8B382828-6202-11D1-8870-0000F87579D2}"/><Scope Name="Work Item Results View" ID="{7026002D-01F6-44E7-95CF-A896C00DA3F8}"/><Scope Name="Solution Explorer" ID="{3AE |
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
--- | |
BasedOnStyle: Google | |
AccessModifierOffset: '-4' | |
AlignAfterOpenBracket: Align | |
AlignConsecutiveAssignments: 'true' | |
AlignConsecutiveDeclarations: 'false' | |
AlignEscapedNewlines: Left | |
AlignTrailingComments: 'true' | |
AllowAllParametersOfDeclarationOnNextLine: 'true' | |
AllowShortBlocksOnASingleLine: 'true' |
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
.DS_Store | |
src/output.tw2 | |
node_modules | |
/build | |
/*.log | |
*.lock | |
package-lock.json |
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
--- | |
BasedOnStyle: Google | |
AccessModifierOffset: '-4' | |
AlignAfterOpenBracket: Align | |
AlignConsecutiveAssignments: 'true' | |
AlignConsecutiveDeclarations: 'false' | |
AlignEscapedNewlines: Left | |
AlignTrailingComments: 'true' | |
AllowAllParametersOfDeclarationOnNextLine: 'true' | |
AllowShortBlocksOnASingleLine: 'true' |
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
# tested on Raspberry Pi 3B+ with Raspbian Stretch 2018 | |
############ SETTINGS: | |
# the wlan interface batman should use, probably wlan0 or wlan1 | |
WLAN="wlan0" | |
# static ip, adjust as needed | |
BATMAN_IP="172.27.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
1. setup interfaces: | |
sudo nano /etc/network/interfaces.d/bat0 | |
auto bat0 | |
iface bat0 inet auto | |
address 172.27.0.1 | |
netmask 255.255.255.0 | |
pre-up /usr/sbin/batctl if add wlan1 |