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
void Template::recurseApply(PropertyTree& tree) const { | |
for (auto& child : tree) { | |
if (!child.second.empty()) { | |
recurseApply(child.second); | |
continue; | |
} | |
/* legge il valore */ | |
auto&& value = child.second.get_value<std::string>(); |
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
$.fn.dt_smartPreloader = function (action) { | |
var args = arguments; | |
return this.each(function (index, self) { | |
var $self = $(self); | |
var visibility = $self.css('visibility'); | |
/* wrap $self with a preloader div */ | |
$self.wrap($('<div>').addClass('preloader-mask ajaxLoading')); | |
var $preloader = $self.parent(); |
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
cmake_minimum_required(VERSION 3.3) | |
project(xxx) | |
file(GLOB_RECURSE Headers ${CMAKE_SOURCE_DIR}/src/*.h) | |
add_custom_target(copy) | |
foreach(HEADER ${Headers}) | |
STRING(REGEX REPLACE "${CMAKE_SOURCE_DIR}/src/([^/]*)/src/(.*)$" "\\1/\\2" DST_HEADER ${HEADER}) | |
add_custom_command(TARGET copy PRE_BUILD |
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
ffmpeg -i ../screencast-20151206-190854.mp4 -vf fps=5,scale=640:-1:flags=lanczos,palettegen palette.png | |
ffmpeg -i ../screencast-20151206-190854.mp4 -i palette.png -filter_complex "fps=5,scale=640:-1:flags=lanczos[x];[x][1:v]paletteuse" output.gif |
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
gnome, compiz config | |
cerca window rules | |
in fullscreen, add: class=Gnome-terminal |
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
sed -i -e "$( ssh root@vimageoslive 2>&1 | grep Offending | sed 's/.*:\([0-9]\+\).*/\1/' )d" .ssh/known_hosts |
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
plane_ = createEntity("PLANE"); | |
plane_->getSubEntity(0)->setMaterialName("Background"); | |
plane_->setRenderQueueGroup(RENDER_QUEUE_BACKGROUND); | |
node_ = rootNode()->createChildSceneNode(); | |
node_->attachObject(plane_); | |
node_->lookAt(Vector3::UNIT_Y, Ogre::Node::TS_WORLD, Ogre::Vector3::UNIT_Z); |
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
for i in *; do ( echo "============ $i "; cd $i && git pull && cd Release && make -j8 all ); done |
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
dd'apI"`` |
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
newCamera->synchroniseBaseSettingsWith(oldCamera); |