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
import serial | |
BAUDRATE=19200 | |
class Projector: | |
def __init__(self,port_name,timeout=1): | |
self.__serial = serial.Serial() | |
self.__serial.port = port_name | |
self.__serial.timeout = timeout |
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
import os | |
import sys | |
import subprocess as proc | |
import zipfile as zipf | |
GIT_COMMAND = 'git diff-tree --no-commit-id --name-only -r {commit_id}' | |
EXPLORER_CMD = r'explorer /select,{0}' | |
DESTINATION_DIR = 'C:/Users/santiago.depedro/Desktop' | |
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
import RPi.GPIO as GPIO | |
import time | |
class LED: | |
def __init__(self,gpio,pin): | |
gpio.setmode(GPIO.BCM) | |
gpio.cleanup(pin) | |
gpio.setup(pin,GPIO.OUT) | |
self.__gpio = gpio | |
self.__pin = pin |
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 bash | |
# script: watch | |
# authors: Mike Smullin <[email protected]>, Santiago de Pedro <[email protected]> | |
# license: GPLv3 | |
# description: | |
# watches the given path for changes | |
# and executes a given command when changes occur | |
# usage: | |
# watch <path> <cmd...> | |
# |
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
import RPi.GPIO as GPIO | |
import subprocess | |
LED_PIN=19 | |
PUSH_PIN=5 | |
CODE='117989504' | |
RF_COMMAND='/home/pi/projects/433Utils/RPi_utils/codesend' | |
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
;; | |
;; NS CHEATSHEET | |
;; | |
;; * :require makes functions available with a namespace prefix | |
;; and optionally can refer functions to the current ns. | |
;; | |
;; * :import refers Java classes to the current namespace. | |
;; | |
;; * :refer-clojure affects availability of built-in (clojure.core) | |
;; functions. |