Skip to content

Instantly share code, notes, and snippets.

View isemantics's full-sized avatar
🛰️
work work work

ISEMANTICS isemantics

🛰️
work work work
View GitHub Profile
@Rseding91
Rseding91 / TrainPathFinder.cpp
Last active December 3, 2025 03:29
Factorio TrainPathFinder
#include <Entity/Rail.hpp>
#include <Entity/RailSignalBase.hpp>
#include <Rail/RailBlock.hpp>
#include <Rail/RailPath.hpp>
#include <Rail/TrainPathFinder.hpp>
#include <Rail/RailSegment.hpp>
#include <Rail/RailUtil.hpp>
#include <Rail/Train.hpp>
#include <Util/Container/MinHeap.hpp>
#include <Log.hpp>
@fotan
fotan / delay.js
Last active August 3, 2018 09:08
BS3 - Delay open/close YAMM
<script>
// Good addition to YAMM (Yet Another Mega Menu) for BS3
// Just add to footer area
// Slows down the opening of the menu so it doesn't fly open every time your mouse touches it.
// fadeIn / fadeOut adjust the time it takes for the menu to open or close
$('.dropdown').hover(function() {
$(this).find('.dropdown-menu').stop(true, true).delay(100).fadeIn(100);
}, function() {
$(this).find('.dropdown-menu').stop(true, true).delay(10).fadeOut(100);
});
@stefanvangastel
stefanvangastel / appDirectives.js
Created March 17, 2015 09:50
CakePHP 3 form validation message by AngularJS directive
var appDirectives = angular.module('appDirectives', []);
/**
* Add potential validation fields to form-control form elements (CakePHP 3 with Bootstrap)
*
* Requirement: $scope.errors contains option (validation) errors in default CakePHP 3 JSON response
*/
appDirectives.directive('formControl', function($compile) {
return {
restrict: 'C', //Match all elements with form-control class
@ticean
ticean / SVN_Git_Mirror.md
Created January 3, 2012 21:14
SVN Git Mirror

Create Git Mirror from SVN Repository

This guide will demonstrate how to mirror an SVN into a Git repo. You're the target audience if you're an SVN user, just getting started with Git and need to coax your project team over to Git.

The branching scenario has been simplified for clarity.

References