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
#!/bin/bash | |
# | |
# My Blinky Code | |
# | |
############### | |
echo 49 > /sys/class/gpio/export 2> /dev/null | |
echo 214 > /sys/class/gpio/export 2> /dev/null | |
echo low > /sys/class/gpio/gpio214/direction | |
echo 256 > /sys/class/gpio/export 2> /dev/null |
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
PS1="\[\033[1;30m\]\[\033[42m\][\u@\H]\[\033[30m\]\[\033[0m\]\w \n \[\033[1;32m\]❯\[\033[1;33m\]❯\[\033[1;31m\]❯ \[\033[1;37m\]" |
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
#!/bin/bash | |
# | |
# Slack Helper Functions | |
# | |
#The MIT License (MIT) | |
# | |
#Copyright (c) 2015 "whiteboardcoder" Patrick Bailey | |
# | |
#Permission is hereby granted, free of charge, to any person obtaining a copy | |
#of this software and associated documentation files (the "Software"), to deal |
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
/* | |
* Adventure time Song | |
* Using Tone() | |
* | |
* Connect Positive side of buzzer to pin 11 | |
* Negative to Ground | |
* | |
* by: Patrick Bailey www.whiteboardcoder.com | |
* Last updated: 10/3/2015 | |
* |
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
/** | |
* This code is just a self help guide :) | |
* | |
* Author: Patrick Bailey | |
* Company: WhiteboardCoder | |
*/ | |
/* | |
Intent Schema | |
{ |
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
#!/bin/bash | |
# | |
# Script to Install | |
# Oracle Java 1.8 | |
# Scala 2.11.7 | |
# sbt 0.13.9 | |
# | |
############################## | |
#Script must be run as root/sudo |
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/python | |
# | |
# Author: Patrick Bailey | |
# Twitter: @whiteboardoder | |
# | |
#The MIT License (MIT) | |
# | |
#Copyright (c) 2016 "whiteboardcoder" Patrick Bailey | |
# | |
#Permission is hereby granted, free of charge, to any person obtaining a copy |
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
/* | |
* | |
* sbt global sets shellPrompt | |
* Requires font that contains special Unicode Characters | |
* | |
* U+276f | |
* (powerline compatibile) | |
* U+E0A0 (gt branch symbol) | |
* U+E0A2 (padlock symbol) | |
* U+E0B0 (Right Arrow) |
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
#!/bin/bash | |
for color in {0..255}; do echo -e "$color:\\033[38;5;${color}mhello\\033[48;5;${color}mworld\\033[0m"; done |
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
shellPrompt := { state => | |
def textColor(color: Int) = { s"\033[38;5;${color}m" } | |
def backgroundColor(color:Int) = { s"\033[48;5;${color}m" } | |
def reset = { s"\033[0m" } | |
def formatText(str: String)(txtColor: Int, backColor: Int) = { | |
s"${textColor(txtColor)}${backgroundColor(backColor)}${str}${reset}" | |
} | |
val red = 1 | |
val green = 2 |