Skip to content

Commit

Permalink
s/then/than/ (#851)
Browse files Browse the repository at this point in the history
  • Loading branch information
matslina authored Aug 2, 2023
1 parent 8a4c3e4 commit 9da3505
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions docs/gifs.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ Tidbyt's display is 64x32 pixels. If there is a GIF that’s larger than 64x32 p
## Finished GIF is 128KB or less
We’re limited by the number of bytes we can send to the Tidbyt and the Tidbyt is constrained by how many bytes it can store locally. To get around this, we limit the size of the GIF to 128 Kilobytes and if it’s larger than this after downsizing to 64x32 pixels, we drop frames until it fits the size requirements. This means if you want your GIF to look great on the Tidbyt, make sure it’s 128KB or less before adding it through the mobile app or with Pixlet.

## GIF is 15 seconds in length or loops cleanly if less then 15 seconds.
The length of time the GIF loops should be around 15 seconds. The timings for applet cycles are 15, 10, 7.5, and 5 seconds depending on the setting in the mobile app. If your GIF is less then 15 seconds, ensure it loops cleanly to avoid an interrupt.
## GIF is 15 seconds in length or loops cleanly if less than 15 seconds.
The length of time the GIF loops should be around 15 seconds. The timings for applet cycles are 15, 10, 7.5, and 5 seconds depending on the setting in the mobile app. If your GIF is less than 15 seconds, ensure it loops cleanly to avoid an interrupt.
2 changes: 1 addition & 1 deletion docs/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ The `random` module provides a pseudorandom number generator for pixlet. The gen
| Function | Description |
| --- | --- |
| `seed(s)` | Seeds the generator.|
| `number(min, max)` | Returns a random number between the min and max. The min has to be 0 or greater. The min has to be less then the max. |
| `number(min, max)` | Returns a random number between the min and max. The min has to be 0 or greater. The min has to be less than the max. |

Example:
```starlark
Expand Down
4 changes: 2 additions & 2 deletions manifest/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func ValidateName(name string) error {
}

if len(name) > MaxNameLength {
return fmt.Errorf("app names need to be less then %d characters", MaxNameLength)
return fmt.Errorf("app names need to be less than %d characters", MaxNameLength)
}

return nil
Expand All @@ -62,7 +62,7 @@ func ValidateSummary(summary string) error {
}

if len(summary) > MaxSummaryLength {
return fmt.Errorf("app summaries need to be less then %d characters", MaxSummaryLength)
return fmt.Errorf("app summaries need to be less than %d characters", MaxSummaryLength)
}

for _, punct := range punctuation {
Expand Down
2 changes: 1 addition & 1 deletion runtime/httpcache.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func cacheKey(req *http.Request) (string, error) {
func DetermineTTL(req *http.Request, resp *http.Response) time.Duration {
ttl := determineTTL(req, resp)

// Jitter the TTL by 10% and double check that it's still greater then the
// Jitter the TTL by 10% and double check that it's still greater than the
// minimum TTL. If it's not, return the minimum TTL. The main thing we want
// to avoid is a TTL of 0 given it will be cached forever.
ttl = jitterDuration(ttl)
Expand Down
2 changes: 1 addition & 1 deletion runtime/modules/random/random.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func randomNumber(thread *starlark.Thread, _ *starlark.Builtin, args starlark.Tu
}

if max < min {
return nil, fmt.Errorf("max is less then min")
return nil, fmt.Errorf("max is less than min")
}

rng, ok := thread.Local(threadRandKey).(*rand.Rand)
Expand Down
4 changes: 2 additions & 2 deletions runtime/modules/random/random_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ def test_number():
for x in range(0, 300):
num = random.number(min, max)
if num < min:
fail("random number less then min")
fail("random number less than min")
if num > max:
fail("random number greater then max")
fail("random number greater than max")
def test_seed():
random.seed(4711)
Expand Down

0 comments on commit 9da3505

Please sign in to comment.