- Put slacktive.py somewhere on your system, then change the path in slacktive.plist
- Put com.sean.python.slacktive.plist in ~/Library/LaunchAgents/
- Add your token to com.sean.python.slacktive.plist (see file comments)
launchctl load ~/Library/LaunchAgents/com.sean.python.slactive.plist
This file contains 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
cv::Mat createLOGKernel1D(int ksize, float sigma) | |
{ | |
using namespace cv; | |
float std2 = sigma * sigma; | |
std::vector<float> seq(ksize); | |
std::iota(begin(seq), end(seq), -(ksize-1)/2); | |
Mat_<float> kSeq(1, ksize, seq.data()); | |
Mat XX; |
This file contains 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
void | |
RingColors::convertPoints(const sensor_msgs::PointCloud2ConstPtr &inMsg) | |
{ | |
if (output_.getNumSubscribers() == 0) // no one listening? | |
return; // do nothing | |
// allocate an PointXYZRGB message with same time and frame ID as | |
// input data | |
sensor_msgs::PointCloud2::Ptr outMsg(new sensor_msgs::PointCloud2()); | |
sensor_msgs::PointCloud2Modifier modifier(*outMsg); |
This file contains 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
;;; initfile --- Summary: | |
;;; Commentary: | |
;; Emacs 25.1 and newer tested | |
;;; Code: | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;; Configuration/Customization: | |
;; Defines global variables that are later used to customize and set | |
;; up packages. | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Mounting CIFS with automount on Ubuntu 18:
-
Install the necessary applications/servers:
sudo apt install autofs smbclient cifs-utils
-
Configure autofs
create /etc/auto.cifs
, with this variant from auto.smb
, courtesy howtoforge
This file contains 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
#include <boost/exception/exception.hpp> | |
#include <boost/thread.hpp> | |
#include <boost/chrono.hpp> | |
#include "opencv2/opencv.hpp" | |
#include "opencv2/highgui.hpp" | |
using namespace cv; | |
using namespace std; |
This file contains 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
Abraham Lincoln once asked one of his secretaries, If you call a tail a leg, how many legs does a horse | |
have?. | |
Five, replied the secretary. | |
No, said the President, The answer is four. Calling a tail a leg doesn't make it a leg. | |
A group of frogs were traveling through the woods, when two of them fell into a deep pit. All the other | |
frogs gathered around the pit. When they saw how deep it was, they told the two frogs that they were as | |
good as dead. | |
The two frogs ignored the comments and tried to jump up out of the pit with all of their might. The other | |
frogs kept telling them to stop, that they were as good as dead. Finally, one of the frogs took heed to what |
This file contains 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 python2 | |
import cv2 | |
import numpy as np | |
colors = [] | |
def on_mouse_click (event, x, y, flags, frame): | |
if event == cv2.EVENT_LBUTTONUP: | |
colors.append(frame[y,x].tolist()) |
This file contains 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
#include <opencv2/opencv.hpp> | |
#include <opencv2/imgproc.hpp> | |
#include <assert.h> | |
// Calculates Laplace of Gaussian kernel | |
cv::Mat createLOGKernel(int ksize, double sigma) | |
{ | |
using namespace cv; | |
using namespace std; |
OlderNewer