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
mod clock; | |
mod ego; | |
mod keepalive; | |
mod mavrouter; | |
use clap::Parser; | |
use file_rotate::compression::Compression; | |
use file_rotate::suffix::AppendTimestamp; | |
use file_rotate::suffix::FileLimit; | |
use file_rotate::ContentLimit; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# | |
# /etc/makepkg.conf | |
# | |
######################################################################### | |
# SOURCE ACQUISITION | |
######################################################################### | |
# | |
#-- The download utilities that makepkg should use to acquire sources | |
# Format: 'protocol::agent' |
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
goo.gl/c0wDyW |
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 myhdl import always, always_comb, always_seq, Signal, ResetSignal, toVerilog, toVHDL, delay, traceSignals, Simulation, now, intbv, concat | |
def chenillar(clk, reset, leds, direction): | |
@always(clk.posedge) | |
def scroll(): | |
if bool(direction): | |
leds.next = leds >> 1 | |
if leds == 0b1: | |
direction.next = 0 | |
else: |
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 errbot import BotPlugin, botcmd | |
class RemindMe(BotPlugin): | |
@botcmd | |
def store(self, msg, args): | |
self['key'] = args | |
@botcmd | |
def recall(self, msg, args): | |
return self['key'] |
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 errbot import BotPlugin, botcmd | |
from pyfiglet import Figlet | |
class AsciiArt(BotPlugin): | |
""" Ascii Art related commands. """ | |
@webhook | |
def alert(self, request): | |
msg = request['msg'] | |
self.send('gbin', "```\n" + Figlet().renderText('ALERT') + "\n```\n" + msg) |
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 datetime import datetime | |
from errbot import BotPlugin, botcmd | |
from pyfiglet import Figlet, FigletFont | |
class AsciiArt(BotPlugin): | |
""" Ascii Art related commands. """ | |
def activate(self): | |
super().activate() | |
self.start_poller(60, self.talking_clock) # callbacks every minute |
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 random, time | |
from errbot import BotPlugin, botcmd | |
from pyfiglet import Figlet, FigletFont | |
class AsciiArt(BotPlugin): | |
""" Ascii Art related commands. """ | |
@botcmd | |
def big(self, mess, args): | |
""" Generates 3 big versions with a random font.""" | |
for font in random.sample(FigletFont.getFonts(), 3) |
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 errbot import BotPlugin, botcmd | |
from pyfiglet import Figlet, FigletFont | |
class AsciiArt(BotPlugin): | |
""" Ascii Art related commands. """ | |
@botcmd(split_args_with=' ') | |
def big(self, mess, args): | |
""" Generates a big version of what you want to say.""" | |
fonts = FigletFont.getFonts() | |
if len(args) <= 1 or args[0] not in fonts: |
NewerOlder