- For issues or feature requests related to the code in this repository file a Github issue.
- For general technical questions, post a question on StackOverflow tagged appropriately.
- Device: _____
- OS version: _____
- SDK version: _____
| [{"temperature_C":29.29,"humidity":37,"pressure_hPa":1010,"time":1559916427,"eCO2":400,"TVOC":0},{"temperature_C":29.31,"humidity":37,"pressure_hPa":1010,"time":1559916432,"eCO2":400,"TVOC":0},{"temperature_C":29.38,"humidity":37,"pressure_hPa":1010,"time":1559916437,"eCO2":400,"TVOC":0},{"temperature_C":29.41,"humidity":37,"pressure_hPa":1010,"time":1559916442,"eCO2":400,"TVOC":0},{"temperature_C":29.43,"humidity":37,"pressure_hPa":1010,"time":1559916447,"eCO2":400,"TVOC":0},{"temperature_C":28.86,"humidity":38,"pressure_hPa":1010,"time":1559916485,"eCO2":400,"TVOC":0},{"temperature_C":28.94,"humidity":38,"pressure_hPa":1010,"time":1559916490,"eCO2":400,"TVOC":0},{"temperature_C":29.03,"humidity":37,"pressure_hPa":1010,"time":1559916495,"eCO2":400,"TVOC":0},{"temperature_C":29.09,"humidity":37,"pressure_hPa":1010,"time":1559916500,"eCO2":400,"TVOC":0},{"temperature_C":29.13,"humidity":37,"pressure_hPa":1010,"time":1559916505,"eCO2":400,"TVOC":0},{"temperature_C":29.17,"humidity":37,"pressure_hPa":1010,"time" |
| .error-icon { | |
| position: relative; | |
| display: inline-block; | |
| width: 90px; | |
| height: 90px; | |
| background-color: #fff; | |
| border-radius: 50%; | |
| } | |
| .error-face { |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>Error Face</title> | |
| </head> | |
| <body> | |
| <span class="error-icon"> | |
| <span class="error-face"> |
| const arr = [ | |
| 1, 2, 3, 4, 5, 6, [1, 2, 3, 4], [1, 2, 3, 4], [ [1, 2, [['x']], 4], [1, () => 2, 3, 4], [1, 2, {}, 4, [1, 2, 3, 4]]] | |
| ], | |
| flatten = arr => arr.reduce((acc, val) => acc.concat( | |
| Array.isArray(val) ? flatten(val) : val), [] | |
| ); | |
| console.log( | |
| flatten(arr) | |
| ); |
| function ipToInteger ($ip) { | |
| if (empty($ip)) return 0; | |
| $parts = explode('.', $ip); | |
| return $parts[3] + $parts[2] * 256 + $parts[1] * 256 * 256 + $parts[0] * 256 * 256 * 256; | |
| } | |
| $id = '5.148.106.4'; | |
| $uk = [35149824, 93968953]; | |
| $ipNumber = ipToInteger($id); |
| HAI 1.2 | |
| I HAS A AGE ITZ 0 | |
| I HAS A ENDOFLIFE ITZ 80 | |
| IM IN YR LOOP UPPIN YR AGE TIL BOTH SAEM AGE AN ENDOFLIFE | |
| VISIBLE "Eat, poop, sleep, laugh, observe, teach ..." | |
| IM OUTTA YR LOOP | |
| VISIBLE "Well done, you're now dead at an age of " AGE ". Hope you've enjoyed the experience" | |
| KTHXBYE |
| /** | |
| * Convert wind direction in angles to cardinal direction | |
| * @see https://en.wikipedia.org/wiki/Cardinal_direction | |
| * | |
| * @param {Number} degree | |
| * @return {String} | |
| */ | |
| function degreeToCardinalDirection(degree) { | |
| const val = Math.floor(0.5 + (degree / 22.5)), |
| 'use strict'; | |
| /** | |
| * Calculate the wind chill factor | |
| * @see https://www.weather.gov/media/epz/wxcalc/windChill.pdf | |
| * | |
| * @param {Float} temperature - temperature in Fahrenheit | |
| * @param {Float} windSpeed - wind speed in miles per hour | |
| * @return {Float} | |
| */ |