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
... | |
android { | |
... | |
defaultConfig { | |
... | |
externalNativeBuild { | |
cmake { | |
cppFlags "-O2 -frtti -fexceptions -Wall -fstack-protector-all" | |
abiFilters 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a' | |
} |
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
const actionTypes = { | |
ACTION_TYPE_TEST: 'ACTION_TYPE_TEST' | |
} | |
class Store { | |
constructor(initialState = { testValue: 0 }) { | |
this.state = initialState; | |
this.subscribers = []; | |
} |
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
function add(a, b) { | |
console.log(a + b); | |
console.log(this); | |
} | |
add(1, 2); | |
// ⇒ 3 | |
// ⇒ Object [global] { global: [Circular], clearInterval ... } | |
add.apply({ example: "test" }, [1, 2]); |
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
const Example = { | |
name: "Hans", | |
age: 42, | |
print: function() { | |
console.log(`Name: "${this.name}", age: "${this.age}".`); | |
}, | |
printSomething: function(extra) { | |
console.log(`Extra: ${extra}.`); | |
} | |
}; |
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: iOS | |
on: [push, pull_request] | |
jobs: | |
node-stuff: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout project |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<link href="https://fonts.googleapis.com/css2?family=Baloo+Bhaina+2:wght@600&display=swap" rel="stylesheet"> | |
<style type="text/css"> | |
body { | |
font-family: 'Baloo Bhaina 2', cursive; | |
background-color: #fffdf8; | |
} | |
.highlighted-text { |
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
# fix vscode issue that causes a 100% cpu usage (tsserver) | |
~/Library/Caches/typescript | |
# ios / xcode | |
~/Library/Developer/Xcode/DerivedData/* | |
~/Library/Developer/CoreSimulator/Caches/* | |
# android | |
~/.gradle/caches |
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 from 'react' | |
import preDefinedJokes from './preDefinedJokes.json' | |
const VeryBigJokesList = ({ jokes = preDefinedJokes }) => { | |
if (!Array.isArray(jokes)) { | |
return <p>No jokes found.</p> | |
} | |
return ( |
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 * as React from 'react'; | |
import VeryBigJokesList from './VeryBigJokesList'; | |
function App() { | |
return ( | |
<div className="App"> | |
<header className="App-header"> | |
<div style={{ maxWidth: 600 }}> | |
<VeryBigJokesList /> |