This file contains hidden or 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
<?php | |
$ldap_host='your_host'; | |
$ldap_user='your_user'; | |
$ldap_pass='your_password'; | |
$ldap_rdn = 'uid='.$ldap_user; | |
echo "LDAP Connecting ... <br>"; | |
if ( $conn = ldap_connect( $ldap_host) ) |
This file contains hidden or 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
#!/bin/sh | |
# dropbox service | |
# Replace with space delimited linux users you want to run Dropbox clients for | |
DROPBOX_USERS="user1 user2" | |
DAEMON=.dropbox-dist/dropbox | |
start() { | |
echo "Starting dropbox..." | |
for dbuser in $DROPBOX_USERS; do |
This file contains hidden or 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
from math import sin, cos, pi | |
from lego_robot import * | |
from pylab import * | |
# This function takes the old (x, y, heading) pose and the motor ticks | |
# (ticks_left, ticks_right) and returns the new (x, y, heading). | |
def filter_step(old_pose, motor_ticks, ticks_to_mm, robot_width, | |
scanner_displacement): | |
r = motor_ticks[1] * ticks_to_mm |
NewerOlder