Skip to content

Instantly share code, notes, and snippets.

View yaditya's full-sized avatar

Yovi Budirahardjo yaditya

View GitHub Profile
@yaditya
yaditya / keybase.md
Last active September 18, 2020 04:58
keybase

Keybase proof

I hereby claim:

  • I am yaditya on github.
  • I am yovib (https://keybase.io/yovib) on keybase.
  • I have a public key ASCw_ZbI3iCWybpk3Q3YASDwpKzKU90phohIgjtJcu3UNQo

To claim this, I am signing this object:

If you want to view all released versions of an npm package, there’s an easy way to do it:
npm show react-native@* version
However, this doesn’t show pre-release versions. If you want to see everything, there’s an equally easy (but undocumented) command:
npm show react-native versions --json
https://gist.github.com/AvnerCohen/4051934
See all versions of a node module
---------------------------------
@yaditya
yaditya / file-template.js
Last active August 29, 2015 14:20
Webstorm React Element File Template
#set($componentName = $NAME.substring(0,1).toUpperCase()+$NAME.substring(1))
import React, {Component} from 'react';
class ${componentName} extends Component {
constructor(props, context) {
super(props, context);
}
render() {
return (
@yaditya
yaditya / ES6
Last active June 12, 2020 03:18
Common ES6 methods
Source: https://leanpub.com/understandinges6/read/
includes(), startsWith(), endsWith()
---------------------------------------
var msg = "Hello world!";
console.log(msg.startsWith("Hello")); // true
console.log(msg.endsWith("!")); // true
console.log(msg.includes("o")); // true