Skip to content

Instantly share code, notes, and snippets.

View mikael-titinovskii's full-sized avatar
:octocat:

Mike Tsitsinovsky mikael-titinovskii

:octocat:
  • Eneba
  • Chisinau, Moldova
View GitHub Profile
@sergeyklay
sergeyklay / hpd.md
Last active June 12, 2025 14:50
Happy PHP Debugging

Happy PHP Debugging

Usage

gdb --args /usr/bin/php script.php
(gdb) source ~/src/php/7.2.1/.gdbinit
@GaryRogers
GaryRogers / gist:1ff32f3b27f4c4e52d55
Created August 12, 2014 16:37
Using Forms with Bootstrap-Dialog

Using forms with Bootstrap-Dialog

var alertMessage = "";
var formTemplate = Backbone.Marionette.TemplateCache.get('#myTemplate');
var formString = formTemplate({ defaultDate: moment().add(90, 'days').format('YYYYMMDD') });

// remove the newlines. Bootstrap-Dialog doesn't like them (turns them into <br>'s)
formString = formString.replace(/[\n]/g, '');