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 from "react"; | |
import { Link } from "react-router-dom"; | |
export default class BookTable extends React.Component { | |
constructor(props) { | |
super(props) | |
} | |
render() { | |
return ( |
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
handleFieldValueChange = (event) => { | |
console.log(event.target.name) // displays the name of the field I'm typing in | |
this.setState({[event.target.name]: event.target.value}) | |
this.setState(prevState => { | |
console.log(event.target.name) // throws error: TypeError: Cannot read property 'name' of null | |
return {} | |
}) | |
} |
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 from 'react'; | |
import { Route } from 'react-router-dom'; | |
import Cookies from 'js-cookie'; | |
import './App.css'; | |
import Navbar from './components/Navbar'; | |
import NewBooks from './components/NewBooks'; | |
import MyAccount from './components/MyAccount'; | |
import AppContext from './AppContext'; | |
import AdminPage from './components/admin/AdminPage'; |
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
new Vue({ | |
router, | |
store, | |
render: h => h(App) | |
}).$mount('#app') |
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
Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91 | |
is also present at [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory). | |
Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:6:5-20:19 to override. |
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
add_action( 'pre_get_posts', function( $q ) | |
{ | |
if( $title = $q->get( '_meta_or_title' ) ) | |
{ | |
add_filter( 'get_meta_sql', function( $sql ) use ( $title ) | |
{ | |
global $wpdb; | |
// Only run once: | |
static $nr = 0; |
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
Array | |
( | |
[relation] => AND | |
[0] => Array | |
( | |
[key] => active | |
[value] => 1 | |
[type] => NUMERIC | |
) |
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
(for [zipper (iterate zip/right zipper-start) | |
:let [node (zip/node zipper)] | |
:while (or (not= (get node :tag) :h2) (not (zip/end? zipper)))] | |
node)) |
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
{:profiles | |
{:user | |
{:plugins [[mvxcvi/whidbey "1.3.2"]] | |
:dependencies [[]]}}} |
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
function getCurrentPrice(currency) { | |
var response = UrlFetchApp.fetch("https://api.gdax.com/products/" + currency + "-USD/ticker"); | |
var response_json = JSON.parse(response); | |
return response_json.price; | |
} | |
function update_prices() { | |
SpreadsheetApp.getActiveSheet().getRange('B2').setValue(getCurrentPrice('BTC')); | |
SpreadsheetApp.getActiveSheet().getRange('B3').setValue(getCurrentPrice('LTC')); | |
SpreadsheetApp.getActiveSheet().getRange('B4').setValue(getCurrentPrice('ETH')); |