Skip to content

Instantly share code, notes, and snippets.

View priyanshujain's full-sized avatar
🛠️
Always Building

pjay priyanshujain

🛠️
Always Building
View GitHub Profile
@priyanshujain
priyanshujain / rte.css
Created October 16, 2017 06:44
RTE editor in react
.input-field {
width: 90%;
min-width: 531px;
height: 200px;
font-size: 14px;
background-color: #fff;
background: #f3f1f2;
font-family: sans-serif;
.ql-container {
border-bottom-left-radius: 0.5em;
@priyanshujain
priyanshujain / new.md
Created October 9, 2017 09:40
Tmux cheat sheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

[
({ name: 'Afghanistan', dial_code: '+93', code: 'AF' },
{ name: 'Aland Islands', dial_code: '+358', code: 'AX' },
{ name: 'Albania', dial_code: '+355', code: 'AL' },
{ name: 'Algeria', dial_code: '+213', code: 'DZ' },
{ name: 'AmericanSamoa', dial_code: '+1684', code: 'AS' },
{ name: 'Andorra', dial_code: '+376', code: 'AD' },
{ name: 'Angola', dial_code: '+244', code: 'AO' },
{ name: 'Anguilla', dial_code: '+1264', code: 'AI' },
{ name: 'Antarctica', dial_code: '+672', code: 'AQ' },
@priyanshujain
priyanshujain / states.json
Created August 11, 2017 08:55
Indian States and Union Territories in JSON format Raw
stateArray = [
{
"value": "Andaman and Nicobar Islands",
"name": "Andaman and Nicobar Islands"
},
{
"value": "Andhra Pradesh",
"name": "Andhra Pradesh"
},
{
@priyanshujain
priyanshujain / -
Created July 14, 2017 19:53 — forked from anonymous/-
System: Host: lenovo Kernel: 4.10.0-26-generic x86_64 (64 bit gcc: 6.3.0)
Desktop: Cinnamon 3.4.4 (Gtk 3.22.11-0ubuntu3) dm: lightdm Distro: Ubuntu 17.04
Machine: Device: laptop System: LENOVO product: 80SL v: Lenovo ideapad 310-14ISK
Mobo: LENOVO model: Toronto 4A2 v: SDK0J40679 WIN UEFI: LENOVO v: 0XCN36WW date: 08/30/2016
Chassis: type: 10 v: Lenovo ideapad 310-14ISK
Battery BAT0: charge: 24.4 Wh 88.8% condition: 27.5/30.0 Wh (92%) volts: 8.0/7.4
model: SMP L15M2PB2 serial: 1359 status: Discharging
CPU: Dual core Intel Core i3-6100U (-HT-MCP-) cache: 3072 KB
flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 9216
clock speeds: min/max: 400/2300 MHz 1: 470 MHz 2: 499 MHz 3: 499 MHz 4: 488 MHz
@priyanshujain
priyanshujain / 00-about-search-api-examples.md
Created July 4, 2017 20:32 — forked from jasonrudolph/00-about-search-api-examples.md
5 entertaining things you can find with the GitHub Search API
## How to hide API keys from github ##
1. If you have already pushed commits with sensitive data, follow this guide to remove the sensitive info while
retaining your commits: https://help.github.com/articles/remove-sensitive-data/
2. In the terminal, create a config.js file and open it up:
touch config.js
atom config.js