I hereby claim:
- I am gioiab on github.
- I am gballin (https://keybase.io/gballin) on keybase.
- I have a public key ASAKZjj3hGwci-Eyeu_lM7_plSmM9MYqsmE0TCKc1pmvGgo
To claim this, I am signing this object:
package recfun | |
import common._ | |
import scala.annotation.tailrec | |
object Main { | |
def main(args: Array[String]) { | |
println("Pascal's Triangle") | |
for (row <- 0 to 10) { | |
for (col <- 0 to row) |
package funsets | |
import common._ | |
/** | |
* 2. Purely Functional Sets. | |
*/ | |
object FunSets { | |
/** | |
* We represent a set by its characteristic function, i.e. |
curl -X POST \ | |
-H 'Content-type: application/json' \ | |
--data '{"text":"Hello Slack"}' \ | |
https://hooks.slack.com/services/T.../B.../... |
curl -X POST \ | |
-H 'Content-type: application/json' \ | |
--data '{"channel": "#my-channel", "text":"Hello Slack"}' \ | |
https://hooks.slack.com/services/T.../B.../... |
poster = Slack::Poster.new(ENV['SLACK_HOOK']) | |
message = { text: "Hello slack!" } | |
poster.send_message(message) |
require 'googlecharts' | |
class Slack::Report::Weekly < Slack::Report::Base | |
# prepares a message for the weekly visits | |
def visits | |
return no_data if @weekly_report.count == 0 | |
attachment = { | |
mrkdwn_in: ["text", | |
"title", |
def smiley(variation) | |
if variation < -15 | |
":rage:" | |
elsif variation >= -15 && variation <= -2 | |
":disappointed:" | |
elsif variation > -2 && variation < 2 | |
":neutral_face:" | |
elsif variation >= 2 && variation <= 15 | |
":slightly_smiling_face:" | |
else |
I hereby claim:
To claim this, I am signing this object: