Skip to content

Instantly share code, notes, and snippets.

View melnikk's full-sized avatar
™️
...

Kir Melnikov melnikk

™️
...
View GitHub Profile
@arashi01
arashi01 / teamcity-agent.service
Created July 10, 2014 01:50
teamcity-agent as systemd service
[Service]
Type=oneshot
RemainAfterExit=true
User=teamcity
ExecStart=/opt/teamcity/bin/agent.sh start
ExecStop=-/opt/teamcity/bin/agent.sh stop force
SuccessExitStatus=0 143
[Install]
WantedBy=default.target
@geuis
geuis / remote-typeahead.js
Created February 16, 2012 22:58
Remote data querying for Twitter Bootstrap 2.0 Typeahead without modifications
<script>
// Charles Lawrence - Feb 16, 2012. Free to use and modify. Please attribute back to @geuis if you find this useful
// Twitter Bootstrap Typeahead doesn't support remote data querying. This is an expected feature in the future. In the meantime, others have submitted patches to the core bootstrap component that allow it.
// The following will allow remote autocompletes *without* modifying any officially released core code.
// If others find ways to improve this, please share.
var autocomplete = $('#searchinput').typeahead()
.on('keyup', function(ev){
ev.stopPropagation();