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
| import RPi.GPIO as GPIO | |
| import socket | |
| import json | |
| import signal | |
| from itertools import cycle | |
| from wakeonlan import wol | |
| import time | |
| class switchButton(): | |
| def __init__(self, inputPin, pressDelay=0.5, pressStep=1.5): |
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 python | |
| ''' This application returns the the remaining minutes in the asterisk format | |
| ex: the 326 minutes are returned as 300 20 6''' | |
| import csv | |
| import re | |
| import datetime | |
| import logging | |
| import sys | |
| import click |
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 ruby | |
| # usage: ruby vcard_skidoosh.rb vcard.vcf | |
| # outputs a bunch of asterisk commands to stdout. | |
| # taste it. | |
| # Tested for VCARD version 2.1 & 3.0 | |
| ARGV.collect{ |f| open(f).readlines }.flatten.each do |line| | |
| if line =~ /^N:(.*)$/ | |
| $name = $1.chomp |
NewerOlder