I hereby claim:
- I am lukad on github.
- I am lukad (https://keybase.io/lukad) on keybase.
- I have a public key ASAKYuAXigzjI-t3cXeaNWFmh8Jr7SozhHaa21TQCLlmgwo
To claim this, I am signing this object:
class Integer | |
def to_a | |
n = [] | |
x = self | |
while x > 0 | |
n << x.modulo(10) | |
x -= n.last | |
x /= 10 | |
end | |
n.reverse |
/\A(?:[\w-]+(?<!-)\.){1,}[\w]{2,}\z/ |
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"runtime" | |
) | |
func baseCountWork(data []byte, baseChan chan [4]int64) { | |
var bases [4]int64 |
package main | |
import ( | |
"fmt" | |
"os" | |
"strconv" | |
) | |
func intRangeSlice(start, stop int) []int { | |
if start > stop { |
JSR main | |
; Main | |
:main | |
JSR setup ; Setup the hardware | |
SET A, msg ; Store msg in A for print_message | |
JSR print_message ; Print our message | |
SET PC, end ; End the program | |
I hereby claim:
To claim this, I am signing this object:
0x07e43Ad3B70aa46A1Fe04bAc9072d0d0759C1479 |
pub fn sing(from: i32, to: i32) -> String { | |
(to..(from+1)) | |
.rev() | |
.map(|i| verse(i) ).collect::<Vec<_>>() | |
.join("\n") | |
} | |
pub fn verse(n: i32) -> String { | |
let amount = bottles_of_beer(n); |
#!/usr/bin/env ruby | |
# frozen_string_literal: true | |
array = [ | |
'Selfie Stick,98,29', | |
'iPhone Case,90,15', | |
'Fire TV Stick,48,49', | |
'Wyze Cam,48,25', | |
'Water Filter,56,49', | |
'Blue Light Blocking Glasses,90,16', |
# Here's a more advanced method that leverages the CIE 1931 XYZ color space | |
# and CIE Lab* color space to convert RGB to RGBW. This approach considers the color | |
# temperature of the white LED and takes into account human perception of color. | |
def gamma_correction(value): | |
if value <= 0.04045: | |
return value / 12.92 | |
else: | |
return ((value + 0.055) / 1.055) ** 2.4 |