320 x 568 — iPhone 5
375 x 667 — iPhone SE
375 x 812 — iPhone 11 Pro
414 x 736 — iPhone 6+, 7+, 8+
414 x 896 — iPhone Xr, 11, 11 Pro Max
| VS Code config for Atom lovers who has been forced to migrate from Atom |
| function generateUniqNumber() { | |
| return Math.floor(Math.random() * Date.now()) | |
| } |
| function generateHash() { | |
| const symbols = ['a', 'b', 'c', 'd', 'e', 'f', 0, 1, 2, 3, 4, 5, 6, 7, 8, 9] | |
| let hash = '' | |
| for (var i = 0; i < 6; i++) { | |
| hash += sample(symbols) | |
| } | |
| return hash | |
| } |
| const pulseData = [ | |
| { analog: 973, pulse: 197 }, | |
| { analog: 973, pulse: 197 }, | |
| { analog: 918, pulse: 197 }, | |
| { analog: 593, pulse: 197 }, | |
| { analog: 360, pulse: 197 }, | |
| { analog: 298, pulse: 197 }, | |
| { analog: 314, pulse: 197 }, | |
| { analog: 383, pulse: 197 }, | |
| { analog: 457, pulse: 197 }, |
| const data = [ | |
| { accelerometer: { x: -428, y: -252, z: 16836}, gyroscope: { x: -232, y: 62, z: 9}, temperature: 28.06}, | |
| { accelerometer: { x: -304, y: -244, z: 16712}, gyroscope: { x: -222, y: 58, z: 11}, temperature: 28.01}, | |
| { accelerometer: { x: -372, y: -296, z: 16724}, gyroscope: { x: -219, y: 63, z: -14}, temperature: 28.06}, | |
| { accelerometer: { x: -408, y: -376, z: 16860}, gyroscope: { x: -231, y: 58, z: 4}, temperature: 28.06}, | |
| { accelerometer: { x: -380, y: -276, z: 16804}, gyroscope: { x: -235, y: 73, z: 14}, temperature: 28.11}, | |
| { accelerometer: { x: -348, y: -292, z: 16952}, gyroscope: { x: -210, y: 52, z: 6}, temperature: 27.97}, | |
| { accelerometer: { x: -424, y: -380, z: 16796}, gyroscope: { x: -222, y: 67, z: 7}, temperature: 28.11}, | |
| { accelerometer: { x: -376, y: -332, z: 16908}, gyroscope: { x: -223, y: 79, z: 17}, temperature: 28.11}, | |
| { accelerometer: { x: -356, y: -248, z: 16852}, gyroscope: { x: -224, y: 52, z: 4}, temperature: 28.01}, |
| let text = "поздравляю со сдачей сессии" | |
| let encoded = btoa(text) | |
| let decoded = atob(encoded) | |
| function utf8_to_b64( str ) { | |
| return window.btoa(unescape(encodeURIComponent( str ))); | |
| } | |
| function b64_to_utf8( str ) { | |
| return decodeURIComponent(escape(window.atob( str ))); |
| export default class Container extends Component { | |
| constructor(props) { | |
| super(props) | |
| } | |
| handleOnChangeText (id, value) => { | |
| let nextSettings = [] | |
| this.state.settings.forEach(setting => { | |
| if (setting.name == id) { |
| body { | |
| font-family: Helvetica, Arial; | |
| } | |
| section { | |
| text-align: center; | |
| width: 500px; | |
| height: 413px; | |
| background: #FFFFFF; | |
| box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.15); |