I hereby claim:
- I am heathermiller on github.
- I am heathermiller (https://keybase.io/heathermiller) on keybase.
- I have a public key ASALpaTiD166UKSkiDrVKvw4PXxQTuzix94UXFcY-wETBgo
To claim this, I am signing this object:
93.33333333333333% of top 120 Scala GitHub projects make use of implicits. | |
Only 6.666666666666667% of top 120 Scala GitHub projects don't use implicits at all | |
83.33333333333334% of top 120 Scala GitHub use implicit defs | |
Total number of projects: 120 | |
Number of projects not using implicits at all: | |
8 | |
Number of projects using only implicit vals: |
Average percent of files using implicits: 23.35670325912466 | |
--- | |
spark | |
Total # Scala files: 2760 | |
Total # files using implicits: 163 | |
Percent of files using implicits 5.905797101449275% | |
--- | |
incubator-predictionio | |
Total # Scala files: 404 |
I hereby claim:
To claim this, I am signing this object:
Given a year, report if it is a leap year.
The tricky thing here is that a leap year in the Gregorian calendar occurs:
on every year that is evenly divisible by 4
except every year that is evenly divisible by 100
unless the year is also evenly divisible by 400
If you want to build something using a Raspberry Pi, you'll probably use resistors. For this exercise, you need to know two things about them:
In this exercise you are going to create a helpful program so that you don't have to remember the values of the bands. The program will take color names as input and output a two digit number, even if the input is more than two colors!
The band colors are encoded as follows:
Clean up user-entered phone numbers so that they can be sent SMS messages.
The North American Numbering Plan (NANP) is a telephone numbering system used by many countries in North America like the United States, Canada or Bermuda. All NANP-countries share the same international country code: 1
.
NANP numbers are ten-digit numbers consisting of a three-digit Numbering Plan Area code, commonly known as area code, followed by a seven-digit local number. The first three digits of the local number represent the exchange code, followed by the unique four-digit number which is the subscriber number.
The format is usually represented as
(NXX)-NXX-XXXX
Given a phrase, count the occurrences of each word in that phrase.
For the purposes of this exercise you can expect that a word will always be one of:
When counting words you can assume the following rules:
Implement a clock that handles times without dates.
You should be able to add minutes to it.
Two clocks that represent the same time should be equal to each other.
It's a 24 hour clock going from "00:00" to "23:59".
To complete this exercise you need to define the data type Clock and implement the functions:
Given a number from 0 to 999,999,999,999, spell out that number in English.
Step 1
Handle the basic case of 0 through 99.
If the input to the program is 22, then the output should be 'twenty-two'.
Your program should complain loudly if given a number outside the blessed range.
@lmql.query | |
def meaning_of_life(): | |
'''lmql | |
# top-level strings are prompts | |
"Q: What is the answer to life, the \ | |
universe and everything?" | |
# generation via (constrained) variables | |
"A: [ANSWER]" where \ | |
len(ANSWER) < 120 and STOPS_AT(ANSWER, ".") |