hmmdar
Joined 13 years ago
Joined 13 years ago
I'd argue that the chemical withdrawal effects of marijuana, are nothing compared to habitual smoking, alcohol or other "hard" drug use. But there are still some chemical withdrawal effects.
Personally I've had Minor irritability after not having an edible for a few days if I've been consistently having them nearly daily for few days. But I've also realized this, and moderate use more to only once or twice a week, and only 5-10mg at a time. I've grown to like the feel of 5mg in the evening overall. Accounting for the blah feeling the next morning/day.
e.g.
var o Option[int32]
or could have `None` helper func None[T any]() Option[T] { return Option[T]{} }
o := None[int32]() type Option[T any] struct {
v T
isSet bool
}
func NewOption[T any](v T) Option[T] {
return Option[T]{
v: v,
isSet: true,
}
}
func (o Option[T]) Get() (v T) {
if !o.isSet {
return v
}
return o.v
}
func (o Option[T]) IsSet() bool { return o.isSet }
With this pattern you're able to use `Option` as a value without pointers. var o Option[int32]
o = NewOption(int32(1))
fmt.Println("value:", o.Get())
fmt.Println("is set:", o.IsSet())
Alternative separate `Get` and `IsSet` methods, is to combine them into one, similar to map look up pattern. func (o Option[T]) Get() (v T, isSet bool) {
if !o.isSet {
return v, false
}
return o.v, true
}
var o Options[int32]
v, ok := o.Get() // zero, false
o = NewOption(int32(1))
v, ok = o.Get() // 1, trueGoogle eventually added an option to change this behavior. Guess it will take a critical mass of complaints to get something similar for Google Drive.
https://www.cbsnews.com/news/google-calendar-spam-is-on-the-...
Hired: 2011
- Level: SDE I (4)
- Location: San Francisco
- Salary: $96k base, $20k bonus, relocation, ~160 stock over 4 years.
- Average yearly total comp: ~ $150k
Promoted: 2013
- Level: SDE II (5)
- Location: San Francisco
- Salary: $110k base, 168 stock
- Average yearly total comp: ~ $170k
Relocated: 2015
- Level: SDE II (5)
- Location: Seattle
- Salary: $125 base, ~160 stock, relocation
- Average yearly total comp: ~ $190k