| Speed (km/h) | Distance in 1 second (m) | Distance in 1 millisecond (m) | Distance in 1 millisecond (cm) |
|---|---|---|---|
| 50 | 13.89 | 0.01389 | 1.39 |
| 60 | 16.67 | 0.01667 | 1.67 |
| 70 | 19.44 | 0.01944 | 1.94 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PgSQL | |
| CREATE SCHEMA logging; | |
| CREATE TABLE logging.t_history ( | |
| id serial, | |
| tstamp timestamp DEFAULT now(), | |
| schemaname text, | |
| tabname text, | |
| operation text, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { useState } from "react"; | |
| export default function Child(props) { | |
| const handleChange = event => { | |
| props.onChange(event.target.value); | |
| }; | |
| return ( | |
| <div> | |
| <input value={props.value} onChange={handleChange} /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var data = [{id:1, name:'Arun'}, {id:1, name:'Arun'}, {id:1, name:'Arun'}, {id:3, name:'Tom'}] | |
| var removeFirstItem = (id) => { | |
| var itemAlreadyRemoved = false | |
| return data.filter(row => { | |
| if(row.id === id && !itemAlreadyRemoved){ | |
| itemAlreadyRemoved = true; | |
| return false; | |
| } | |
| return true; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const theme = { | |
| "breakpoints": { | |
| "keys": [ | |
| "xs", | |
| "sm", | |
| "md", | |
| "lg", | |
| "xl" | |
| ], | |
| "values": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| arun@arun-HP-Pavilion-g6-Notebook-PC:~$ kubectl logs raven-0 | |
| _____ _____ ____ | |
| | __ \ | __ \| _ \ | |
| | |__) |__ ___ _____ _ __ | | | | |_) | | |
| | _ // _` \ \ / / _ \ '_ \| | | | _ < | |
| | | \ \ (_| |\ V / __/ | | | |__| | |_) | | |
| |_| \_\__,_| \_/ \___|_| |_|_____/|____/ | |
| Safe by default, optimized for efficiency |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| arun@arun-HP-Pavilion-g6-Notebook-PC:~/Documents/servo$ ./mach build --release --android | |
| rustc 1.34.0-nightly (0ea22717a 2019-03-02) | |
| info: component 'rust-std' for target 'armv7-linux-androideabi' is up to date | |
| warning: clang: warning: argument unused during compilation: '-L/home/arun/Downloads/android-ndk-r12b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x' | |
| Finished release [optimized] target(s) in 3.85s | |
| Swapping prefs | |
| 21:22:30.211 [INFO] [org.gradle.internal.nativeintegration.services.NativeServices] Initialized native services in: /home/arun/.gradle/native | |
| 21:22:31.369 [INFO] [org.gradle.internal.work.DefaultWorkerLeaseService] Using 4 worker leases. | |
| 21:22:31.446 [INFO] [org.gradle.cache.internal.DefaultCacheAccess] Creating new cache for fileHashes, path /home/arun/.gradle/caches/4.4/fileHashes/fileHashes.bin, access org.gradle.cache.internal.DefaultCacheAccess@796d3c9f | |
| 21:22:31.463 [DEBUG] [org.gradle.api.internal.changedetection.state.InMemoryCacheDeco |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var a = [{name:'john',rank:10},{name:"Alex",rank:5}]; | |
| var avg_rank=0; | |
| ordered_array = order_rank(a); | |
| console.log(ordered_array); | |
| avg = find_avg(a); | |
| console.log(avg); | |
| function order_rank(a){ |
- Related Setup: https://gist.github.com/hofmannsven/6814278
- Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
- Interactive Beginners Tutorial: http://try.github.io/
- Git Cheatsheet by GitHub: https://services.github.com/on-demand/downloads/github-git-cheat-sheet/
NewerOlder