This file contains 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
mindtalk-wordpress |
This file contains 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, { Component } from 'react'; | |
import './App.css'; | |
class App extends Component { | |
state = { | |
inputText : '', | |
data: [] | |
}; | |
onInputChanges = (event) => { |
This file contains 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
/bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024 | |
/sbin/mkswap /var/swap.1 | |
/sbin/swapon /var/swap.1 |
This file contains 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
implicit class JsonImprovement(json: JsValue) { | |
def withoutNull = { | |
def internal(newJson: JsValue): JsValue = { | |
newJson match { | |
case JsObject(fields) => | |
if (fields.isEmpty) JsNull | |
else { | |
fields.foldLeft(new JsObject(Map()))((agg, field) => | |
field match { | |
case (name, JsArray(arrayValues)) => { |
This file contains 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
{ | |
"name": "Keychron Q10", | |
"vendorProductId": 875823521, | |
"macros": [ | |
"", | |
"{KC_LSFT,KC_LGUI,KC_4}", | |
"", | |
"{KC_LSFT,KC_LALT,KC_LCTL,KC_V}", | |
"{KC_LSFT,KC_LALT,KC_V}", | |
"{KC_LSFT,KC_LALT,KC_L}", |