Skip to content

Instantly share code, notes, and snippets.

@charz
charz / Sample for p4python
Created December 18, 2013 02:47
Login to Perforce server, create a workspace and sync code to specific changelist number.
#!/env/bin/python
from P4 import P4, P4Exception
import json
p4 = P4()
p4.user = "charz"
p4.password = "mypassword"
p4.port = "tcp:192.168.1.2:1666"
p4.client = "auto-build"
@charz
charz / custom.js
Created September 26, 2013 08:59 — forked from drewjoh/custom.js
$(document).ready(function() {
// Support for AJAX loaded modal window.
// Focuses on first input textbox after it loads the window.
$('[data-toggle="modal"]').click(function(e) {
e.preventDefault();
var url = $(this).attr('href');
if (url.indexOf('#') == 0) {
$(url).modal('open');
} else {