I hereby claim:
- I am rascul on github.
- I am rascul (https://keybase.io/rascul) on keybase.
- I have a public key ASDjj9ruari7yxo-7BInF4La7kgxbQAUJW-qXUlPYmXi6wo
To claim this, I am signing this object:
# coding=utf-8 | |
""" | |
beer.py - Sopel Beer Module | |
Copyright © 2016, rascul, <rascul3@gmail.com> | |
Licensed under the Eiffel Forum License 2. | |
""" | |
import json | |
import requests |
# from https://github.com/adrielcafe/UdacityBuildItBigger/blob/master/jokerjokes/src/main/java/com/chuckjokes/Jokes.java | |
"Did you hear about the guy whose whole left side was cut off? He\'s all right now.", | |
"I'm reading a book about anti-gravity. It's impossible to put down.", | |
"I wondered why the baseball was getting bigger. Then it hit me.", | |
"It's not that the man did not know how to juggle, he just didn't have the balls to do it.", | |
"I'm glad I know sign language, it's pretty handy.", | |
"My friend's bakery burned down last night. Now his business is toast.", | |
"Why did the cookie cry? It was feeling crumby.", | |
"I used to be a banker, but I lost interest.", |
import wolframalpha | |
from pyaib.plugins import keyword | |
@keyword('wa') | |
def keyword_wolframalpha(context, msg, trigger, args, kargs): | |
""" look up wolfram alpha """ | |
# figure out first who to target and what the query is | |
target_user = "" |
use std::path::PathBuf; | |
pub struct Config { | |
pub full: bool, | |
pub content: PathBuf, | |
pub templates: PathBuf, | |
pub www: PathBuf, | |
pub help: bool, | |
} |
I hereby claim:
To claim this, I am signing this object:
# Feel free to edit this config. Don't remove any options. | |
declare -A config=( | |
# Directories. No trailing slashes. | |
["content"]="content" | |
["output"]="www" | |
["templates"]="templates" | |
# Add .html extention to generated files |
#!/usr/bin/env bash | |
devpath="/sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight" | |
max_bright=$(<$devpath/max_brightness) | |
printf "max\t%s\t100%%\n" $max_bright | |
if [[ -n "$1" ]]; then | |
new_bright=$1 | |
if [[ ${new_bright:${#new_bright}-1} = "%" ]]; then |
let file = match fs::File::open(entry) { | |
Ok(f) => f, | |
Err(e) => { | |
println!("Couldn't open file: {}: {:?}", entry.display(), e.kind()); | |
return data; | |
}, | |
}; |
""" Weed Plugin (botwot plugins.weed) """ | |
# Copyright 2014 Ray Schulz <https://rascul.io> | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); you may | |
# not use this file except in compliance with the License. You may obtain | |
# a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# |
""" Url Title Plugin (botwot plugins.urltitle) """ | |
# Copyright 2014 Ray Schulz <https://rascul.io> | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); you may | |
# not use this file except in compliance with the License. You may obtain | |
# a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# |