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
/** | |
* Ambidextrous SCARA Kinematics with optimized mathematics | |
*/ | |
// Lengths of the arm segments | |
// If the lengths are the same the maths can be optimized | |
arm1_length = 5; | |
arm2_length = 3; | |
arm_sum = arm1_length + arm2_length; |
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
#!/usr/bin/env bash | |
echo "Pruning Merged Branches..." | |
git branch --merged | egrep -v "^\*|master|development" | xargs -n 1 git branch -d | |
echo | |
echo "Pruning Gone Branches..." | |
git branch -vv | grep ': gone]' | gawk '{print $1}' | xargs -n 1 git branch -D | |
echo |
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 | |
function _my_export_view_via_ftp($nid) { | |
$out = 'FTP ERROR'; // assume the worst | |
// example view/display/ftp info/filename | |
$view_name = 'feeds'; | |
$display_id = 'views_display_name'; | |
$host = 'ftp.mydomain.com'; $user = 'myftpuser'; $pass = 'myftppass'; | |
$filename = "node{$nid}.xml"; |
NewerOlder