$ docker
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
// Sigmoid | |
const sigmoid = x => 1 / (1 + Math.exp(-x)) | |
const D_sigmoid = x => sigmoid(x) * (1-sigmoid(x)) | |
// data | |
const data = [ | |
[ 5.1, 3.5, 0 ], | |
[ 4.9, 3. , 0 ], | |
[ 4.7, 3.2, 0 ], |
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 Img from 'gatsby-image' | |
import styled from 'styled-components' | |
import PropTypes from 'prop-types' | |
export const BgImage = styled(Img)` | |
position: absolute; | |
top: 0; | |
left: 0; | |
width: 100%; | |
z-index: -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
[ | |
{ | |
"label": "آروبا", | |
"value": "آروبا" | |
}, | |
{ | |
"label": "أسبانيا", | |
"value": "أسبانيا" | |
}, | |
{ |
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 hexToRgb = hex => { | |
// http://stackoverflow.com/a/5624139 | |
const shorthandRegex = /^#?([a-f\d])([a-f\d])([a-f\d])$/i | |
hex = hex.replace(shorthandRegex, (m, r, g, b) => { | |
return r + r + g + g + b + b | |
}) | |
const result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex) | |
return result | |
? { |
- Changed project' subfolder name from:
"android/app/src/main/java/<com.old_id>/"
to:"android/app/src/main/java/com.new_id/"
- In
android/app/src/main/java/MY/APP/com.new_id/MainActivity.java:
, change:
package com.new_id;
- In
android/app/src/main/AndroidManifest.xml
, change:
package="com.new_id"
- In
android/app/build.gradle
, change:
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 hexToRgb = hex => { | |
// http://stackoverflow.com/a/5624139 | |
const shorthandRegex = /^#?([a-f\d])([a-f\d])([a-f\d])$/i | |
hex = hex.replace(shorthandRegex, (m, r, g, b) => { | |
return r + r + g + g + b + b | |
}) | |
const result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex) | |
return result | |
? { |
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 { useMemo } from 'react'; | |
const useswitchNetwork = async ( | |
account: string | null | undefined, | |
nextChainId: 1 | 10 | 42 | 69, | |
currentChainId: number | undefined, | |
forceOptimism = false, | |
) => { | |
if (!account) { | |
return; |
OlderNewer